mirror of
https://github.com/lgandx/Responder.git
synced 2025-12-11 02:09:05 +00:00
Added: Log command line in Responder-Session.log.
This commit is contained in:
5
Responder.py
Normal file → Executable file
5
Responder.py
Normal file → Executable file
@@ -130,9 +130,11 @@ def Analyze(AnalyzeMode):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
#Logger
|
#Logger
|
||||||
|
CommandLine = str(sys.argv)
|
||||||
import logging
|
import logging
|
||||||
logging.basicConfig(filename=str(os.path.join(ResponderPATH,SessionLog)),level=logging.INFO,format='%(asctime)s %(message)s', datefmt='%m/%d/%Y %I:%M:%S %p')
|
logging.basicConfig(filename=str(os.path.join(ResponderPATH,SessionLog)),level=logging.INFO,format='%(asctime)s %(message)s', datefmt='%m/%d/%Y %I:%M:%S %p')
|
||||||
logging.warning('Responder Started')
|
StartMessage = 'Responder Started\nCommand line args:%s' %(CommandLine)
|
||||||
|
logging.warning(StartMessage)
|
||||||
|
|
||||||
Log2Filename = str(os.path.join(ResponderPATH,"LLMNR-NBT-NS.log"))
|
Log2Filename = str(os.path.join(ResponderPATH,"LLMNR-NBT-NS.log"))
|
||||||
logger2 = logging.getLogger('LLMNR/NBT-NS')
|
logger2 = logging.getLogger('LLMNR/NBT-NS')
|
||||||
@@ -2521,3 +2523,4 @@ if __name__ == '__main__':
|
|||||||
except:
|
except:
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user