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:
byt3bl33d3r 2016-06-08 23:39:58 -06:00
parent 06ef1da084
commit 2dc1dd4f12
6 changed files with 13 additions and 13 deletions

View file

@ -33,6 +33,6 @@ class SMBTrap(Plugin):
return {"request": request, "version": version, "code": 302, "message": "Found"}
def responseheaders(self, response, request):
self.clientlog.info("Trapping request to {}".format(request.headers['host']))
self.clientlog.info("Trapping request to {}".format(request.headers['host']), extra=request.clientInfo)
rand_path = ''.join(random.sample(string.ascii_uppercase + string.digits, 8))
response.headers["Location"] = "file://{}/{}".format(self.ip, rand_path)
response.responseHeaders.setRawHeaders('Location', ["file://{}/{}".format(self.ip, rand_path)])