title: How to decrypt 3DES in ECB mode (using a wordlist)?
body: <p>I have some encrypted texts (encrypted with 3DES in ECB mode without salt). </p>
  
  <p><strong>My question: How can I decrypt them using a wordlist? (or without one?)</strong></p>
  
  <p>Example: </p>
  
  <p>Encrypted text:  </p>
  
  <pre><code>Xfi+h4Ir6l7zXCP+N4EPvQ==
  </code></pre>
  
  <p>The wordlist for this: </p>
  
  <pre><code>foo
  bar
  marketing
  </code></pre>
  
  <p>The original text was before encrypting was: "marketing" (just to make the example full). </p>
  
  <p>I tried with the commented python script: </p>
  
  <pre><code>$ 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
  </code></pre>
  
  <p>testing it: </p>
  
  <pre><code>$ python 3des.py 
  Encrypted: '\xabd\xfc\x98x\x86\x8d\xb5A\xba\x8e\x12,\x1f\x83\xb5'
  Decrypted: 'marketing'
  $ 
  </code></pre>
  
  <p>A little help please?</p>