mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-07-06 21:12:16 -07:00
Hold on to your butts cause here we go.
This should resolve: * Issue #307 * Issue #309 * Issue #302 * Issue #294 Apperently, Twisted made some fairly heavy API changes in their 16.x release which kinda fucked all the plugins up.
This commit is contained in:
parent
06ef1da084
commit
2dc1dd4f12
6 changed files with 13 additions and 13 deletions
|
@ -611,14 +611,14 @@ class FilePwn(Plugin):
|
|||
|
||||
def response(self, response, request, data):
|
||||
|
||||
content_header = response.headers['content-type']
|
||||
content_header = response.responseHeaders.getRawHeaders('Content-Type')[0]
|
||||
client_ip = request.client.getClientIP()
|
||||
host = request.headers['host']
|
||||
|
||||
try:
|
||||
content_length = int(response.headers['content-length'])
|
||||
except KeyError:
|
||||
content_length = None
|
||||
if not response.responseHeaders.hasHeader('content-length'):
|
||||
content_length = None
|
||||
else:
|
||||
content_length = int(response.responseHeaders.getRawHeaders('content-length')[0])
|
||||
|
||||
for target in self.user_config['targets'].keys():
|
||||
if target == 'ALL':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue