scp

This is how to get files from victim machine to attacker machine

scp -P 2222 svc_workstations@inlanefreight.htb@10.129.215.254:/tmp/try.txt /current/directory

scp svc_workstations@inlanefreight.htb@10.129.215.254:/tmp/try.txt /current/directory
scp pentester@10.10.233.141:/home/pentester/* .

Note that the username pentester has the password THM17577

scp linenum.sh user@remotehost:/tmp/linenum.sh
# Transfer a directory
scp -r directory-name/ ubuntu@<IpaddressOfTarget>:/home/ubuntu/

Last updated