You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| -o | File to write output to (optional) | naabu -o output.txt |
56
58
| -oD | Directory to write enumeration results to (optional) | naabu -oD outputs |
57
-
| -oJ|Write output in JSON lines Format | naabu -oJ -o output.json |
59
+
| -json|Prints output in JSON lines Format | naabu -json|
58
60
| -silent | Show only host:ports in output | naabu -silent |
59
61
| -retries | Number of retries for the port scan probe (default 1) | naabu -retries 4 |
60
62
| -rate | Rate of port scan probe requests (default 1000) | naabu -rate 100 |
@@ -84,9 +86,6 @@ naabu requires go1.13+ to install successfully. Run the following command to get
84
86
GO111MODULE=on go get -v github.com/projectdiscovery/naabu/cmd/naabu
85
87
```
86
88
87
-
You also need the following libraries installed for the `go get` to work - `libpcap, libpcap-dev`.
88
-
89
-
On Ubuntu linux `libpcap` is installed by default. For those compiling from source, the header files can be installed by using `apt-get install libpcap-dev`.
On MacOS, the install instructions are similar to linux. You can download a binary for MacOS from the releases page. You can also `go get` the package to install it from source.
134
-
135
-
You need `libpcap` library on MacOS to build successfully from source or run the downloaded binary. If you are using homebrew as your package manager, you can run `brew install libpcap` to download and install it in your system.
132
+
On MacOS, the install instructions are similar to linux. You can download a binary for MacOS from the releases page. You can also `go get` the package to install it from the source.
136
133
137
-
After that, you can just run the following command to download and install naabu -
134
+
You can just run the following command to download and install naabu -
138
135
139
136
```bash
140
-
go get -v github.com/projectdiscovery/naabu/cmd/naabu
137
+
GO111MODULE=on go get -v github.com/projectdiscovery/naabu/cmd/naabu
141
138
```
142
139
143
140
See the [From Docker](#from-docker) section for install instructions on MacOS with docker.
@@ -218,11 +215,10 @@ google.com
218
215
output.txt
219
216
```
220
217
221
-
You can also get output in json format using -oJ switch. This switch saves the output in the JSON lines format.
218
+
You can also get output in json format using -json switch. This switch saves the output in the JSON lines format.
222
219
223
220
```bash
224
-
> naabu -host hackerone.com -oJ -o output.json
225
-
> cat output.json
221
+
> naabu -host hackerone.com -json
226
222
227
223
{"host":"hackerone.com","port":8443}
228
224
{"host":"hackerone.com","port":443}
@@ -243,6 +239,7 @@ The ports discovered can be piped to other tools too. For example, you can pipe
@@ -256,7 +253,45 @@ If you want a second layer validation of the ports found, you can instruct the t
256
253
> naabu -host hackerone.com -verify
257
254
```
258
255
259
-
The most optimal setting for `threads` is 10. Increasing it while processing hosts may lead to increased false positive rates. So it is recommended to keep it low.
256
+
The most optimal setting for `threads` is 10. Increasing it while processing hosts may lead to increased false-positive rates. So it is recommended to keep it low.
257
+
258
+
# Helper scripts
259
+
260
+
We have included two [helper scripts](https://github.com/projectdiscovery/naabu/tree/master/scripts) for the [nmap](https://nmap.org) ❤️ which can be used to pipe results from `naabu` to detect services using `nmap`, make sure you have `nmap` installed on your system.
Similarly `prepare4nmap.sh` will prepare command to execute for nmap, feel free to update or create new scripts based on your use-case, PR's are always welcome.
0 commit comments