pycdc icon indicating copy to clipboard operation
pycdc copied to clipboard

Bad Magic!

Open Binaryprogrammer opened this issue 1 year ago • 6 comments

Bad MAGIC! Could not load file test.pyc I built the pycdc.sln file in release mode, vs 2022 but its not working, any fixes?

Binaryprogrammer avatar May 12 '24 13:05 Binaryprogrammer

please tell more about your test.pyc file is it yours or does it come form some 3rd party SW? (in this case it might be encrypted/obfuscated -> bad magic)

greenozon avatar May 12 '24 19:05 greenozon

please tell more about your test.pyc file is it yours or does it come form some 3rd party SW? (in this case it might be encrypted/obfuscated -> bad magic)

No it doesn't someone decompiled it with the same way and it worked for them but not me , its just a simple pyc file that opens your web browser and open a random youtube video. But for some unknown reasons Its not working for me , maybe I installed incorrectly , can you tell me how to install it correctly from the beginning?, thank you.

Binaryprogrammer avatar May 12 '24 22:05 Binaryprogrammer

There are no install steps, just build pycdc.exe and use it on your .pyc file eg:

C:\Dev\pycdc-master-old\Builds\Debug>pycdc.exe build_const_key_map.3.8.pyc
# Source Generated with Decompyle++
# File: build_const_key_map.3.8.pyc (Python 3.8)

cookie = 1
constant_headers_1 = {
    'Accept': 'application/json',
    'Accept-Encoding': 'gzip, deflate, br',
    'Accept-Language': 'es,ca;q=0.9,en;q=0.8',
    'Cache-Control': 'no-cache',
    'Connection': 'keep-alive',
    'Content-Type': 'application/x-www-form-urlencoded',
    'Pragma': 'no-cache',
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36',
    'Cookie': cookie }
constant_headers_2 = {
    'Accept': 'application/json',
    'Accept-Encoding': 'gzip, deflate, br',
    'Accept-Language': 'es,ca;q=0.9,en;q=0.8',
    'Cache-Control': 'no-cache',
    'Connection': 'keep-alive',
    'Content-Type': 'application/x-www-form-urlencoded',
    'Pragma': 'no-cache',
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36',
    'Cookie': 'constant cookie' }

orig .py Python file:

cookie = 1
constant_headers_1 = {
    'Accept': 'application/json', 
    'Accept-Encoding': 'gzip, deflate, br', 
    'Accept-Language': 'es,ca;q=0.9,en;q=0.8', 
    'Cache-Control': 'no-cache', 
    'Connection': 'keep-alive', 
    'Content-Type': 'application/x-www-form-urlencoded', 
    'Pragma': 'no-cache', 
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36', 
    'Cookie': cookie }

constant_headers_2 = {
    'Accept': 'application/json', 
    'Accept-Encoding': 'gzip, deflate, br', 
    'Accept-Language': 'es,ca;q=0.9,en;q=0.8', 
    'Cache-Control': 'no-cache', 
    'Connection': 'keep-alive', 
    'Content-Type': 'application/x-www-form-urlencoded', 
    'Pragma': 'no-cache', 
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36', 
    'Cookie': 'constant cookie' }

greenozon avatar May 14 '24 10:05 greenozon

Bad MAGIC! Could not load file test.pyc I built the pycdc.sln file in release mode, vs 2022 but its not working, any fixes?

can you send send file?

Aayco avatar Jun 07 '24 06:06 Aayco

Decompyle.zip

nhhai07 avatar Aug 06 '24 07:08 nhhai07

@nhhai07 .pyc files in your archive are not real .pyc files, sorry those are python (.py) ones

greenozon avatar Aug 06 '24 08:08 greenozon