PowerShell and TFTP
PowerShell provides a set of libraries that can be used as part of a security test against a TFTP server. In particular, they allow us to perform identification, enumeration, and examine access controls.
Identifying the TFTP server
Use PowerShell to identify the TFTP server and its details, such as IP address and port:
Test-NetConnection -ComputerName tftp.snowcapcyber.com -Port 69
Enumerating a TFTP server configuration
Gather information about the TFTP server configuration, including allowed transfer modes and any restrictions:
Install-Module -Name PSFTP Get-PSFTPConfiguration -ComputerName tftp.snowcapcyber.com
Verifying access controls for TFTP
Check access controls and permissions on the TFTP server:
Get-PSFTPFile -ComputerName tftp.snowcapcyber.com -Path "/"
We can use this to try and retrieve a series of files. We can place all of the files we want to try and retrieve from a TFTP server in a file and then loop through...