All Projects β†’ SuperFola β†’ DoNotSend

SuperFola / DoNotSend

Licence: MIT license
Sending messages by hacking the DNS protocol. See website for demo server usage instructions

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to DoNotSend

node-dns
🌐 DNS Server and Client Implementation in Pure JavaScript with no dependencies.
Stars: ✭ 390 (+319.35%)
Mutual labels:  dns-server, dns-client
SnitchDNS
Database Driven DNS Server with a Web UI
Stars: ✭ 169 (+81.72%)
Mutual labels:  dns-server, dns-tunneling
Trust Dns
A Rust based DNS client, server, and resolver
Stars: ✭ 2,155 (+2217.2%)
Mutual labels:  dns-server, dns-client
dcompass
A high-performance programmable DNS component aiming at robustness, speed, and flexibility
Stars: ✭ 260 (+179.57%)
Mutual labels:  dns-server
pycameresp
Motion detection with image notification for Esp32CAM and Esp32 flasher with GUI based on esptool.py.
Stars: ✭ 40 (-56.99%)
Mutual labels:  dns-client
callsign
Small DNS service to support local development. Provides the functionality of cloud-based DNS services on your local machine, allowing automated deployment simulations on the desktop.
Stars: ✭ 42 (-54.84%)
Mutual labels:  dns-server
xegtor
Xegtor - Network Attack & Scanning Tool for Red Teaming and Ethical Hacking
Stars: ✭ 19 (-79.57%)
Mutual labels:  scapy
SmartGW
Domain based VPN Gateway/Proxy for all devices
Stars: ✭ 49 (-47.31%)
Mutual labels:  dns-server
DNS-over-HTTPS
An implementation of RFC 8484 - DNS Queries over HTTPS (DoH).
Stars: ✭ 27 (-70.97%)
Mutual labels:  dns-server
ruby-dns-mock
DNS mock server written on πŸ’Ž Ruby. Mimic any DNS records for your test environment with fake DNS server.
Stars: ✭ 50 (-46.24%)
Mutual labels:  dns-server
awesome-scapy
Great packages that use Scapy
Stars: ✭ 101 (+8.6%)
Mutual labels:  scapy
zerotierDNS
Dns-server for zerotier networks. Resolves names of clients to their IP
Stars: ✭ 23 (-75.27%)
Mutual labels:  dns-server
computer-networks
computer networks on docker @ fmi.unibuc.ro
Stars: ✭ 72 (-22.58%)
Mutual labels:  scapy
dockness
DNS for Docker machines
Stars: ✭ 34 (-63.44%)
Mutual labels:  dns-server
PyDDNS
Complete system to create your own server ddns
Stars: ✭ 57 (-38.71%)
Mutual labels:  dns-server
mydpdkdns
dns server with high performance, based on dpdk.
Stars: ✭ 41 (-55.91%)
Mutual labels:  dns-server
prc-dns
ε―ΉCDN友ε₯½ηš„DNSζœεŠ‘ε™¨οΌŒεŒΊεˆ†ε›½ε†…ε€–ζ΅ι‡ηš„εΏ…ε€‡ε·₯具。
Stars: ✭ 47 (-49.46%)
Mutual labels:  dns-server
harddns
RFC8484 and DoH/JSON resolver
Stars: ✭ 35 (-62.37%)
Mutual labels:  dns-server
RogueAP-Detector
Rogue Access Point Detector
Stars: ✭ 28 (-69.89%)
Mutual labels:  scapy
dns-server-setup
Ansible playbook to easily deploy new, fully configured, DNS servers.
Stars: ✭ 48 (-48.39%)
Mutual labels:  dns-server

DoNotSend - hacking the DNS protocol

Works on Windows and Linux

The DNS protocol is conventionally used to ask for the IP address of a given website. Here it's used to send messages and retrieve other messages, instead of asking for a website IP address and retrieving its IP address.

Disclaimer

This tool can be used to send messages by exploiting a flaw in the DNS protocol, but it could be used (as someone pointed out in the reddit thread) to exfiltrate data from a network. I'm not responsible for any misuse of the project. Also note that it's most likely that your ISP is logging your DNS queries, thus it's not a 100% anonymous.

Setup

  • Python >= 3.7
  • Scapy >= 2.4
    • if it isn't installed alongside scapy:
      • libpcap
  • venv
    • Sometimes the wheel module is needed as well
apt install python3-venv
python3 -m venv venv/
source venv/bin/activate

pip3 install scapy
# if it fails because it couldn't build the wheel:
pip3 uninstall scapy && pip3 install wheel && pip3 install scapy

cd src
# nota: run as admin because it's binding on + sniffing port 53:
python3 server.py "interface" "host name"
# or you can start it with a configuration file:
python3 server.py config.ini
# if it complains about libpcap not installed, then:
apt install libpcap0.8-dev

client

We can include arbitrary data in the hostname which the server then can interpret and execute/relay. Thus we put our data in the qname section of the query, encoded using base32, without the padding (we can easily recalculate it).

The queries sent are TXT DNS queries, otherwise (because we answer with TXT DNS replies) the replies will get lost/deleted when transmitted by peers (yes you read correctly, Google can ask the DNS if it knows crafted-domain.my_dns.domain.example.com).

python3 client.py [my_dns.domain.example.com] "message here"

If no message is given, hello world is sent.

You can also use the client.sh version, relying only on dig, base32 and base64, instead of using scapy.

server

It receives queries and read the wanted "fake" hostname, decode the data put in the hostname as base32.

Then it replies through a DNS TXT reply, where the data is encoded as base64 without padding.

Running the server

cd src
# needs to run as root because it is binding port 53
python3 server.py [interface, for example eth0 on linux] [my_dns.domain.example.com]

Having other big DNS relay your queries and answers

In a few steps I was able to configure my NS provider to set myself up as my own DNS, to get to reply to the weird domains I need to communicate.

For this examples, let's say my server is named example.com.

  1. I added a A entry for dns.example.com, pointing to my server ip here
  2. In the DNS servers configuration, I already had ns1.provider.com, I added myself as a DNS server: dns.example.com, pointing to my server ip here
  3. Then, just wait a bit (can be as long as 48 hours) and you're good to go

Now I just have to tell my client scripts to use the domain dns.example.com to send messages to it and it works like a charm, even when asking Google about it!

Documentation

Code structure

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].