1
0
Fork 0
A file server for files over DNS TXT records
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
Simon Moser 7c6fdb7d01
Documentation added
vor 3 Jahren
.gitignore File naming unified, gitignore added vor 3 Jahren
LICENSE Minimal working examples added, README and LICENSE adjusted vor 3 Jahren
README.md Documentation added vor 3 Jahren
client.ps1 Documentation added vor 3 Jahren
client.sh Documentation added vor 3 Jahren
server.py Documentation added vor 3 Jahren

README.md

DNS File-Transfer

A file server for files over DNS TXT records

Mirror at: https://naclador.de/mosers/DNS_File-Transfer

Requirements on server

  • Python3
  • dnslib: e.g. pip3 install dnslib

Usage

First set up your domain to point to which ever server you're hosting this on.

Then run the python server:

./server.py --domain domainname.com --directory /dir/of/tools

It will only support a flat directory structure in /dir/of/tools

Strongly based on Uninvited Guest by Pen Test Partners

Documentation

Download

  1. TXT $filename.count.$dnsserver returns the number of parts the file is split into
  2. TXT $filename.$i.$dnsserver returns the base64-encoded file part #$i

Upload

  • TXT $content.$i-$id.$dnsserver pushes a file part to the server
    • the whole domain MUST NOT be longer than 63 characters, split your file accordingly
    • since only alphanumerical characters are allowed, encode your file with base64
    • Count up $i so you don't get problems with caching (the server only used chronological order, so you can also use random numbers if you prefer that)
  • The (base64-encoded) file is saved at $directory/$id.b64