pycdc icon indicating copy to clipboard operation
pycdc copied to clipboard

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

Open shoaibhassan0 opened this issue 2 years ago • 8 comments

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 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 \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\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)

shoaibhassan0 avatar Feb 05 '24 12:02 shoaibhassan0

Please recheck your attachment deobs_mine.zip it shows the

Bad MAGIC!

when try to use with pycdas or pycdc

greenozon avatar Feb 05 '24 12:02 greenozon

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 avatar Feb 05 '24 15:02 shoaibhassan0

@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 avatar Feb 05 '24 17:02 shoaibhassan0

@greenozon

shoaibhassan0 avatar Feb 06 '24 09:02 shoaibhassan0

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....

shoaibhassan0 avatar Feb 06 '24 12:02 shoaibhassan0

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

greenozon avatar Feb 06 '24 13:02 greenozon

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

shoaibhassan0 avatar Feb 06 '24 14:02 shoaibhassan0

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 https://github.com/zrax/pycdc/pull/411

greenozon avatar Feb 06 '24 19:02 greenozon

Should be fixed with #462

zrax avatar Feb 28 '24 23:02 zrax