App-Cache poison and BrowserSniper plugins have been refactored, added supported python version tags in README

This commit is contained in:
byt3bl33d3r 2015-07-26 14:03:56 +02:00
parent 52a493995a
commit f0fce41c88
16 changed files with 96 additions and 121 deletions

View file

@ -23,7 +23,7 @@ from datetime import datetime
from plugins.plugin import Plugin
from twisted.internet import reactor
from twisted.web import http
from twisted.internet import reactor
from core.ferretng.URLMonitor import URLMonitor
class FerretNG(Plugin):
name = "Ferret-NG"
@ -37,9 +37,6 @@ class FerretNG(Plugin):
self.ferret_port = options.ferret_port
self.cookie_file = None
from core.ferretng.FerretProxy import FerretProxy
from core.ferretng.URLMonitor import URLMonitor
URLMonitor.getInstance().hijack_client = self.config['Ferret-NG']['Client']
from core.utils import shutdown
@ -79,6 +76,7 @@ class FerretNG(Plugin):
URLMonitor.getInstance().cookies[client].append({'host': host, 'cookie': cookie})
def reactor(self, StrippingProxy):
from core.ferretng.FerretProxy import FerretProxy
FerretFactory = http.HTTPFactory(timeout=10)
FerretFactory.protocol = FerretProxy
reactor.listenTCP(self.ferret_port, FerretFactory)