fix: keep registers after remote shellcode
This commit is contained in:
parent
c4fb1182f7
commit
b5236f7d27
1 changed files with 1 additions and 2 deletions
|
@ -30,8 +30,7 @@ impl RemoteOperation for RemoteShellcode<'_> {
|
||||||
ptrace::cont(pid, None)?;
|
ptrace::cont(pid, None)?;
|
||||||
waitpid(pid, None)?;
|
waitpid(pid, None)?;
|
||||||
let after_regs = ptrace::getregs(pid)?;
|
let after_regs = ptrace::getregs(pid)?;
|
||||||
println!("Executed shellcode (RIP: 0x{:X}", after_regs.rip);
|
println!("Executed shellcode (RIP: 0x{:X})", after_regs.rip);
|
||||||
ptrace::setregs(pid, original_regs)?;
|
|
||||||
Ok(ptr)
|
Ok(ptr)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue