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
6 changes: 3 additions & 3 deletions nsmweb.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ def getApps(webPort,victim,uri,https,verb,requestHeaders):
int24 = False

#Verify app is working.
print "Checking to see if site at " + str(victim) + ":" + str(webPort) + str(uri) + " is up..."
print "Checking to see if site at " + str(victim).strip() + ":" + str(webPort).strip() + str(uri).strip() + " is up..."

if https == "OFF":
appURL = "http://" + str(victim) + ":" + str(webPort) + str(uri)
appURL = "http://" + str(victim).strip() + ":" + str(webPort).strip() + str(uri).strip()

elif https == "ON":
appURL = "https://" + str(victim) + ":" + str(webPort) + str(uri)
appURL = "https://" + str(victim).strip() + ":" + str(webPort).strip() + str(uri).strip()
try:
req = urllib2.Request(appURL, None, requestHeaders)
appRespCode = urllib2.urlopen(req).getcode()
Expand Down