Skip to content

Commit 9f9890f

Browse files
authored
Merge pull request #71 from CaptainFreak/master
Fixed bugs in choosing payload length and format
2 parents 3f3442e + 4aebe34 commit 9f9890f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

nsmweb.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ def getApps(webPort,victim,uri,https,verb,requestHeaders, args = None):
125125
else:
126126
injectSize = int(args.injectSize)
127127
format = args.injectFormat
128-
128+
129+
injectSize = int(injectSize)
129130
injectString = build_random_string(format, injectSize)
130131

131132
print "Using " + injectString + " for injection testing.\n"
@@ -869,13 +870,13 @@ def randInjString(size):
869870
print "2-Letters only"
870871
print "3-Numbers only"
871872
print "4-Email address"
872-
format = True
873873

874-
while format:
874+
while True:
875875
format = raw_input("Select an option: ")
876876
if format not in ["1", "2", "3", "4"]:
877-
format = True
878877
print "Invalid selection."
878+
else:
879+
break
879880
return format
880881

881882
def build_random_string(format, size):

0 commit comments

Comments
 (0)