fix path error in LD_PRELOAD section

add relative path before pe.so, because `sudo LD_PRELOAD=pe.so <COMMAND>` does not work
This commit is contained in:
KeoOp 2023-01-04 14:39:55 +08:00 committed by GitHub
parent bff02e7a7f
commit 92f222821d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -954,7 +954,7 @@ gcc -fPIC -shared -o pe.so pe.c -nostartfiles
Finally, **escalate privileges** running
```bash
sudo LD_PRELOAD=pe.so <COMMAND> #Use any command you can run with sudo
sudo LD_PRELOAD=./pe.so <COMMAND> #Use any command you can run with sudo
```
{% hint style="danger" %}