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



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to