Guest User

Untitled

a guest
Apr 19th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. "base64,BASESTRING"
  2.  
  3. "base,
  4.  
  5. "
  6.  
  7. def bdec(word):
  8. base64.decode(word, outbase)
  9. outbase = outbase.decode('utf8')
  10. outbase = outbase.strip("'")[1]
  11. return outbase
  12.  
  13. base = re.compile(r'base64,(?P<grp>.*?)"')
  14. soup=re.sub(base, bdec(grp), soup)
  15.  
  16. for match in re.findall(base, soup):
  17. soup=soup.replace(match, bdec(grp))
Add Comment
Please, Sign In to add comment