GTFOBins.github.io/_gtfobins/busybox.md
2020-06-10 23:04:59 +02:00

25 lines
734 B
Markdown

---
description: BusyBox may contain many UNIX utilities, run `busybox --list-full` to check what GTFBins binaries are supported. Here some example.
functions:
shell:
- code: busybox sh
file-upload:
- description: Serve files in the local folder running an HTTP server.
code: |
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:
- description: It may drop the SUID privileges depending on the compilation flags and the runtime configuration.
code: "./busybox sh"
sudo:
- code: sudo busybox sh
---