Skip to content

Commit

Permalink
yoo... ubuntu?
Browse files Browse the repository at this point in the history
  • Loading branch information
lsaa committed Sep 10, 2021
1 parent 50b5534 commit 321a6bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ pub fn get_base_address(pid: Pid) -> Result<usize, std::io::Error> {
let (start, _end, _perms, mod_path) = scan_fmt!(&line, "{x}-{x} {} {*} {*} {*} {[^\t\n]}\n", [hex usize], [hex usize], String, String).unwrap();
handle.copy_address(start, &mut magic_buf).unwrap();
if is_elf(&magic_buf) {
return Ok(start);
log::info!("ELF: {} -> {}", start, mod_path);
//return Ok(start);
}
}
}
Expand Down

0 comments on commit 321a6bf

Please sign in to comment.