Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save twoblokeswithapostie/9323969 to your computer and use it in GitHub Desktop.
Save twoblokeswithapostie/9323969 to your computer and use it in GitHub Desktop.
import os
to_replace = """eval(base64_decode("DQplcnJvcl9yZXBvcnRpbmco...9DQp9"));"""
for dname, dirs, files in os.walk("/Users/mariogudelj/code/device.com/public_html/"):
for fname in files:
fpath = os.path.join(dname, fname)
with open(fpath) as f:
s = f.read()
found = s.find(to_replace)
if(found != -1):
print fpath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment