blasty / ssh_rape

38 stars 14 forks source link

Fixed _mmap() return value. #2

Closed rsjrs closed 10 years ago

rsjrs commented 10 years ago

BUG: _mmap() always returns 0x9 because the registers aren't reloaded after the system call. FIX: call ptrace with PTRACE_GETREGS before restoring the original registers.