Hi,

I just wanted to know how to execute shellcode in python/perl like i do in c using
Code:
int main(void) 
{
((void (*)(void)) shellcode)();
}
I created a linux/x86/meterpreter/bind_tcp shellcode with msf, which means there are 2 stages.
I don't know how to load and execute these two stages in order to run a python/perl script like a compiled c shellcode.

Thanks in advance!