Skip to content

anaselfaijah/dnsteal

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 

Repository files navigation

DNSteal (Python 3 Modernized)

⚠️ Note: This is an updated fork of the original m57/dnsteal. It has been ported to Python 3 and patches several bugs found in modern environments.

Why I made this

I use this tool for a cybersecurity course. The original code was written in Python 2. Since that version is End-of-Life, I ported it to Python 3 to make it easier to use on modern systems.

I used standard migration tools like 2to3 and autopep8 as a base. Then, I manually fixed the network logic to handle bytes and strings correctly.

Key Changes in this Version:

  • Python 3 Port: Full migration from Python 2 (syntax, print functions, exception handling).
  • Network Stability: Fixed critical TypeError bugs by strictly handling bytes/strings for socket transmission.
  • Modern dig Compatibility: Added the +noidnin flag to generated commands. This fixes the "illegal IDNA2008 name" error on modern Linux distributions when payloads end with a hyphen (-.).
  • Bug Fixes: Fixed MD5 checksum crash by enforcing binary mode (rb) for file reading.
  • Cleanup: Refactored code to comply with PEP8 standards and removed unused imports.

About

Updated Python 3 port of dnsteal. Stealthy DNS Exfiltration tool for stealthily sending files over DNS requests.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%