mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-07-08 05:51:48 -07:00
fixed indentation on return statement
This commit is contained in:
parent
73e7ca2f3d
commit
d632acc530
2 changed files with 5 additions and 4 deletions
|
@ -49,11 +49,12 @@ class BeefAPI:
|
||||||
return self.get_sessions("offline", "ip")
|
return self.get_sessions("offline", "ip")
|
||||||
|
|
||||||
def get_sessions(self, state, value):
|
def get_sessions(self, state, value):
|
||||||
hooks = []
|
|
||||||
try:
|
try:
|
||||||
|
hooks = []
|
||||||
r = requests.get(self.hookurl + self.token).json()
|
r = requests.get(self.hookurl + self.token).json()
|
||||||
for v in r["hooked-browsers"][state].items():
|
for v in r["hooked-browsers"][state].items():
|
||||||
hooks.append(str(v[1][value]))
|
hooks.append(v[1][value])
|
||||||
|
|
||||||
return hooks
|
return hooks
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
print "beefapi ERROR: %s" % e
|
print "beefapi ERROR: %s" % e
|
||||||
|
|
|
@ -57,7 +57,7 @@ class BeefAutorun(Plugin):
|
||||||
already_ran = []
|
already_ran = []
|
||||||
while True:
|
while True:
|
||||||
sessions = beef.onlineSessions()
|
sessions = beef.onlineSessions()
|
||||||
if (sessions is not None) and (len(sessions) > 0):
|
if len(sessions) > 0:
|
||||||
for session in sessions:
|
for session in sessions:
|
||||||
session_ip = beef.session2host(session)
|
session_ip = beef.session2host(session)
|
||||||
if session not in already_hooked:
|
if session not in already_hooked:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue