Skip to content

Commit

Permalink
Add 32bits pointer support for pointer scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
brkzlr committed Sep 13, 2024
1 parent b72ff36 commit 4f539f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions PINCE.py
Original file line number Diff line number Diff line change
Expand Up @@ -1664,6 +1664,11 @@ def attach_to_pid(self, pid: int):
self.apply_after_init()
scanmem.pid(pid)
ptrscan.set_process(pid)
if debugcore.get_inferior_arch() == typedefs.INFERIOR_ARCH.ARCH_64:
ptr_size = 8
else:
ptr_size = 4
ptrscan.set_bitness(ptr_size)
self.on_new_process()
process_signals.attach.emit()

Expand Down
5 changes: 2 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,11 @@ install_libptrscan() {
(
cd libpince/libptrscan
# Source code download as we might be forced to distribute it due to licence
curl -L -O https://github.com/kekeimiku/PointerSearcher-X/archive/refs/tags/v0.7.3-dylib.tar.gz || return 1
curl -L -O https://github.com/kekeimiku/PointerSearcher-X/archive/refs/tags/v0.7.4-dylib.tar.gz || return 1
# Actual .so and py wrapper
curl -L -o libptrscan.tar.gz https://github.com/kekeimiku/PointerSearcher-X/releases/download/v0.7.3-dylib/libptrscan_pince-x86_64-unknown-linux-gnu.tar.gz || return 1
curl -L -o libptrscan.tar.gz https://github.com/kekeimiku/PointerSearcher-X/releases/download/v0.7.4-dylib/libptrscan_pince-x86_64-unknown-linux-gnu.tar.gz || return 1
tar xf libptrscan.tar.gz --strip-components 1 || return 1
rm -f libptrscan.tar.gz
mv libptrscan_pince.so libptrscan.so
cd ../..
) || return 1
return 0
Expand Down

0 comments on commit 4f539f5

Please sign in to comment.