NetCat Introduction (Basic, Rudimentary)

In terminal using Kali Linux;

NetCat –> nc

nc -h // help

NetCat Listen to

nc -lvp 4444 // Listen to port 4444, verbal 

Establish Connection

nc localhost 4444 // Connect to port 4444 at localhost

This will establish connection between two sections

File recieve/send

*in Linux, all PW files are stored in /etc/passwd, and through NetCat you can send over the file from the system to another.

*receiving computer

nc -lvp 4444 > passwd // listen to port 4444 for file passwd

*sending computer

nc -q 0 localhost 4444 < /etc/passwd //terminate after sending /etc/passwd to 4444 at localhost

This will send the file /etc/passwd to port 4444 of localhost.

IF THERE ARE ANYTHING THAT I GOT WRONG, PLEASE DON’T HESITATE TO LEAVE ON THE COMMENTS. AS A BEGINNER, THERE MAY BE SOME ERRORS.

Published by dz2701

Student Coder, interested in learning new Algorithms and new challenges!

Leave a Reply

Create your own website, free on WordPress.com.Create your own website.
Start free