mirror of
https://github.com/lgandx/Responder.git
synced 2025-08-21 05:43:35 -07:00
Merge 7e6d49bf42
into 398a1fce31
This commit is contained in:
commit
513efc8063
4 changed files with 13 additions and 3 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1,5 +1,6 @@
|
||||||
# Python artifacts
|
# Python artifacts
|
||||||
*.pyc
|
*.pyc
|
||||||
|
.venv/
|
||||||
|
|
||||||
# Responder logs
|
# Responder logs
|
||||||
*.db
|
*.db
|
||||||
|
@ -9,3 +10,6 @@
|
||||||
# Generated certificates and keys
|
# Generated certificates and keys
|
||||||
certs/*.crt
|
certs/*.crt
|
||||||
certs/*.key
|
certs/*.key
|
||||||
|
|
||||||
|
# IDE
|
||||||
|
.idea/
|
||||||
|
|
|
@ -71,7 +71,9 @@ class LLMNR(BaseRequestHandler): # LLMNR Server class
|
||||||
if data[2:4] == b'\x00\x00' and LLMNRType:
|
if data[2:4] == b'\x00\x00' and LLMNRType:
|
||||||
if settings.Config.AnalyzeMode:
|
if settings.Config.AnalyzeMode:
|
||||||
LineHeader = "[Analyze mode: LLMNR]"
|
LineHeader = "[Analyze mode: LLMNR]"
|
||||||
print(color("%s Request by %s for %s, ignoring" % (LineHeader, self.client_address[0].replace("::ffff:",""), Name), 2, 1))
|
# Don't print if in Quiet Mode
|
||||||
|
if not settings.Config.Quite_Mode:
|
||||||
|
print(color("%s Request by %s for %s, ignoring" % (LineHeader, self.client_address[0].replace("::ffff:",""), Name), 2, 1))
|
||||||
SavePoisonersToDb({
|
SavePoisonersToDb({
|
||||||
'Poisoner': 'LLMNR',
|
'Poisoner': 'LLMNR',
|
||||||
'SentToIp': self.client_address[0],
|
'SentToIp': self.client_address[0],
|
||||||
|
|
|
@ -64,7 +64,9 @@ class MDNS(BaseRequestHandler):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
if settings.Config.AnalyzeMode: # Analyze Mode
|
if settings.Config.AnalyzeMode: # Analyze Mode
|
||||||
print(text('[Analyze mode: MDNS] Request by %-15s for %s, ignoring' % (color(self.client_address[0].replace("::ffff:",""), 3), color(Request_Name, 3))))
|
# Don't print if in Quiet Mode
|
||||||
|
if not settings.Config.Quite_Mode:
|
||||||
|
print(text('[Analyze mode: MDNS] Request by %-15s for %s, ignoring' % (color(self.client_address[0].replace("::ffff:",""), 3), color(Request_Name, 3))))
|
||||||
SavePoisonersToDb({
|
SavePoisonersToDb({
|
||||||
'Poisoner': 'MDNS',
|
'Poisoner': 'MDNS',
|
||||||
'SentToIp': self.client_address[0],
|
'SentToIp': self.client_address[0],
|
||||||
|
|
|
@ -36,7 +36,9 @@ class NBTNS(BaseRequestHandler):
|
||||||
|
|
||||||
if data[2:4] == b'\x01\x10':
|
if data[2:4] == b'\x01\x10':
|
||||||
if settings.Config.AnalyzeMode: # Analyze Mode
|
if settings.Config.AnalyzeMode: # Analyze Mode
|
||||||
print(text('[Analyze mode: NBT-NS] Request by %-15s for %s, ignoring' % (color(self.client_address[0].replace("::ffff:",""), 3), color(Name, 3))))
|
# Don't print if in Quiet Mode
|
||||||
|
if not settings.Config.Quite_Mode:
|
||||||
|
print(text('[Analyze mode: NBT-NS] Request by %-15s for %s, ignoring' % (color(self.client_address[0].replace("::ffff:",""), 3), color(Name, 3))))
|
||||||
SavePoisonersToDb({
|
SavePoisonersToDb({
|
||||||
'Poisoner': 'NBT-NS',
|
'Poisoner': 'NBT-NS',
|
||||||
'SentToIp': self.client_address[0],
|
'SentToIp': self.client_address[0],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue