Skip to content

Commit 901fd55

Browse files
authored
Merge pull request #315 from projectdiscovery/dev
v2.0.7 Release
2 parents 51cdc9f + 0598ec4 commit 901fd55

File tree

18 files changed

+227
-91
lines changed

18 files changed

+227
-91
lines changed

.github/workflows/build-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
os: [ubuntu-latest] # Todo: windows-latest, macOS-latest
1414
steps:
1515
- name: Set up Go
16-
uses: actions/setup-go@v2
16+
uses: actions/setup-go@v3
1717
with:
18-
go-version: 1.17
18+
go-version: 1.18
1919

2020
- name: Check out code
2121
uses: actions/checkout@v3

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ jobs:
3131

3232
# Initializes the CodeQL tools for scanning.
3333
- name: Initialize CodeQL
34-
uses: github/codeql-action/init@v1
34+
uses: github/codeql-action/init@v2
3535
with:
3636
languages: ${{ matrix.language }}
3737

3838
- name: Autobuild
39-
uses: github/codeql-action/autobuild@v1
39+
uses: github/codeql-action/autobuild@v2
4040

4141
- name: Perform CodeQL Analysis
42-
uses: github/codeql-action/analyze@v1
42+
uses: github/codeql-action/analyze@v2

.github/workflows/dockerhub-push.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,19 @@ jobs:
2020
echo "::set-output name=tag::$(curl --silent "https://api.github.com/repos/projectdiscovery/naabu/releases/latest" | jq -r .tag_name)"
2121
2222
- name: Set up QEMU
23-
uses: docker/setup-qemu-action@v1
23+
uses: docker/setup-qemu-action@v2
2424

2525
- name: Set up Docker Buildx
26-
uses: docker/setup-buildx-action@v1
26+
uses: docker/setup-buildx-action@v2
2727

2828
- name: Login to DockerHub
29-
uses: docker/login-action@v1
29+
uses: docker/login-action@v2
3030
with:
3131
username: ${{ secrets.DOCKER_USERNAME }}
3232
password: ${{ secrets.DOCKER_TOKEN }}
3333

3434
- name: Build and push
35-
uses: docker/build-push-action@v2
35+
uses: docker/build-push-action@v3
3636
with:
3737
context: .
3838
platforms: linux/amd64,linux/arm64,linux/arm

.github/workflows/functional-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414

1515
steps:
1616
- name: Set up Go
17-
uses: actions/setup-go@v2
17+
uses: actions/setup-go@v3
1818
with:
19-
go-version: 1.17
19+
go-version: 1.18
2020

2121
- name: Check out code
2222
uses: actions/checkout@v3

.github/workflows/lint-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
uses: actions/checkout@v3
1414

1515
- name: Set up Go
16-
uses: actions/setup-go@v2
16+
uses: actions/setup-go@v3
1717
with:
18-
go-version: 1.17
18+
go-version: 1.18
1919

2020
- name: Install Dependences
2121
run: sudo apt install libpcap-dev

.github/workflows/release-binary.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
with:
1515
fetch-depth: 0
1616
- name: Set up Go
17-
uses: actions/setup-go@v2
17+
uses: actions/setup-go@v3
1818
with:
19-
go-version: 1.17
19+
go-version: 1.18
2020
- name: Install Dependences
2121
run: brew install libpcap
2222
- name: Run GoReleaser
@@ -36,9 +36,9 @@ jobs:
3636
with:
3737
fetch-depth: 0
3838
- name: Set up Go
39-
uses: actions/setup-go@v2
39+
uses: actions/setup-go@v3
4040
with:
41-
go-version: 1.17
41+
go-version: 1.18
4242
- name: Install Dependences
4343
run: sudo apt install libpcap-dev
4444

@@ -59,9 +59,9 @@ jobs:
5959
with:
6060
fetch-depth: 0
6161
- name: Set up Go
62-
uses: actions/setup-go@v2
62+
uses: actions/setup-go@v3
6363
with:
64-
go-version: 1.17
64+
go-version: 1.18
6565
- name: Run GoReleaser
6666
uses: goreleaser/goreleaser-action@v2
6767
with:

.github/workflows/sonarcloud.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
1919

2020
- name: "Set up Go"
21-
uses: actions/setup-go@v2
21+
uses: actions/setup-go@v3
2222
with:
23-
go-version: 1.17
23+
go-version: 1.18
2424

2525
- name: Install Dependences
2626
run: sudo apt install libpcap-dev

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM golang:1.18.0-alpine AS builder
1+
FROM golang:1.18.1-alpine AS builder
22
RUN apk add build-base libpcap-dev
33
RUN go install -v github.com/projectdiscovery/naabu/v2/cmd/naabu@latest
44

5-
FROM alpine:3.15.2
6-
RUN apk add nmap libpcap-dev bind-tools ca-certificates
5+
FROM alpine:3.15.4
6+
RUN apk add nmap libpcap-dev bind-tools ca-certificates nmap-scripts
77
COPY --from=builder /go/bin/naabu /usr/local/bin/naabu
88
ENTRYPOINT ["naabu"]

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<h1 align="center">
2-
<img src="static/naabu-logo.png" alt="naabu" width="200px"></a>
2+
<img src="static/naabu-logo.png" alt="naabu" width="200px">
33
<br>
44
</h1>
55

@@ -29,11 +29,12 @@ all ports that return a reply.
2929
# Features
3030

3131
<h1 align="center">
32-
<img src="static/naabu-run.png" alt="naabu" width="700px"></a>
32+
<img src="static/naabu-run.png" alt="naabu" width="700px">
3333
<br>
3434
</h1>
3535

3636
- Fast And Simple **SYN/CONNECT** probe based scanning
37+
- Passive Port Enumeration using Shodan [Internetdb API](https://internetdb.shodan.io)
3738
- Optimized for ease of use and **lightweight** on resources
3839
- **Automatic IP deduplication for port scan**
3940
- **NMAP** integration for service discovery
@@ -81,11 +82,12 @@ CONFIGURATION:
8182
-interface-list, -il list available interfaces and public ip
8283
-interface, -i string network Interface to use for port scan
8384
-nmap invoke nmap scan on targets (nmap must be installed) - Deprecated
84-
-nmap-cli string nmap command to run on found results (example: -nmap-cli 'nmap -sV')
85+
-nmap-cli string nmap command to run on found results (-nmap-cli 'nmap -sV')
8586
-r string list of custom resolver dns resolution (comma separated or from file)
8687
-proxy string socks5 proxy
8788
-resume resume scan using resume.cfg
8889
-stream stream mode (disables resume, nmap, verify, retries, shuffling, etc)
90+
-passive display passive open ports using shodan internetdb api
8991

9092
OPTIMIZATION:
9193
-retries int number of retries for the port scan (default 3)
@@ -249,7 +251,7 @@ Currently `cloudflare`, `akamai`, `incapsula` and `sucuri` IPs are supported for
249251
# 📋 Notes
250252
- Naabu is designed to scan ports on multiple hosts / mass port scanning.
251253
- As default naabu is configured with a assumption that you are running it from VPS.
252-
- We suggest to tune the flags / rate if running naabu from local system.
254+
- We suggest tuning the flags / rate if running naabu from local system.
253255
- For best results, run naabu as **root** user.
254256

255-
naabu is made with 🖤 by the [projectdiscovery](https://projectdiscovery.io) team. Community contributions have made the project what it is. See the **[Thanks.md](https://github.com/projectdiscovery/naabu/blob/master/THANKS.md)** file for more details.
257+
`naabu` is made with 🖤 by the [projectdiscovery](https://projectdiscovery.io) team. Community contributions have made the project what it is. See the **[Thanks.md](https://github.com/projectdiscovery/naabu/blob/master/THANKS.md)** file for more details.

v2/cmd/functional-test/testcases.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@
44
127.0.0.1 {{binary}} -ep 80 -p 8000
55
127.0.0.1 {{binary}} -c 25 -p 8000
66
127.0.0.1 {{binary}} -nmap-cli 'nmap -Pn -sT' -p 8000
7-
127.0.0.1 {{binary}} -json
7+
127.0.0.1 {{binary}} -json
8+
127.0.0.1 {{binary}} -nmap-cli 'nmap -sT'
9+
scanme.nmap.org {{binary}} -stream -passive
10+
scanme.nmap.org {{binary}} -stream -passive -verify

0 commit comments

Comments
 (0)