Netcat

Sending Files between two systems #Netcat

1) Install Netcat on both the systems [ I was experimenting on two virtual machines that were on the same virtual network ]


Installing Netcat package on Linux is as easy as running the following command on terminal:
sudo apt-get update
sudo apt-get install netcat

2) Now set up a receiver on the receiving end:

nc -l -p 8081 > File_Name.File_Type

[ For our case we will be using the port 8081 ]

3) Time has come my friend to send the file to the receiver, using the following command send the file from the host machine's terminal:

nc -w 3 IP_ADDRESS 8081 < File_Name.File_Type

Hooray !!! Your file is now transferred

What is Netcat?
Netcat is a computer networking utility for reading from and writing to network connections using TCP or UDP. 
Netcat is commonly used for installing a backdoor or exploitation of vulnerabalities for a server. Attacks such as Local File Intrusions ( LFI ) and Remote File Intrusions can be brought into existemce using Netcat

Comments

Popular Posts