1
0
Fork 0
A file server for files over DNS TXT records
  • Python 68.2%
  • PowerShell 21.5%
  • Shell 10.3%
Datei suchen
2022-02-06 18:17:22 +01:00
.gitignore File naming unified, gitignore added 2022-02-06 01:38:02 +01:00
client.ps1 Documentation added 2022-02-06 18:17:22 +01:00
client.sh Documentation added 2022-02-06 18:17:22 +01:00
LICENSE Minimal working examples added, README and LICENSE adjusted 2022-02-06 17:57:33 +01:00
README.md Documentation added 2022-02-06 18:17:22 +01:00
server.py Documentation added 2022-02-06 18:17:22 +01:00

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