Hey thank you for the fast reply :-)<br><br>I am working on building a security framework in Python for exploit development as a part time hobby. But I am missing something key to what I am doing. I am having a hard time understanding it as well.<br>
<br>from ctypes import *<br><br>myCode = ("\x31\xc0\x31\xdb\x31\xc9\x31\xd2"<br> "\x51\x68\x6c\x6c\x20\x20\x68\x33") #example hex not full for post don't want to put up red flags <br><br>my_callback = CFUNCTYPE(c_int, c_void_p,<br>
POINTER(myCode),<br> POINTER(c_int32), c_void_p)<br><br>print type(my_callback)<br><br>this returns <type '_ctypes.PyCFuncPtrType'> which is what I want I assume.<br>
<br>but when I run this code nothing happens. Maybe in how I am running it just by adding my_callback to the source. Any idea what I am doing wrong.<br><br>*cheers in advance if you can help<br><br>If not I understand<br>
<br><br>