GTFOBins.github.io/_gtfobins/busybox.md

25 lines
741 B
Markdown
Raw Normal View History

2018-05-31 19:09:44 +00:00
---
2018-09-06 17:18:22 +00: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 19:09:44 +00:00
functions:
2018-10-05 17:55:38 +00:00
shell:
2018-07-16 13:01:50 +00:00
- code: busybox sh
2018-10-05 17:55:38 +00:00
file-upload:
2018-07-16 13:01:50 +00:00
- description: Serve files in the local folder running an HTTP server.
code: |
export LPORT=12345
busybox httpd -f -p $LPORT -h .
2018-07-04 18:26:52 +00:00
file-write:
2018-07-16 13:01:50 +00:00
- code: |
LFILE=file_to_write
busybox sh -c 'echo "DATA" > $LFILE'
2018-07-04 18:26:52 +00:00
file-read:
2018-07-16 13:01:50 +00:00
- code: |
LFILE=file_to_read
./busybox cat "$LFILE"
2018-10-05 17:55:38 +00:00
suid:
2018-07-16 13:01:50 +00:00
- description: It may drop the SUID privileges depending on the compilation flags and the runtime configuration.
code: "./busybox sh"
2018-10-05 17:55:38 +00:00
sudo:
2018-07-16 13:01:50 +00:00
- code: sudo busybox sh
2018-05-31 19:09:44 +00:00
---