Giter Site home page Giter Site logo

tftp-client's Introduction


TFTP Client


author: Ólafur Aron Jóhannsson
email: [email protected]

Description:

Scripts and GUI that implements a client that Reads/Write's using the TFTP (Trivial File Transfer Protocol) desctribed in RFC 1350.

cmd.py is a command line script requires at least three arguments: host, command and filename. It also has two optional arguments, port and alternative name.

cmd2.py is a command line script that implements the same features, but instead of command line arguments it promts user for input.

gui.py is a gui version of the client. It can be initalized from the command line or by double clicking the gui.py file.


usage: cmd.py [-h] [-p PORT] [-a ALT_NAME] host command file_name

cmd.py tftp.example.com writes sample.txt # Writes the file sample.txt to tftp.example.com

cmd.py tftp.example.com skrifar sample.txt -p 102 -a skra.txt # Writes the file sample.txt to tftp.example.com on port 102 as skra.txt

cmd.py tftp.example.com reads sample.txt # Reads the file sample.txt from tftp.example.com

cmd.py tftp.example.com lesa sample.txt -p 102 -a skra.txt # Reads the file sample.txt from tftp.example.com on port 102 as skra.txt


Arguments:

positional arguments:

host the host to connect to

command enter command: read, write or quit

file_name name of the file to read/write

optional arguments:

-h, --help show this help message and exit

-p PORT, --port PORT use specific port

-a ALT_NAME, --alt_name ALT_NAME read/write with an alternate name


Packages: tftp.py # module that handles tftp packets, logging and testing client.py # module that interacts with a tftp server. cmd.py # module that takes in command line args and uses client.py cmd2.py # module that takes input from a user and uses client.py gui.py # module that loads a gui version of the client


Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.