mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-07-07 05:22:15 -07:00
A replace function makes this module so much more useful
This commit is contained in:
parent
0bca0ca557
commit
2142cf24c5
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ class Replace(CacheKill,Plugin):
|
|||
ip,hn,mime = self._get_req_info(request)
|
||||
|
||||
if self._should_replace(ip,hn,mime) and (not self.replace_str==self.search_str==None) and (not self.search_str==""):
|
||||
data = self._insert_html(data,post=[(self.match_str,self._get_payload())])
|
||||
data = self.replace(self.search_str, self.replace_str)
|
||||
|
||||
self.ctable[ip] = time.time()
|
||||
self.dtable[ip+hn] = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue