Forum Thread: Bypassing HSTS with SSLStrip (MITMf) Issue (Cannot Find LOG)

Bypassing HSTS with SSLStrip (MITMf) Issue (Cannot Find LOG)

Hey guys;

I am trying to run SSLStrip+ to bypass HSTS using the MITMf and I am running into an issue. I downloaded this from MITMf and I trying to run it with this command:

Python mitmf.py -I wlan0 --Spoof --Arp --Dns --Gateway 192.168.1.1 --Target 192.168.1.X

This is my output...

Output:
snip
Traceback (most recent call last):
File "mitmf.py", line 180, in <module>
from core.protocols.smb.SMBserver import SMBserver
File "/root/MITMf/core/protocols/smb/SMBserver.py", line 5, in <module>
from impacket import version, smbserver, LOG
ImportError: cannot import name LOG

Am I missing something for an SMBserver or something? Is there something else I should download in order to get this to work?

Thanks in advance!

EDIT: italics

9 Responses

looks like the LOG library is missing. are you sure you have it installed?

-Phoenix750

I figured that, but I didn't want to make assumptions. I downloaded that file and then ran ./setup.sh once in the directory. I even ran ./update.sh so I'm not sure where to find it if it isn't installed from either of those locations... If it is somewhere in the file, how would I get it to import it from a different location? I would have to fudge with the script, correct?

Thanks for that, I was actually digging through the Github repository and found the Impacket file that everything was being called from.

Thanks for the help!

Was gonna say didnt you post that in your guide Ciuffy?

Yep, I fell in it too. Solution was pretty hidden. Only one report to the developer in one random issue.

Once I realized that the LOG issue was coming from the Impacket, I went through the github MITMf page to find the Impacket from another user and even then, it didn't reference the LOG issue or anything.

how fix

* MITMf v0.9.7 online... initializing plugins
| Spoof v0.6
|
Inject v0.3
|
| Sergio-Proxy v0.2.1 online
|
SSLstrip v0.9 by Moxie Marlinspike online
| Net-Creds v1.0 online
|
DNSChef v0.4 online Traceback (most recent call last):
File "./mitmf.py", line 180, in from core.protocols.smb.SMBserver import SMBserver
File "/usr/share/mitmf/core/protocols/smb/SMBserver.py", line 5, in from impacket import version, smbserver, LOG

Share Your Thoughts

  • Hot
  • Active