DirtyBit is a BitTorrent client written in Rust.
DirtyBit is capable of parsing .torrent files and downloading files from a peer.
To use DirtyBit, your system must have Rust installed.
- Clone the repository:
git clone https://github.com/V3D4NTH/DirtyBit
- Switch to the directory:
cd DirtyBit
-
Run
./your_bittorrent.sh
to run your program, which is implemented insrc/main.rs
. This command compiles the Rust project, so it might be slow the first time you run it. Subsequent runs will be fast. -
To download files:
-
./your_bittorrent.sh download -o <the path you want it to be downloaded to> <torrent file>
-
Output:
Downloaded sample.torrent to /tmp/test.txt.