Monday 17 June 2013

Netcat NC Command.

What is Netcat?

Netcat is a computer networking service for reading from and writing to network connections using TCP or UDP. Netcat is designed to be a dependable "back-end" device that can be used directly or easily driven by other programs and scripts. At the same time, it is a feature-rich network debugging and investigation tool, since it can produce almost any kind of correlation you would need and has a number of built-in capabilities.


Use Netcat to Transfer Files
The netcat utility can also be used to transfer files. At the client side, suppose we have a file named ‘testfile’ containing :

$ cat testfile
hello test

and at the server side we have an empty file ‘test’
Now, we run the server as :
$ nc -l 2389 > test

and run the client as :
cat testfile | nc localhost 2389

Now, when we see the ‘test’ file at the server end, we see :
$ cat test
hello test

So we see that the file data was transfered from client to server.
Click Here to visit our facebook page and like.

No comments:

Post a Comment