Is there any tool or python library for converting python code to shellcode for specific architecture (ex. x86) and system (ex. Windows Vista)?
For instance I would like to convert:
print "This is sample text"
to something like:
In brief, I need the tool or library that would have similar functionality to msfvenom written in ruby. I tried converting .py to .pyc, then extracting shellcode from it by using py_compile and binascii with hexlify libraries but it was not i wanted. Is it possible to convert python code to shellcode in any way? Maybe is there any compilator to binary of python code?