I have some encrypted texts (encrypted with 3DES in ECB mode without salt).
My question: How can I decrypt them using a wordlist? (or without one?)
Example:
Encrypted text:
Xfi+h4Ir6l7zXCP+N4EPvQ==
The wordlist for this:
foo
bar
marketing
The original text was before encrypting was: "marketing" (just to make the example full).
I tried with the commented python script:
$ cat 3des.py
#!/usr/local/bin/python
from pyDes import *
data = "marketing"
k = des("DESCRYPT", CBC, "\0\0\0\0\0\0\0\0", pad=None, padmode=PAD_PKCS5)
d = k.encrypt(data)
print "Encrypted: %r" % d
print "Decrypted: %r" % k.decrypt(d)
assert k.decrypt(d, padmode=PAD_PKCS5) == data
testing it:
$ python 3des.py
Encrypted: '\xabd\xfc\x98x\x86\x8d\xb5A\xba\x8e\x12,\x1f\x83\xb5'
Decrypted: 'marketing'
$
A little help please?