Created
August 20, 2016 02:16
-
-
Save kmdnet/4419c9d440f3fe508be2fd3c5744c3e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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