I'm working on exploiting a simple 64 bit linux binary. I got control of RIP by exploiting a buffer overflow and using a jmp rsp to get control of the progrm.
However, I'm having trouble with the shellcode piece. I'm not savvy enough to write my own, so I've been using some I found online. The shellcode needs to get me a reverse shell on port 4444.
Just for testing though, I tried some basic shellcode.
Doesn't work - https://www.exploit-db.com/exploits/35587/
The shellcode in the first link works. The one in the second did not.
I stepped through the program and each instruction lines up. However, after the last syscall, the program continues to execute the stack instead of exiting the thread.
I could really use help on it, I've been stuck on it all day.