Netcat (NC)

Simple Usage

apt-get install netcat 

Server side: 

nc -l -p 65432

open 🙂

Yes 😉

Client side:

nc localhost 65432

open 🙂

Yes 😉

File Transfer

Server side:

nc -l -p 1234 >> nc-give

Client side:

echo ‘vaveyla!’ >> nc-get

cat nc-begir | nc localhost 1234

Port Scanning

Range

nc -zv 127.0.0.1 1-2000

Specific Port

nc -zv 127.0.0.1 80 22

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s