mirror of
https://github.com/calebstewart/pwncat.git
synced 2024-11-27 19:04:15 +01:00
Added missing 'return' statement
When we have a session, the missing 'return' statement was allowing to index invalid sessions values
This commit is contained in:
parent
2bd4e625fd
commit
03f7ad8466
@ -73,6 +73,7 @@ class Command(CommandDefinition):
|
|||||||
|
|
||||||
if args.session_id < 0 or args.session_id >= len(manager.sessions):
|
if args.session_id < 0 or args.session_id >= len(manager.sessions):
|
||||||
console.log(f"[red]error[/red]: {args.session_id}: no such session!")
|
console.log(f"[red]error[/red]: {args.session_id}: no such session!")
|
||||||
|
return
|
||||||
|
|
||||||
session = manager.sessions[args.session_id]
|
session = manager.sessions[args.session_id]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user