mirror of
https://github.com/Cronocide/wifipumpkin3.git
synced 2025-01-22 19:37:18 +00:00
added packet http info into sniffkin3 json log
This commit is contained in:
parent
7fdedfea8e
commit
89f1bd8fe3
@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file.
|
||||
## [1.0.0] - 2020-04-02
|
||||
|
||||
### Added
|
||||
- added packet http info into sniffkin3 json log [mh4x0f]
|
||||
- added alert when the client left the ap [mh4x0f]
|
||||
- added exceptions implementation error [mh4x0f]
|
||||
- added license header __init__ file [mh4x0f]
|
||||
|
@ -82,8 +82,9 @@ class Sniffkin3(MitmMode):
|
||||
|
||||
def LogOutput(self,data):
|
||||
if self.conf.get('accesspoint', 'status_ap', format=bool):
|
||||
self.logger.info('[ {0[src]} > {0[dst]} ] {1[Method]} {1[Host]}{1[Path]}'.format(
|
||||
data['urlsCap']['IP'], data['urlsCap']['Headers']))
|
||||
self.logger.addExtra('packet', data) # packet info save json
|
||||
self.logger.info('[ {0[src]} > {0[dst]} ] {1[Method]} {1[Host]}{1[Path]}'
|
||||
.format(data['urlsCap']['IP'], data['urlsCap']['Headers']))
|
||||
|
||||
@property
|
||||
def getPlugins(self):
|
||||
|
@ -152,6 +152,9 @@ class StandardLog:
|
||||
self.configure()
|
||||
self.logger.debug(message)
|
||||
|
||||
def addExtra(self,key=str ,data=dict):
|
||||
self.extra[key] = data
|
||||
|
||||
class LoggerManager(CoreSettings):
|
||||
Name = "Logger Manager"
|
||||
ID = "Logger"
|
||||
|
Loading…
Reference in New Issue
Block a user