Embedding exe file
Méta-MCI
enleverlesX.XmcX at XmclaveauX.com
Sun Jul 16 17:43:24 EDT 2006
Hi!
This script :
import base64
data=open("D:\\toto.exe","rb").read()
data64='''import base64,os
data="""'''+base64.b64encode(data)+'''"""
f=open(r"C:\\temporaire.exe","wb").write(base64.b64decode(data))
os.system(r"C:\\temporaire.exe")
'''
f=open("64exe.py","w").write(data64)
Create a script (ascii file) "64exe.py" with the exe "D:\toto.exe"
The script "64exe.py" (re)-create C:\temporaire.exe and run it.
It's a little basic template, for your answer.
*sorry for my bad english*
Michel Claveau
More information about the Python-list
mailing list