atftp
Advanced TFTP client and server for testing, debugging, and file transfers over Trivial File Transfer Protocol. Supports interactive and non-interactive modes for scripting and implements RFC standards with multicast options.
Description
atftp provides an advanced TFTP client ideal for testing and debugging TFTP servers. It serves as an interactive client but also supports non-interactive invocation, making it suitable for scripts. Commonly used in UEFI/BIOS and bootstrap programs like pxelinux for LAN booting.
The package includes both client (atftp) and server (atftpd) components. The server is multi-threaded, supports all TFTP options per RFC1350, RFC2090, RFC2347, RFC2348, RFC2349, and RFC7440, including multicast (mtftp) for PXE. It can be socket-activated, run via inetd, or as a daemon.
Use cases include network penetration testing for file transfers, PXE booting scenarios, and TFTP server/client validation.
How It Works
Implements TFTP per RFC1350 with extensions: option negotiation (RFC2347), block size (RFC2348), timeout (RFC2349), and multicast (RFC7440/PXE). Client supports get/put operations, Linksys password extension, and scriptable modes. Server handles multi-threading, configurable timeouts/retries, and directory-based file serving (default /tftpboot). Logs packets with trace mode and supports verbose output levels.
Installation
sudo apt install atftpFlags
Examples
atftp -hatftp [options] [host] [port]atftp -g --local-file localfile remotehostatftp -p --remote-file remotefile localfile remotehostatftpd -hatftpd [directory]atftpd --verbose --maxthread 10 /tftpbootin.tftpd -h