Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad Magic! #483

Open
Binaryprogrammer opened this issue May 12, 2024 · 3 comments
Open

Bad Magic! #483

Binaryprogrammer opened this issue May 12, 2024 · 3 comments

Comments

@Binaryprogrammer
Copy link

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?

@greenozon
Copy link
Contributor

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)

@Binaryprogrammer
Copy link
Author

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.

@greenozon
Copy link
Contributor

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' }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants