Guest User

Untitled

a guest
Mar 18th, 2013
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #deshashear_codigo_php
  2. import re
  3. import base64
  4.  
  5. pat=re.compile('"[\w+=]+"')
  6.  
  7. def repl_hash(matchobj):
  8.     return base64.b64decode(matchobj.group(0).strip())
  9.  
  10. arc_deshasheados=[
  11.     pat.sub( open(fname).read(), repl_hash )
  12.         for fname in ('Session.php', 'Bootstrap.php', 'Model.php', 'Request.php')
  13. ]
  14.  
  15. for arc in arc_deshasheados:
  16.     print arc
Add Comment
Please, Sign In to add comment