Giter Club home page Giter Club logo

vut_isa_proj's Introduction

DNS tunneling tool

Two programs are present, dns_sender and dns_receiver, which respectively send and receive data only using DNS datagrams over UDP, while data are encoded to Base64 format.

The sender tries sending the data up to three times and with every packet, it expects a response from the receiver. If no response is received, sender tries to close the connection up to three times, and if the receiver responds to a connection-closing datagram, the communication is established again and transmission starts from the beginning. If, however, the connection could not be closed, the sender cannot send more data as they would confuse the receiver and the transmission is cancelled.

Patrik Skaloš (xskalo01), 2022

Usage

Sender

dns_sender [-u UPSTREAM_DNS_IP] {BASE_HOST} {DST_FILEPATH} [SRC_FILEPATH]

where:

  • UPSTREAM_DNS_IP - IPv4 address of the DNS server to use. If not specified, first entry from resolv.conf is used
  • BASE_HOST - domain (eg. example.com) to use in DNS datagrams
  • DST_FILEPATH - path (relative) on the receiver's machine where to save the transmitted data
  • SRC_FILEPATH - path (relative or absolute) to a file to send to the receiver. If not specified, input from STDIN is used instead

Example:

dns_sender -u 192.168.129.99 example.com file_received.txt file_to_send.txt

Receiver

dns_receiver {BASE_HOST} {DST_DIRPATH}

where:

  • BASE_HOST - domain (eg. example.com) to expect in incoming DNS datagrams
  • DST_DIRPATH - path (relative or absolute) on the machine where to save files received from the sender

Example:

dns_receiver example.com files_received/

vut_isa_proj's People

Contributors

sktedro avatar

Watchers

 avatar

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.