Bad Magic!
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?
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)
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.
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' }
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?
@nhhai07 .pyc files in your archive are not real .pyc files, sorry those are python (.py) ones