Skip to content

Commit 3e43ad2

Browse files
authored
Merge pull request iphelix#19 from byt3bl33d3r/master
Port to Python 3.6+
2 parents a2530fa + b50b453 commit 3e43ad2

File tree

8 files changed

+221
-160
lines changed

8 files changed

+221
-160
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.log

CHANGELOG

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
Version 0.4
2+
3+
* Ported to Python 3.6+
4+
* Made everything a bit more PEP8 compliant
5+
* Improved logging
6+
* Removed IPy library (replaced with built-in ipaddress library)
7+
18
Version 0.3
29

310
* Added support for the latest version of the dnslib library - 0.9.3

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (C) 2014 Peter Kacherginsky
1+
Copyright (C) 2014 Peter Kacherginsky, Marcello Salvati
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without

Pipfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[[source]]
2+
name = "pypi"
3+
url = "https://pypi.org/simple"
4+
verify_ssl = true
5+
6+
[dev-packages]
7+
8+
[packages]
9+
dnslib = "*"

Pipfile.lock

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
_ _ __
2-
| | version 0.2 | | / _|
2+
| | version 0.4 | | / _|
33
__| |_ __ ___ ___| |__ ___| |_
44
/ _` | '_ \/ __|/ __| '_ \ / _ \ _|
55
| (_| | | | \__ \ (__| | | | __/ |
@@ -335,7 +335,7 @@ Internal architecture
335335

336336
Here is some information on the internals in case you need to adapt the tool for your needs. DNSChef is built on top of the SocketServer module and uses threading to help process multiple requests simultaneously. The tool is designed to listen on TCP or UDP ports (default is port 53) for incoming requests and forward those requests when necessary to a real DNS server over UDP.
337337

338-
The excellent [dnslib library](https://bitbucket.org/paulc/dnslib/wiki/Home) is used to dissect and reassemble DNS packets. It is particularly useful when generating response packets based on queries. [IPy](https://github.com/haypo/python-ipy/) is used for IPv6 addresses manipulation. Both libraries come bundled with DNSChef to ease installation.
338+
The excellent [dnslib library](https://bitbucket.org/paulc/dnslib/wiki/Home) is used to dissect and reassemble DNS packets. It is particularly useful when generating response packets based on queries.
339339

340340
DNSChef is capable of modifing queries for records of type "A", "AAAA", "MX", "CNAME", "NS", "TXT", "PTR", "NAPTR", "SOA", "ANY". It is very easy to expand or modify behavior for any record. Simply add another **if qtype == "RECORD TYPE")** entry and tell it what to reply with.
341341

0 commit comments

Comments
 (0)