0

Code Cave python

As from now I have been wondering if it is possible to make a code cave in python because with c++ you are able to I know what a code cave is but I'm wondering g if you can make one in python if you are able you can you show me the script that you used to make the code cave with I am very curious as code caves can be very powerful with the right use

13th Oct 2016, 10:44 AM
VervetMonkey
2 Answers
+ 1
Following your previous question on this topic I looked a little more closely from Python's perspective as an **interpreted scripting language** (in contrast to a compiled binary with allocators like you'd get in c++ or writing a Python extension in it). The concepts from before remind me of Factories, introspection (code's ability to examine itself) and what an answer here calls a Dynamo (though I am far from certain): http://stackoverflow.com/questions/533382/dynamic-runtime-method-creation-code-generation-in-python The 'exec' discussion there probably isn't right because of forks. Python does support compilation but I feel both like bytecode is further along the path than many questions here + you might require interpreter internals to answer the question. Having said that I have no idea what quality this is so can neither recommend nor reject it: A 10-hour codewalk through the Python interpreter source code: http://pgbovine.net/cpython-internals.htm But I can say it appears to be pretty technical and directly from that: your specific question might be better placed on stackoverflow rather than a training forum.
13th Oct 2016, 4:23 PM
Kirk Schafer
Kirk Schafer - avatar
0
thanks man youve pretty much answered the question thanks ;)
13th Oct 2016, 7:16 PM
VervetMonkey