GTFOBins.github.io/_gtfobins/busybox.md

28 lines
750 B
Markdown
Raw Normal View History

2018-05-31 21:09:44 +02:00
---
2018-06-01 12:40:05 +02:00
description: |
BusyBox may contain many UNIX utilities, run `busybox --list-full` to check
what GTFBins binaries are supported. Here some example.
2018-05-31 21:09:44 +02:00
functions:
execute-interactive:
2018-07-04 20:26:52 +02:00
- code: busybox sh
2018-05-31 21:09:44 +02:00
upload:
2018-07-04 20:26:52 +02:00
- description: Serve files in the local folder running an HTTP server.
code: |
export LPORT=12345
busybox httpd -f -p $LPORT -h .
file-write:
- code: |
LFILE=file_to_write
busybox sh -c 'echo "data" > $LFILE'
file-read:
- code: |
LFILE=file_to_read
./busybox cat "$LFILE"
suid-enabled:
- description: It may drop the SUID privileges depending on the compilation flags
and the runtime configuration.
code: "./busybox sh"
sudo-enabled:
- code: sudo busybox sh
2018-05-31 21:09:44 +02:00
---