Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Python Binary File

Status
Not open for further replies.

nvhuser

Programmer
Apr 10, 2015
48
0
0
DE

Hello,

could anyone tell me if is it possible to translate a python binary file into a python ASCII script? thanks
 
it is possible to disassembly the .pyo byte code fairly easily.

I don't think it results in a true python txt file but it does make reverse engineering fairly simple for anyone who does want to look at what is happening
this is why most python modules are distributed as the source txt.
occasionally someone may supply just the .pyo thinking that it protects there code but in reality trying to prevent people reading code is never successful. even an encrypted binary can be read with only moderate effort.

A Maintenance contract is essential, not a Luxury.
Do things on the cheap & it will cost you dear
 
Hi IPGuru,

well, I have this script from an old employe that didn't left the instructions to use this file. That is why I would like to decrypt the code in order to know how to use it. I don't have any intention to do reverse engineering.
 
if it is a python script (.py file) then it should be plain text


A Maintenance contract is essential, not a Luxury.
Do things on the cheap & it will cost you dear
 
No, in fact it has an extension *.pyb (python binary)
If I open in notepad, I don't see any human readable text.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top