buf = "\x31\xc0\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x50\x53\x89\xe1\xb0\x0b\xcd\x80";
Given this shellcode string (just an example), I would like to split into multiple chunks of nth size.
Once its been split, given unknown nth number of chunks, i would then like it to automatically perform an fuction such as
os.system("echo " + chunk[1] + ">>/tmp/final")
os.system("echo " + chunk[2] + ">>/tmp/final")
but, without specifying each action each time, and not knowing the number of chunks that its been split into