mirror of
https://github.com/lgandx/Responder.git
synced 2025-07-14 00:53:01 -07:00
Added: Log command line in Responder-Session.log.
This commit is contained in:
parent
235f0fa8ae
commit
f69e93c02e
1 changed files with 4 additions and 1 deletions
5
Responder.py
Normal file → Executable file
5
Responder.py
Normal file → Executable file
|
@ -130,9 +130,11 @@ def Analyze(AnalyzeMode):
|
|||
return False
|
||||
|
||||
#Logger
|
||||
CommandLine = str(sys.argv)
|
||||
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.warning('Responder Started')
|
||||
StartMessage = 'Responder Started\nCommand line args:%s' %(CommandLine)
|
||||
logging.warning(StartMessage)
|
||||
|
||||
Log2Filename = str(os.path.join(ResponderPATH,"LLMNR-NBT-NS.log"))
|
||||
logger2 = logging.getLogger('LLMNR/NBT-NS')
|
||||
|
@ -2521,3 +2523,4 @@ if __name__ == '__main__':
|
|||
except:
|
||||
raise
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue