Merge pull request #276 from f3rn0s/master

Add options for poisoners
This commit is contained in:
lgandx 2024-05-06 07:10:32 -03:00 committed by GitHub
commit 06b33edc27
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 43 additions and 28 deletions

View file

@ -1,22 +1,27 @@
[Responder Core] [Responder Core]
; Poisoners to start
MDNS = On
LLMNR = On
NBTNS = On
; Servers to start ; Servers to start
SQL = On SQL = On
SMB = On SMB = On
RDP = On RDP = On
Kerberos = On Kerberos = On
FTP = On FTP = On
POP = On POP = On
SMTP = On SMTP = On
IMAP = On IMAP = On
HTTP = On HTTP = On
HTTPS = On HTTPS = On
DNS = On DNS = On
LDAP = On LDAP = On
DCERPC = On DCERPC = On
WINRM = On WINRM = On
SNMP = Off SNMP = Off
MQTT = On MQTT = On
; Custom challenge. ; Custom challenge.
; Use "Random" for generating a random challenge for each requests (Default) ; Use "Random" for generating a random challenge for each requests (Default)

View file

@ -298,12 +298,17 @@ def main():
threads = [] threads = []
# Load (M)DNS, NBNS and LLMNR Poisoners # Load (M)DNS, NBNS and LLMNR Poisoners
from poisoners.LLMNR import LLMNR if settings.Config.LLMNR_On_Off:
from poisoners.NBTNS import NBTNS from poisoners.LLMNR import LLMNR
from poisoners.MDNS import MDNS threads.append(Thread(target=serve_LLMNR_poisoner, args=('', 5355, LLMNR,)))
threads.append(Thread(target=serve_LLMNR_poisoner, args=('', 5355, LLMNR,)))
threads.append(Thread(target=serve_MDNS_poisoner, args=('', 5353, MDNS,))) if settings.Config.NBTNS_On_Off:
threads.append(Thread(target=serve_NBTNS_poisoner, args=('', 137, NBTNS,))) from poisoners.NBTNS import NBTNS
threads.append(Thread(target=serve_NBTNS_poisoner, args=('', 137, NBTNS,)))
if settings.Config.MDNS_On_Off:
from poisoners.MDNS import MDNS
threads.append(Thread(target=serve_MDNS_poisoner, args=('', 5353, MDNS,)))
#// Vintage Responder BOWSER module, now disabled by default. #// Vintage Responder BOWSER module, now disabled by default.
#// Generate to much noise & easily detectable on the network when in analyze mode. #// Generate to much noise & easily detectable on the network when in analyze mode.

View file

@ -115,6 +115,11 @@ class Settings:
config = ConfigParser.ConfigParser() config = ConfigParser.ConfigParser()
config.read(os.path.join(self.ResponderPATH, 'Responder.conf')) config.read(os.path.join(self.ResponderPATH, 'Responder.conf'))
# Poisoners
self.LLMNR_On_Off = self.toBool(config.get('Responder Core', 'LLMNR'))
self.NBNS_On_Off = self.toBool(config.get('Responder Core', 'NBTNS'))
self.MDNS_On_Off = self.toBool(config.get('Responder Core', 'MDNS'))
# Servers # Servers
self.HTTP_On_Off = self.toBool(config.get('Responder Core', 'HTTP')) self.HTTP_On_Off = self.toBool(config.get('Responder Core', 'HTTP'))
self.SSL_On_Off = self.toBool(config.get('Responder Core', 'HTTPS')) self.SSL_On_Off = self.toBool(config.get('Responder Core', 'HTTPS'))