mirror of
https://github.com/lgandx/Responder.git
synced 2025-07-06 04:51:23 -07:00
DNS dump updated + removed var dump info on Config-Responder.log
This commit is contained in:
parent
66e5b12c56
commit
44bfd1d221
1 changed files with 2 additions and 2 deletions
|
@ -332,7 +332,7 @@ class Settings:
|
||||||
NetworkCard = "Error fetching Network Interfaces:", ex
|
NetworkCard = "Error fetching Network Interfaces:", ex
|
||||||
pass
|
pass
|
||||||
try:
|
try:
|
||||||
DNS = subprocess.check_output(["cat", "/etc/resolv.conf"])
|
DNS = subprocess.check_output(["resolvectl", "status"])
|
||||||
except subprocess.CalledProcessError as ex:
|
except subprocess.CalledProcessError as ex:
|
||||||
DNS = "Error fetching DNS configuration:", ex
|
DNS = "Error fetching DNS configuration:", ex
|
||||||
pass
|
pass
|
||||||
|
@ -348,7 +348,7 @@ class Settings:
|
||||||
Message = "%s\nCurrent environment is:\nNetwork Config:\n%s\nDNS Settings:\n%s\nRouting info:\n%s\n\n"%(utils.HTTPCurrentDate(), NetworkCard.decode('latin-1'),DNS.decode('latin-1'),RoutingInfo.decode('latin-1'))
|
Message = "%s\nCurrent environment is:\nNetwork Config:\n%s\nDNS Settings:\n%s\nRouting info:\n%s\n\n"%(utils.HTTPCurrentDate(), NetworkCard.decode('latin-1'),DNS.decode('latin-1'),RoutingInfo.decode('latin-1'))
|
||||||
try:
|
try:
|
||||||
utils.DumpConfig(self.ResponderConfigDump, Message)
|
utils.DumpConfig(self.ResponderConfigDump, Message)
|
||||||
utils.DumpConfig(self.ResponderConfigDump,str(self))
|
#utils.DumpConfig(self.ResponderConfigDump,str(self))
|
||||||
except AttributeError as ex:
|
except AttributeError as ex:
|
||||||
print("Missing Module:", ex)
|
print("Missing Module:", ex)
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue