-
Notifications
You must be signed in to change notification settings - Fork 571
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #287 from projectdiscovery/dev
v2.0.6
- Loading branch information
Showing
54 changed files
with
1,533 additions
and
322 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: 🧪 Functional Test | ||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
functional: | ||
name: Functional Test | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] # Todo: windows-latest, macOS-latest | ||
|
||
steps: | ||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.17 | ||
|
||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install required packages (libpcap-dev, nmap, simplehttpserver) | ||
run: | | ||
sudo apt install libpcap-dev | ||
sudo apt install nmap | ||
go install github.com/projectdiscovery/simplehttpserver/cmd/simplehttpserver@latest | ||
- name: Run the simplehttpserver on 127.0.0.1:8000 | ||
run: | | ||
export PATH=$PATH:$(go env GOPATH)/bin | ||
simplehttpserver -listen 127.0.0.1:8000 & | ||
- name: Functional Tests | ||
run: | | ||
chmod +x run.sh | ||
bash run.sh | ||
working-directory: v2/cmd/functional-test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: 👮🏼♂️ Sonarcloud | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- dev | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
sonarcloud: | ||
name: SonarCloud | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | ||
|
||
- name: "Set up Go" | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.17 | ||
|
||
- name: Install Dependences | ||
run: sudo apt install libpcap-dev | ||
|
||
- name: Run unit Tests | ||
working-directory: v2/ | ||
run: | | ||
go test -coverprofile=cov.out ./... | ||
- name: Run Gosec Security Scanner | ||
working-directory: v2/ | ||
run: | | ||
go install github.com/securego/gosec/cmd/gosec@latest | ||
gosec -no-fail -fmt=sonarqube -out report.json ./... | ||
- name: SonarCloud Scan | ||
uses: SonarSource/sonarcloud-github-action@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
cmd/naabu/naabu* | ||
v2/cmd/naabu/naabu* | ||
vendor | ||
vendor | ||
v2/cmd/functional-test/naabu_dev | ||
v2/cmd/functional-test/functional-test | ||
v2/cmd/functional-test/naabu | ||
v2/cmd/functional-test/*.cfg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
FROM golang:1.17.2-alpine AS builder | ||
FROM golang:1.18.0-alpine AS builder | ||
RUN apk add build-base libpcap-dev | ||
RUN go install -v github.com/projectdiscovery/naabu/v2/cmd/naabu@latest | ||
|
||
FROM alpine:3.14 | ||
FROM alpine:3.15.2 | ||
RUN apk add nmap libpcap-dev bind-tools ca-certificates | ||
COPY --from=builder /go/bin/naabu /usr/local/bin/naabu | ||
ENTRYPOINT ["naabu"] |
Oops, something went wrong.