File tree Expand file tree Collapse file tree 3 files changed +38
-23
lines changed
Expand file tree Collapse file tree 3 files changed +38
-23
lines changed Original file line number Diff line number Diff line change 11NoSQLMap
22========
33
4- [ NoSQLMap] ( http://www.nosqlmap.net ) v0.3
4+ [ NoSQLMap] ( http://www.nosqlmap.net ) v0.4
55
66Introduction
77============
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ def mainMenu():
6767 print "| |\ | (_) /\__/ /\ \/' / |____| | | | (_| | |_) |"
6868 print "\_| \_/\___/\____/ \_/\_\_____/\_| |_/\__,_| .__/"
6969 print "===================================================="
70- print "NoSQLMap-v0.4DEV "
70+ print "NoSQLMap-v0.4 "
7171 print "nosqlmap@gmail.com"
7272 print "\n "
7373 print "1-Set options"
@@ -1705,7 +1705,10 @@ def passCrack (user, encPass):
17051705
17061706def gen_pass (user , passw , hashVal ):
17071707 if md5 (user + ":mongo:" + str (passw )).hexdigest () == hashVal :
1708- print "\n Found - " + user + ":" + passw
1708+ print "Found - " + user + ":" + passw
1709+ return True
1710+ else :
1711+ return False
17091712
17101713def dict_pass (user ,key ):
17111714 loadCheck = False
@@ -1722,8 +1725,10 @@ def dict_pass(user,key):
17221725 print "Running dictionary attack..."
17231726 for passGuess in passList :
17241727 temp = passGuess .split ("\n " )[0 ]
1725- t = Thread (target = gen_pass , args = (user , temp , key ))
1726- t .start ()
1728+ gotIt = gen_pass (user , temp , key )
1729+
1730+ if gotIt == True :
1731+ break
17271732 return
17281733
17291734def genBrute (chars , maxLen ):
Original file line number Diff line number Diff line change @@ -21,7 +21,10 @@ if [ "$doIt" = "y" ] || [ "$doIt" = "Y" ]; then
2121 pip install httplib2
2222 pip install urllib
2323 pip install hashlib
24-
24+ pip install itertools
25+ pip install re
26+ pip install threading
27+ pip install ast
2528 echo " All done. Check output for errors. Have fun!"
2629
2730 elif [ -f /etc/redhat-release ]; then
@@ -35,15 +38,18 @@ if [ "$doIt" = "y" ] || [ "$doIt" = "Y" ]; then
3538 wget http://mirror-fpt-telecom.fpt.net/fedora/epel/6/i386/epel-release-6-8.noarch.rpm
3639 rpm -ivh epel-release-6-8.noarch.rpm
3740 yum -y install python-pip
38- pip install pymongo
39- pip install gridfs
40- pip install ipcalc
41- pip install hashlib
42- pip install json
43- pip install httplib2
44- pip install urllib
45- pip install hashlib
46-
41+ pip install pymongo
42+ pip install gridfs
43+ pip install ipcalc
44+ pip install hashlib
45+ pip install json
46+ pip install httplib2
47+ pip install urllib
48+ pip install hashlib
49+ pip install itertools
50+ pip install re
51+ pip install threading
52+ pip install ast
4753 echo " All done. Check output for errors. Have fun!"
4854
4955
@@ -55,14 +61,18 @@ if [ "$doIt" = "y" ] || [ "$doIt" = "Y" ]; then
5561 wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
5662 rpm -ivh epel-release-5-4.noarch.rpm
5763 yum -y install python-pip
58- pip install pymongo
59- pip install gridfs
60- pip install ipcalc
61- pip install hashlib
62- pip install json
63- pip install httplib2
64- pip install urllib
65- pip install hashlib
64+ pip install pymongo
65+ pip install gridfs
66+ pip install ipcalc
67+ pip install hashlib
68+ pip install json
69+ pip install httplib2
70+ pip install urllib
71+ pip install hashlib
72+ pip install itertools
73+ pip install re
74+ pip install threading
75+ pip install ast
6676
6777 echo " All done. Check output for errors. Have fun!"
6878
You can’t perform that action at this time.
0 commit comments