Skip to content

Commit 4aebe34

Browse files
committed
Fixed bugs in choosing payload length and format
1 parent 3f3442e commit 4aebe34

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy