Commit 68dee13b by Marcin Bury

Handling empty command.

parent 671d2473
...@@ -24,7 +24,7 @@ def shell(exploit, architecture="", method="", **params): ...@@ -24,7 +24,7 @@ def shell(exploit, architecture="", method="", **params):
return return
c = cmd.split() c = cmd.split()
if c[0] == "reverse_tcp": if len(c) and c[0] == "reverse_tcp":
if len(c) == 3: if len(c) == 3:
lhost = c[1] lhost = c[1]
lport = c[2] lport = c[2]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment