TFTP server implementation, using Python's 'socket' library as the only networking interface. The server implements the RFC 1350 TFTP Protocol (except mail mode). It was written as an introduction to networking and communication protocols.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Fork this repository
- Clone your fork of the repository
- Create a Python 3.7 virtual environment:
python3.7 -m venv env - Set the Python environment:
source env/bin/activate - Start the server:
sudo python tftp_server.py
The server will read/write files to the current working directory. Be careful not to run the server in a directory with sensitive files as TFTP has no security, except:
- It can't read or write outside of the current working directory
- It won't overwrite files
- It won't create directories