; NETTFTPD.INF ; ; Trivial FTP Server ; ; Copyright (C) 2004-2019, Stefan Kanthak ; ; * The software is provided "as is" without any warranty, neither express ; nor implied. ; In no event will the author be held liable for any damage(s) arising ; from the use of the software. ; * Redistribution of the software is allowed only in unmodified form. ; * Permission is granted to use the software solely for personal private ; and non-commercial purposes. ; * An individuals use of the software in his or her capacity or function ; as an agent, (independent) contractor, employee, member or officer of ; a business, corporation or organization (commercial or non-commercial) ; does not qualify as personal private and non-commercial purpose. ; * Without written approval from the author the software must not be used ; for a business, for commercial, corporate, governmental, military or ; organizational purposes of any kind, or in a commercial, corporate, ; governmental, military or organizational environment of any kind. [Version] Class = "NetService" ClassGUID = "{4D36E974-E325-11CE-BFC1-08002BE10318}" DriverVer = 07/01/2001, 5.1.2600.5512 Layoutfile = LAYOUT.INF Provider = "Microsoft" Signature = "$Windows NT$" [TFTPD] AddReg = TFTPD.AddReg CopyFiles = TFTPD.Files.Net, TFTPD.Files.Sys DependOnComponents = MS_TCPIP StartServices = TFTPD Uninstall = TFTPD.Remove ;UpdateInis = TFTPD.UpdateInis [TFTPD.AddReg] HKLM,"SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\DomainProfile\AuthorizedApplications\List","%SystemRoot%\System32\TFTPD.EXE",0,"%SystemRoot%\System32\TFTPD.EXE:LocalSubNet:Enabled:Windows® Trivial File Transfer Service" HKLM,"SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\DomainProfile\GloballyOpenPorts\List","69:UDP",0,"69:UDP:LocalSubNet:Enabled:Trivial File Transfer Protocol (TFTP)" HKLM,"SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\AuthorizedApplications\List","%SystemRoot%\System32\TFTPD.EXE",0,"%SystemRoot%\System32\TFTPD.EXE:LocalSubNet:Enabled:Windows® Trivial File Transfer Service" HKLM,"SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\GloballyOpenPorts\List","69:UDP",0,"69:UDP:LocalSubNet:Enabled:Trivial File Transfer Protocol (TFTP)" [TFTPD.Services] AddService = TFTPD, 16, TFTPD.AddService [TFTPD.AddService] ;AddReg = TFTPD.AddService.Parameters ; 'TFTPD.EXE' of Windows XP does not support parameters! Dependencies = TCPIP, AFD Description = %TFTPD_SERVICE_DESC% DisplayName = %TFTPD_SERVICE_NAME% ErrorControl = 1 ;ServiceBinary = "%11%\TFTPD.EXE /D%24%%TFTPD_DEFAULT_DIR%" ServiceBinary = "%11%\TFTPD.EXE /E" ; write event log ;ServiceBinary = "%11%\TFTPD.EXE /F" ; write file 'tftpd.log' in TFTPD directory ServiceType = 16 StartName = "NT AUTHORITY\LocalService" StartType = 3 [TFTPD.AddService.Parameters] HKR,"Parameters","Clients",0,"*.*.*.*" ; list of client IP addresses allowed to read files HKR,"Parameters","Directory",131072,"%%SystemDrive%%\TFTPDRoot" HKR,"Parameters","Masters",0,"" ; list of client IP addresses allowed to write files HKR,"Parameters","Readable",0,"*" ; glob pattern of filenames which can be read HKR,"Parameters","Writeable",0,"" ; glob pattern of filenames which can be written [TFTPD.Remove] DelFiles = TFTPD.Files.Sys DelReg = TFTPD.Remove.DelReg StopServices = TFTPD [TFTPD.Remove.DelReg] HKLM,"SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\DomainProfile\AuthorizedApplications\List","%SystemRoot%\System32\TFTPD.EXE" HKLM,"SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\DomainProfile\GloballyOpenPorts\List","69:UDP" HKLM,"SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\AuthorizedApplications\List","%SystemRoot%\System32\TFTPD.EXE" HKLM,"SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\GloballyOpenPorts\List","69:UDP" [TFTPD.Remove.Services] DelService = TFTPD, 0x00000200 [TFTPD.UpdateInis] %24%\TFTPDRoot\BOOT.INI,"Operating Systems",,"ramdisk(0)\Windows=""TFTPBoot"" /FastDetect /RDExportAs /RDImageOffset=4096 /RDPath=net(0)\TFTPBOOT.SDI /SOS" %24%\TFTPDRoot\BOOT.INI,"Operating Systems",,"ramdisk(0)\Windows=""TFTPBoot (Debuggee)"" /BaudRate=57600 /BootLog /Debug /DebugPort=COM1 /FastDetect /RDExportAs /RDImageOffset=4096 /RDPath=net(0)\TFTPBOOT.SDI /SOS" %24%\TFTPDRoot\BOOT.INI,"Comment",,"; https://msdn.microsoft.com/en-us/dd128765.aspx" %24%\TFTPDRoot\BOOT.INI,"Boot Loader",,"TimeOut=0" %24%\TFTPDRoot\BOOT.INI,"Boot Loader",,"Default=ramdisk(0)\Windows" ; (KB304992 & KB316558) %24%\TFTPDRoot\WINNT.SIF,"SetupData",,"; (KB304992 & KB933510)" %24%\TFTPDRoot\WINNT.SIF,"SetupData",,"Architecture = ""i386""" %24%\TFTPDRoot\WINNT.SIF,"SetupData",,"BootDevice = ""ramdisk(0)""" %24%\TFTPDRoot\WINNT.SIF,"SetupData",,"BootPath = ""\i386\System32\""" %24%\TFTPDRoot\WINNT.SIF,"SetupData",,"OSLoadOptions = ""/FastDetect /MiniNT /NoGUIBoot /PCILock /RDExportAsCD /RDPath=WINPE.ISO""" %24%\TFTPDRoot\WINNT.SIF,"SetupData",,"; NOTE: offset must match image layout and geometry!" %24%\TFTPDRoot\WINNT.SIF,"SetupData",,"; - VFD (super floppy or partition): 0" %24%\TFTPDRoot\WINNT.SIF,"SetupData",,"; - VHD (raw hard disk, fixed size): 512 * (typically 63)" %24%\TFTPDRoot\WINNT.SIF,"SetupData",,"; - SDI with single 'PART' blob: 4096" %24%\TFTPDRoot\WINNT.SIF,"SetupData",,"; - SDI with single 'DISK' blob: 4096 + 512 * (typically 63)" %24%\TFTPDRoot\WINNT.SIF,"SetupData",,";OSLoadOptions = ""/FastDetect /MiniNT /NoGUIBoot /PCILock /RDExportAsHD /RDImageOffset=0 /RDPath=WINPE.VFD""" %24%\TFTPDRoot\WINNT.SIF,"SetupData",,";OSLoadOptions = ""/FastDetect /MiniNT /NoGUIBoot /PCILock /RDExportAsHD /RDImageOffset=32256 /RDPath=WINPE.VHD""" %24%\TFTPDRoot\WINNT.SIF,"SetupData",,"; https://msdn.microsoft.com/en-us/ms838543.aspx" %24%\TFTPDRoot\WINNT.SIF,"SetupData",,";OSLoadOptions = ""/FastDetect /MiniNT /NoGUIBoot /PCILock /RDExportAsHD /RDImageOffset=36352 /RDPath=WINPE.SDI""" %24%\TFTPDRoot\WINNT.SIF,"RemoteInstall",,"; (KB222478 & KB316558)" %24%\TFTPDRoot\WINNT.SIF,"RemoteInstall",,"Repartition = No" %24%\TFTPDRoot\WINNT.SIF,"RemoteInstall",,"UseWholeDisk = No" %24%\TFTPDRoot\WINNT.SIF,"OSChooser",,"; (KB304992 & KB316558)" %24%\TFTPDRoot\WINNT.SIF,"OSChooser",,"Description = ""Microsoft Windows Preinstallation Environment 200x""" %24%\TFTPDRoot\WINNT.SIF,"OSChooser",,"Help = ""...""" %24%\TFTPDRoot\WINNT.SIF,"OSChooser",,"ImageType = ""WinPE""" %24%\TFTPDRoot\WINNT.SIF,"OSChooser",,"LaunchFile = ""%%SystemDrive%%\TFTPDRoot\STARTROM.COM""" %24%\TFTPDRoot\WINNT.SIF,"OSChooser",,"Version = ""5.1 (3)""" %24%\TFTPDRoot\WINNT.SIF,"Data",,"AutoPartition = 0" %24%\TFTPDRoot\WINNT.SIF,"Data",,"FloppyLess = 1" %24%\TFTPDRoot\WINNT.SIF,"Data",,"LocalSourceOnCD = 1" %24%\TFTPDRoot\WINNT.SIF,"Data",,"MSDOSInitiated = 0" [TFTPD.Files.Net] BOOTFONT.BIN,,,3 NTDETECT.COM,,,3 ;NTLDR,OSLOADER.EXE,,3 NTLDR,SETUPLDR.EXE,,3 OSLOADER.EXE,,,3 SETUPLDR.EXE,,,3 STARTROM.COM,,,3 STARTROM.N12,,,3 [TFTPD.Files.Sys] TFTPD.EXE,,,3 [TFTPD.Files.Sys.Security] "D:P(A;;GRGX;;;BU)(A;;GA;;;BA)(A;;GA;;;SY)(A;;GRGX;;;WD)" [DestinationDirs] ; 'TFTPD.EXE' of Windows XP uses hard coded path "%SystemDrive%\tftpdroot\"! TFTPD.Files.Net = 24,"TFTPDRoot" TFTPD.Files.Sys = 11 [Strings] TFTPD_SERVICE_NAME = "Trivial FTP Server" TFTPD_SERVICE_DESC = "Implementiert den Internetstandard 'Trivial FTP', der weder Benutzernamen noch Kennwort erfordert." TFTPD_DEFAULT_DIR = "\tftpdroot\" TFTPD_LOGFILE = "tftpd.log"