Skills Assessment - 32 bit buffer overflow HTB ACADEMY

You can only debug a setuid or setgid program if the debugger is running as root. The kernel won't let you call ptrace on a program running with extra privileges. If it did, you would be able to make the program execute anything, which would effectively mean you could e.g. run a root shell by calling a debugger on /bin/su.

So you might need to think of another way to get the shellcode triggered outside GDB :slight_smile: