Deleting gef file, adding customlibc readme that we shared with students
This commit is contained in:
parent
1c978c70c3
commit
ab4cd35048
17
templab/README-customlibc.md
Normal file
17
templab/README-customlibc.md
Normal file
@ -0,0 +1,17 @@
|
||||
# Download pwninit from https://github.com/io12/pwninit/releases/download/3.3.1/pwninit
|
||||
|
||||
```wget https://github.com/io12/pwninit/releases/download/3.3.1/pwninit```
|
||||
|
||||
|
||||
# Download dependencies
|
||||
apt install patchelf
|
||||
|
||||
|
||||
# Execute pwninit
|
||||
|
||||
``./pwninit --bin <bin_to_be_patched> --libc <custom_libc> --ld <custom_loader>```
|
||||
|
||||
The loader is not necessary most of the times so you can ignore the --ld part. Typically pwninit finds it for you.
|
||||
|
||||
If everything is find pwninit will create a patched binary (suffix _patched).
|
||||
If you open this in gdb (or ```ldd <prog>```) you can see that it uses your custom libc and not the system one.
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user