Forums: Microsoft Windows Tftp Daemon (tftpd.exe) - Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Microsoft Windows Tftp Daemon (tftpd.exe) anyone know how to start it?

#1 User is offline   whi7er 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 89
  • Joined: 07-September 04

Posted 27 February 2005 - 11:34 AM

Okay, i was looking for a command line TFTP Daemon (server not client) so i wouldn't have to look at a GUI everytime i needed to send something to my router. So, I found out that Microsoft Windows 2000 Professional and XP Pro has a TFTP daemon in %SYSTEMROOT%\system32\dllcache called "TFTPd.exe." Now, I am running Windows XP Home Edition SP2 which of course dosen't have the TFTPd.exe. But, I have a Windows XP Pro disk, so i copied the TFTPD.EX_ (cab file) out of that cd, opened it with WinRAR, then extracted TFTPd.exe from it. I placed it in my C:\, then tried to start it. Nothing happened. So, I opened TFTPd.exe with WordPad scrolled down till I could find some plain text, and I found this...

Quote

Abstract:                                                               
This implements an RFC 783 tftp daemon.                                 
It listens on port 69 for requests                                     
and spawns a thread to process each request.                           
                                                                         
TFTPD USAGE and Installation:                                           
                                                                         
  md d:/tftpd                                    (the StartDirectory). 
  copy //MohsinA_p90/test/tftpd.exe .                                   
  sc create tftpd binPath= d:/tftpd/tftpd.exe    (give full path).     
  sc query tftpd                                  (check if installed). 
                                                                         
Start:                                                                   
    sc start tftpd -f                            (creates a log file). 
or  sc start tftpd                                                       
or  net start tftpd                                                     
or  sc start tftpd [-dStartDirectory][-e] [-f]                         
    Options: -e  use event log.                                         
            -f  log to file.                                           
            -dStartDirectory                                           
Info:                                                                   
  sc interrogate tftpd          (logs will be updated).                 
  sc query tftpd                Check whether running.                 
Stop:                                                                   
  sc  stop tftpd                                                         
  net stop tftpd                                                         
                                                                         
Variables that control what files can be read/written and by whom:       
  StartDirectory - only files there will be accessible.                 
                    LogFile is created here.                             
  ValidClients - Clients matching this ip address can read files.       
                    eg. you can set it to "157.55.8?.*"               
  ValidMasters  - clients matching this can write and read files.     
                    eg. you can set it to "" and no one can write.     
  ValidReadFiles - only matching files will be served out, eg. "r*.t?t"
  ValidWriteFiles- only matching files will be accepted,  eg. "w*.txt"
                                                                         
Client:                                                                 
  tftp [-i] servername {get|put} src_file dest_file                     
  -i from binary mode, else ascii mode is used.     


I followed those directions to install it as a service and start it but i couldnt get the TFTP client (tftp.exe) to transfer it. Anyone have any ideas, or have sucessfully gotten TFTPd.exe to transfer a file. OR anyone know if its because im using Windows XP Home editon. If not, anyone have a Win32 TFTPd source?
0

#2 User is offline   plinius 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 70
  • Joined: 05-October 03

Posted 27 February 2005 - 01:22 PM

can't you use another tftp server, like this one:

Quote

??
0

#3 User is offline   jetprice 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 89
  • Joined: 17-October 03

Posted 20 March 2005 - 04:43 AM

Opening the windows cd, browse to the i386 folder, there you will see tftpd.ex_

You will have to decompress the tftpd.ex_ file, this is done this way:

expand c:\tftpd.ex_ %systemroot%\system32\tftpd.exe

or use this .bat script i wrote (works for me):

expand tftpd.ex_ %windir%\system32\tftpd.exe
del tftpd.ex_
instsrv tftpd %windir%\system32\tftpd.exe
reg add hklm\system\currentcontrolset\services\tftpd\Parameters
reg add hklm\system\currentcontrolset\services\tftpd\Parameters /v Directory /t REG_SZ /d c:\tftproot
md c:\tftproot
net start tftpd

0

#4 User is offline   whi7er 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 89
  • Joined: 07-September 04

Posted 22 March 2005 - 03:45 PM

well i knew about the extraction part (expand) but this seems to work thanks!
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

  • Share



Our Sponsors:


SwiftLayer Affiliate Web Hosting