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

Error decompyling deobs_mine.pyc: vector::_M_range_check: __n (which is 10) >= this->size() (which is 7) #430

Closed
shoaibhassan0 opened this issue Feb 5, 2024 · 9 comments

Comments

@shoaibhassan0
Copy link

shoaibhassan0 commented Feb 5, 2024

deobs_mine.zip
i am also attaching this pyc file
i am using command pycdc -c -v 3.11 deobs_mine.pyc
on windows 10
When i was decompiling the python marshal object bytecode it results this

E:\build>pycdc -c -v 3.11 deobs_mine.pyc

Source Generated with Decompyle++

File: deobs_mine.pyc (Python 3.11)

import requests
import json
import time
import sys
from platform import system
import os
import subprocess
import http.server as http
import socketserver
import threading
from datetime import datetime
import uuid
html_content = '\n\n\n\n \n <title>H╠│E╠│T╠│T╠│E╠│R╠│ K╠│I╠│ B╠│H╠│E╠│N╠│ K╠│A╠│ B╠│H╠│O╠│S╠│D╠│A╠│ F╠│A╠│D╠│N╠│E╠│ W╠│A╠│L╠│A╠│ S╠│E╠│R╠│V╠│E╠│R╠│</title>\n <style>\n body {\n background-image: url('rashmika.jpg');\n background-size: cover;\n }\n </style>\n\n\n

H╠│E╠│T╠│T╠│E╠│R╠│ K╠│I╠│ B╠│H╠│E╠│N╠│ K╠│A╠│ B╠│H╠│O╠│S╠│D╠│A╠│ F╠│A╠│D╠│N╠│E╠│ W╠│A╠│L╠│A╠│ S╠│E╠│R╠│V╠│E╠│R╠│

\n

This server created by Tera papa🥷

\n \n

Owner Name ::- 🔨iTs Me🥂

\n \n

________All Done....Loading......

\n
    \n
  • 1. ≡¥Ö╖≡¥ÜÄ≡¥Ü¥≡¥Ü¥≡¥ÜÄ≡¥Ü¢≡¥Ü£ ≡¥ÜÄ≡¥Üƒ≡¥ÜÄ≡¥Ü¢≡¥Üó≡¥Ü¥≡¥ÜÆ≡¥Üû≡¥ÜÄ ≡¥Üî≡¥Ü¢≡¥Üó≡¥ÜÆ≡¥Üù≡¥ÜÉ ≡ƒÿé
  • \n
  • 2. if You think your bad i am your dad
  • \n
  • 3. <=================>
  • \n
  • 4. Call me brother ≡ƒÖà
  • \n
  • 5. EVERYONE
  • \n
\n\n \n \n Your browser does not support the audio element.\n \n\n\n'

class MyHandler(http.server.SimpleHTTPRequestHandler):

def do_GET(self):

Error decompyling deobs_mine.pyc: vector::_M_range_check: __n (which is 10) >= this->size() (which is 7)

@greenozon
Copy link
Contributor

Please recheck your attachment deobs_mine.zip
it shows the

Bad MAGIC!

when try to use with pycdas or pycdc

@shoaibhassan0
Copy link
Author

shoaibhassan0 commented Feb 5, 2024

First unzip it.
Its marshal object bytecode i used parameters .

  pycdc -c -v 3.11 deobs_mine.pyc

it is compiled with 3.11 so i used 3.11 here

@shoaibhassan0
Copy link
Author

shoaibhassan0 commented Feb 5, 2024

@greenozon
I see your comment in another issue of this pycdc you changed or modified some source of pycdc and then compile it which bypasses the error like i now experienced can you tell these changes

@shoaibhassan0
Copy link
Author

@greenozon

@shoaibhassan0
Copy link
Author

shoaibhassan0 commented Feb 6, 2024

I tested many times and now i have found that when this situation meets
if(opcode == 146 && operand == 10 && pos == 164){
fprintf(stderr,"Error: Occuring...");
}
This 146 opcode is LOAD_GLOBAL which is causing exception i found that....

@greenozon
Copy link
Contributor

this is strange, but you hint helped to move forward

pycdc -c -v 3.11 deobs_mine.pyc

attached a try to decompile it ... (not ideal of course)
deobs_mine.cdc.txt

@shoaibhassan0
Copy link
Author

Thanks a lot @greenozon can you give me the modified version of pycdc you are using. So we should request for pull request.

@greenozon
Copy link
Contributor

not that easy
I"ve plenty of changes and I've a plan to create some PRs one by one
for the moment there is one outstanding, if you wish you could help to move it forward
#411

@zrax
Copy link
Owner

zrax commented Feb 28, 2024

Should be fixed with #462

@zrax zrax closed this as completed Feb 28, 2024
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

3 participants