Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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