mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-07-07 13:32:18 -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")
|
||||
|
||||
def get_sessions(self, state, value):
|
||||
hooks = []
|
||||
try:
|
||||
hooks = []
|
||||
r = requests.get(self.hookurl + self.token).json()
|
||||
for v in r["hooked-browsers"][state].items():
|
||||
hooks.append(str(v[1][value]))
|
||||
hooks.append(v[1][value])
|
||||
|
||||
return hooks
|
||||
except Exception, e:
|
||||
print "beefapi ERROR: %s" % e
|
||||
|
|
|
@ -57,7 +57,7 @@ class BeefAutorun(Plugin):
|
|||
already_ran = []
|
||||
while True:
|
||||
sessions = beef.onlineSessions()
|
||||
if (sessions is not None) and (len(sessions) > 0):
|
||||
if len(sessions) > 0:
|
||||
for session in sessions:
|
||||
session_ip = beef.session2host(session)
|
||||
if session not in already_hooked:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue