Permalink
Browse files

added 1 to args payload index

i returns the argument name "-payload"; i + 1 returns the passed argument itself
  • Loading branch information...
meetar committed Nov 7, 2013
1 parent db69b84 commit 6225967c1fd7b2fa65617e0192a5086f4b5685ff
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
@@ -199,7 +199,7 @@ payload = None
payload_file = None
for i in range(len(sys.argv)):
if sys.argv[i] == "-payload" and (i + 1) < len(sys.argv):
- payload_file = sys.argv[i]
+ payload_file = sys.argv[i + 1]
break
f = open(payload_file, "r")

0 comments on commit 6225967

Please sign in to comment.