documentation/modules/auxiliary/scanner/tftp/tftpbrute.md
This module attempts to find files on a TFTP server. The default wordlist is tftp.txt. This module will NOT attempt to download the entire file, it simply pulls the first 3 bytes to verify the file exists.
On Kali 2019.4 (rolling) one of the TFTP server is the package tftpd-hpa. This can be installed as follows:
apt-get install tftpd-hpa
systemctl start tftpd-hpa
This creates the root tftp directory in /srv/tftp.
use auxiliary/scanner/tftp/tftpbruterunThe newline separated list of files to find. Default depends on install location, however it will be within metasploit-framework/data/wordlists/tftp.txt.
First, create a file to find:
echo "hello world" > /srv/tftp/test.txt
Now we can find the file:
msf > use auxiliary/scanner/tftp/tftpbrute
msf auxiliary(scanner/tftp/tftpbrute) > set rhosts 1.1.1.1
rhosts => 1.1.1.1
msf auxiliary(scanner/tftp/tftpbrute) > set verbose true
verbose => true
msf auxiliary(scanner/tftp/tftpbrute) > run
[+] Found test.txt on 1.1.1.1
[*] Scanned 1 of 1 hosts (100% complete)
[*] Auxiliary module execution completed
msf auxiliary(scanner/tftp/tftpbrute) >