mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-07-07 05:22:15 -07:00
-Initial Spoof plugin rewrite
-Dep check on plugins -NetfilterQueue python lib port -plugin output re-design
This commit is contained in:
parent
92be661e9d
commit
23a273e8a0
17 changed files with 595 additions and 522 deletions
|
@ -11,11 +11,13 @@ from plugins.CacheKill import CacheKill
|
|||
|
||||
|
||||
class Replace(CacheKill, Plugin):
|
||||
name = "Replace"
|
||||
optname = "replace"
|
||||
name = "Replace"
|
||||
optname = "replace"
|
||||
desc = "Replace arbitrary content in HTML content"
|
||||
implements = ["handleResponse", "handleHeader", "connectionMade"]
|
||||
has_opts = True
|
||||
desc = "Replace arbitrary content in HTML content"
|
||||
depends = ["CacheKill"]
|
||||
has_opts = True
|
||||
req_root = False
|
||||
|
||||
def initialize(self, options):
|
||||
self.options = options
|
||||
|
@ -25,11 +27,10 @@ class Replace(CacheKill, Plugin):
|
|||
self.regex_file = options.regex_file
|
||||
|
||||
if (self.search_str is None or self.search_str == "") and self.regex_file is None:
|
||||
sys.exit("[*] Please provide a search string or a regex file")
|
||||
sys.exit("[-] Please provide a search string or a regex file")
|
||||
|
||||
self.regexes = []
|
||||
if self.regex_file is not None:
|
||||
print "[*] Loading regexes from file"
|
||||
for line in self.regex_file:
|
||||
self.regexes.append(line.strip().split("\t"))
|
||||
|
||||
|
@ -41,8 +42,6 @@ class Replace(CacheKill, Plugin):
|
|||
self.dtable = {}
|
||||
self.mime = "text/html"
|
||||
|
||||
print "[*] Replace plugin online"
|
||||
|
||||
def handleResponse(self, request, data):
|
||||
ip, hn, mime = self._get_req_info(request)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue