RNRF 2021. 11. 3. 01:20

45. Exploit Fails? Debug Your Shellcode - bin 0x2B

: Test Coding
-> vi test.c
int main(int argc, char **argv)
{
int (*func)();
func = (int (*)()) argv[1];
(int)(*func)();
}
-> gcc test.c -o test -fno-stack-protector -z execstack -no-pie

... ING!!