mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-07-08 05:51:48 -07:00
- Fixed error in print statement
- added requirements.txt file
This commit is contained in:
parent
0c6ac4fb1d
commit
2cfc46c187
3 changed files with 25 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
MITMf V0.9
|
MITMf V0.9.1
|
||||||
==========
|
==========
|
||||||
|
|
||||||
Framework for Man-In-The-Middle attacks
|
Framework for Man-In-The-Middle attacks
|
||||||
|
|
|
@ -25,6 +25,7 @@ class Sniffer(Plugin):
|
||||||
def initialize(self, options):
|
def initialize(self, options):
|
||||||
self.options = options
|
self.options = options
|
||||||
self.interface = options.interface
|
self.interface = options.interface
|
||||||
|
#self.parse = options.parse
|
||||||
|
|
||||||
#these field names were stolen from the etter.fields file (Ettercap Project)
|
#these field names were stolen from the etter.fields file (Ettercap Project)
|
||||||
self.http_userfields = ['log','login', 'wpname', 'ahd_username', 'unickname', 'nickname', 'user', 'user_name',
|
self.http_userfields = ['log','login', 'wpname', 'ahd_username', 'unickname', 'nickname', 'user', 'user_name',
|
||||||
|
@ -43,9 +44,18 @@ class Sniffer(Plugin):
|
||||||
n = NetCreds()
|
n = NetCreds()
|
||||||
|
|
||||||
print "[*] Sniffer plugin online"
|
print "[*] Sniffer plugin online"
|
||||||
|
|
||||||
|
#if not self.parse:
|
||||||
t = threading.Thread(name="sniffer", target=n.start, args=(self.interface,))
|
t = threading.Thread(name="sniffer", target=n.start, args=(self.interface,))
|
||||||
t.setDaemon(True)
|
t.setDaemon(True)
|
||||||
t.start()
|
t.start()
|
||||||
|
#else:
|
||||||
|
# pcap = rdpcap(self.parse)
|
||||||
|
# for pkt in pcap:
|
||||||
|
# n.pkt_parser(pkt)
|
||||||
|
|
||||||
|
#def add_options(self, options):
|
||||||
|
# options.add_argument('--parse', dest='parse', type=str, default=None, help='Parse pcap')
|
||||||
|
|
||||||
def sendRequest(self, request):
|
def sendRequest(self, request):
|
||||||
#Capture google searches
|
#Capture google searches
|
||||||
|
@ -772,9 +782,9 @@ class NetCreds:
|
||||||
|
|
||||||
def printer(self, src_ip_port, dst_ip_port, msg):
|
def printer(self, src_ip_port, dst_ip_port, msg):
|
||||||
if dst_ip_port != None:
|
if dst_ip_port != None:
|
||||||
print_str = '[%s --> %s] %s%s%s' % (src_ip_port, dst_ip_port, T, msg, W)
|
print_str = '%s --> %s %s' % (src_ip_port, dst_ip_port,msg)
|
||||||
# All credentials will have dst_ip_port, URLs will not
|
# All credentials will have dst_ip_port, URLs will not
|
||||||
logging.info(print_str)
|
logging.info(print_str)
|
||||||
else:
|
else:
|
||||||
print_str = '[%s] %s' % (src_ip_port.split(':')[0], msg)
|
print_str = '%s %s' % (src_ip_port.split(':')[0], msg)
|
||||||
logging.info(print_str)
|
logging.info(print_str)
|
||||||
|
|
12
requirements.txt
Normal file
12
requirements.txt
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
Twisted
|
||||||
|
requests
|
||||||
|
scapy
|
||||||
|
msgpack-python
|
||||||
|
dnspython
|
||||||
|
user-agents
|
||||||
|
configobj
|
||||||
|
pyyaml
|
||||||
|
ua-parser
|
||||||
|
Pillow
|
||||||
|
pefile
|
||||||
|
capstone
|
Loading…
Add table
Add a link
Reference in a new issue