Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions nsmweb.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,15 @@ def getApps(webPort,victim,uri,https,verb,requestHeaders):

if appUp == True:

injectSize = raw_input("Baseline test-Enter random string size: ")
sizeSelect = True

while sizeSelect:
injectSize = raw_input("Baseline test-Enter random string size: ")
if injectSize.isdigit():
sizeSelect = False
else:
print "Invalid! The size should be an integer."

injectString = randInjString(int(injectSize))
print "Using " + injectString + " for injection testing.\n"

Expand Down Expand Up @@ -429,7 +437,15 @@ def postApps(victim,webPort,uri,https,verb,postData,requestHeaders):
raw_input("Something went wrong. Press enter to return to the main menu...")
return

injectSize = raw_input("Baseline test-Enter random string size: ")
sizeSelect = True

while sizeSelect:
injectSize = raw_input("Baseline test-Enter random string size: ")
if injectSize.isdigit():
sizeSelect = False
else:
print "Invalid! The size should be an integer."

injectString = randInjString(int(injectSize))
print "Using " + injectString + " for injection testing.\n"

Expand Down