Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 09-28-2025, 09:52
chants chants is offline
VIP
 
Join Date: Jul 2016
Posts: 826
Rept. Given: 47
Rept. Rcvd 50 Times in 31 Posts
Thanks Given: 737
Thanks Rcvd at 1,140 Times in 529 Posts
chants Reputation: 51
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.
Reply With Quote
  #2  
Old 10-04-2025, 09:37
FasciHunter FasciHunter is offline
Friend
 
Join Date: Apr 2016
Posts: 17
Rept. Given: 0
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 1
Thanks Rcvd at 4 Times in 3 Posts
FasciHunter Reputation: 0
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.
Reply With Quote
The Following User Says Thank You to FasciHunter For This Useful Post:
chants (10-06-2025)
  #3  
Old 10-04-2025, 16:43
toro toro is offline
VIP
 
Join Date: Aug 2004
Posts: 190
Rept. Given: 4
Rept. Rcvd 97 Times in 34 Posts
Thanks Given: 29
Thanks Rcvd at 161 Times in 52 Posts
toro Reputation: 97
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,
Reply With Quote
The Following User Says Thank You to toro For This Useful Post:
chants (10-06-2025)
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


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


All times are GMT +8. The time now is 01:49.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( Since 1998 )