mirror of https://github.com/pwndbg/pwndbg.git
Refactor pwndbg.proc.exe and pwndbg.proc.get_file
Revert the change from 3e4ad60 and make the `pwndbg.proc.get_file` to strip the "target:" prefix instead of the `pwndbg.proc.exe`.
This way, we will prevent bugs when pwndbg code would use `pwndbg.proc.exe` on remote targets but not pass the returned path to `pwndbg.proc.get_file` to get the real remote file and instead use the local one (if it exists in the same path).
Additionally, we assert the `path` passed to `pwndbg.proc.get_file` so we prevent incorrect use of the function when an absolute path or not a remote path is passed to it.
pull/958/head
parent
933be39838
commit
790ba574c0
Loading…
Reference in new issue