Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #deshashear_codigo_php
- import re
- import base64
- pat=re.compile('"[\w+=]+"')
- def repl_hash(matchobj):
- return base64.b64decode(matchobj.group(0).strip())
- arc_deshasheados=[
- pat.sub( open(fname).read(), repl_hash )
- for fname in ('Session.php', 'Bootstrap.php', 'Model.php', 'Request.php')
- ]
- for arc in arc_deshasheados:
- print arc
Add Comment
Please, Sign In to add comment