Skip to content

Instantly share code, notes, and snippets.

@kmdnet
Created August 20, 2016 02:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kmdnet/4419c9d440f3fe508be2fd3c5744c3e8 to your computer and use it in GitHub Desktop.
Save kmdnet/4419c9d440f3fe508be2fd3c5744c3e8 to your computer and use it in GitHub Desktop.
import base64
import re
lmark = "eval MIME::Base64::decode"
sp = 'decode.\"(.+)\".;'
data = ""
output = ""
result = ""
p = re.compile(sp)
for num in range(0,20):
with open(str(num)+".txt","r") as f:
data = f.read()
m = p.findall(data)
for x in m:
n_m = data.find(x)
if data[n_m-25-2:n_m-2]!=lmark:
output += base64.b64decode(x)
with open("00.gif","r") as f:
data = f.read()
result = data + output
with open("entrevue.gif","w") as f:
f.write(result)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment