We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8414b2 commit ae2e40cCopy full SHA for ae2e40c
1 file changed
src/main.rs
@@ -73,9 +73,10 @@ fn main() {
73
unsafe { std::ptr::copy_nonoverlapping(contents.as_ptr(), new_buf_ptr, flen) };
74
println!("[*] Starting jmp to shellcode at offset 0x{:x}", offset);
75
unsafe {
76
+ let jmp_target = new_buf.offset(offset as isize);
77
if set_breakpoint {
78
asm!("int 3");
79
}
- asm!("jmp {}",in(reg) new_buf.offset(offset as isize))
80
+ asm!("jmp {}",in(reg) jmp_target)
81
};
82
0 commit comments