Skip to content
Snippets Groups Projects
Commit f89ff41e authored by Jiří Rája's avatar Jiří Rája 🔥
Browse files

Merge branch 'allow-empty-session-target' into 'master'

Allowed empty session target

See merge request cryton/cryton-modules!44
parents aef81913 373964a5
No related branches found
No related tags found
No related merge requests found
......@@ -222,7 +222,7 @@ def execute(args: dict) -> dict:
if session_target is None:
session_target = get_session_target(module_options)
if session_target:
if session_target is not None:
# Get sessions before
before_sessions = msf.get_sessions(target_host=session_target, via_exploit=module, via_payload=payload)
......@@ -278,7 +278,7 @@ def execute(args: dict) -> dict:
ret_vals[RETURN_CODE] = 0
# Check for Error or Success
if session_target:
if session_target is not None:
new_session_id = get_created_session(msf, session_target, module, payload, before_sessions)
if new_session_id is not None:
ret_vals[RETURN_CODE] = 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment