![]() |
|
#1
|
|||
|
|||
|
Cython reversing
Does anyone have info about reversing of Cython code back to Cython like source? This isnt the same as CPython byte code which can be compiled to Python byte code (pyc). It is rather converted to C and compiled though with decent metadata and the CPython API plainly visible. Of course the usual tools like IDA or Ghidra will make disassembling straight forward and decompilation to C possible but it would be fantastic if some plugin or script would translate it to Cython code. Often its just deriving from plain Python code that has been cythonized without the C parts. Perhaps this is a job for AI even.
|
|
#2
|
|||
|
|||
|
No direct cython��cython decomp. U can get C via IDA/Ghidra, but restoring orig cy code is impractcl. Some heuristics may help guess py-like struct, but full regen not doable.
|
| The Following User Says Thank You to FasciHunter For This Useful Post: | ||
chants (10-06-2025) | ||
|
#3
|
|||
|
|||
|
decompile by ida, make a script to save each decompiled function to a separate c file, then feed to chatgpt or gemeni in correct order, they can make python code for you. there are 2 functions which you need to feed to ai before other functions, the one which contain string literals and ther is another general function i dont remember the name,
|
| The Following User Says Thank You to toro For This Useful Post: | ||
chants (10-06-2025) | ||
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Been a while!! what needs reversing lol | MEPHiST0 | General Discussion | 3 | 01-18-2014 00:46 |