File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -182,9 +182,15 @@ def enumDbs (couchConn,target):
182182 userDict = r .json ()
183183
184184 for counter in range (0 ,int (userDict ["total_rows" ])- int (userDict ["offset" ])):
185- userNames .append (userDict ["rows" ][counter ]["id" ].split (":" )[1 ])
186- userHashes .append (userDict ["rows" ][counter ]["doc" ]["password_sha" ])
187- userSalts .append (userDict ["rows" ][counter ]["doc" ]["salt" ])
185+ if float (couchConn .version ()[0 :3 ]) < 1.3 :
186+ userNames .append (userDict ["rows" ][counter ]["id" ].split (":" )[1 ])
187+ userHashes .append (userDict ["rows" ][counter ]["doc" ]["password_sha" ])
188+ userSalts .append (userDict ["rows" ][counter ]["doc" ]["salt" ])
189+
190+ else :
191+ userNames .append (userDict ["rows" ][counter ]["id" ].split (":" )[1 ])
192+ userHashes .append (userDict ["rows" ][counter ]["doc" ]["derived_key" ])
193+ userSalts .append (userDict ["rows" ][counter ]["doc" ]["salt" ])
188194
189195 print "Database Users and Password Hashes:"
190196
You can’t perform that action at this time.
0 commit comments