-
Notifications
You must be signed in to change notification settings - Fork 573
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit eed0e33
Showing
66 changed files
with
5,982 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
blank_issues_enabled: false | ||
|
||
contact_links: | ||
- name: Ask an question / advise on using katana | ||
url: https://github.com/projectdiscovery/katana/discussions/categories/q-a | ||
about: Ask a question or request support for using katana | ||
|
||
- name: Share idea / feature to discuss for katana | ||
url: https://github.com/projectdiscovery/katana/discussions/categories/ideas | ||
about: Share idea / feature to discuss for katana | ||
|
||
- name: Connect with PD Team (Discord) | ||
url: https://discord.gg/projectdiscovery | ||
about: Connect with PD Team for direct communication |
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,18 @@ | ||
--- | ||
name: Feature request | ||
about: Request feature to implement in this project | ||
labels: 'Type: Enhancement' | ||
--- | ||
|
||
<!-- | ||
1. Please make sure to provide a detailed description with all the relevant information that might be required to start working on this feature. | ||
2. In case you are not sure about your request or whether the particular feature is already supported or not, please start a discussion instead. | ||
3. GitHub Discussion: https://github.com/projectdiscovery/katana/discussions/categories/ideas | ||
4. Join our discord server at https://discord.gg/projectdiscovery to discuss the idea on the #katana channel. | ||
--> | ||
|
||
### Please describe your feature request: | ||
<!-- A clear and concise description of feature to implement --> | ||
|
||
### Describe the use case of this feature: | ||
<!-- A clear and concise description of the feature request's motivation and the use-cases in which it could be useful. --> |
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,36 @@ | ||
--- | ||
name: Issue report | ||
about: Create a report to help us to improve the project | ||
labels: 'Type: Bug' | ||
|
||
--- | ||
|
||
<!-- | ||
1. Please search to see if an issue already exists for the bug you encountered. | ||
2. For support requests, FAQs or "How to" questions, please use the GitHub Discussions section instead - https://github.com/projectdiscovery/katana/discussions or | ||
3. Join our discord server at https://discord.gg/projectdiscovery and post the question on the #katana channel. | ||
--> | ||
|
||
<!-- ISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION. --> | ||
|
||
### katana version: | ||
<!-- You can find current version of katana with "katana -version" --> | ||
<!-- We only accept issues that are reproducible on the latest version of katana. --> | ||
<!-- You can find the latest version of project at https://github.com/projectdiscovery/katana/releases/ --> | ||
|
||
### Current Behavior: | ||
<!-- A concise description of what you're experiencing. --> | ||
|
||
### Expected Behavior: | ||
<!-- A concise description of what you expected to happen. --> | ||
|
||
### Steps To Reproduce: | ||
<!-- | ||
Example: steps to reproduce the behavior: | ||
1. Run 'katana ..' | ||
2. See error... | ||
--> | ||
|
||
|
||
### Anything else: | ||
<!-- Links? References? Screnshots? Anything that will give us more context about the issue that you are encountering! --> |
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 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
|
||
# Maintain dependencies for GitHub Actions | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
target-branch: "dev" | ||
commit-message: | ||
prefix: "chore" | ||
include: "scope" | ||
labels: | ||
- "Type: Maintenance" | ||
|
||
# Maintain dependencies for go modules | ||
- package-ecosystem: "gomod" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
target-branch: "dev" | ||
commit-message: | ||
prefix: "chore" | ||
include: "scope" | ||
labels: | ||
- "Type: Maintenance" | ||
|
||
# Maintain dependencies for docker | ||
- package-ecosystem: "docker" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
target-branch: "dev" | ||
commit-message: | ||
prefix: "chore" | ||
include: "scope" | ||
labels: | ||
- "Type: Maintenance" |
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,35 @@ | ||
name: 🔨 Build Test | ||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Test Builds | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macOS-latest] | ||
steps: | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.18 | ||
|
||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build | ||
run: go build . | ||
working-directory: cmd/katana/ | ||
|
||
- name: Test | ||
run: go test ./... | ||
working-directory: . | ||
|
||
- name: Race Condition Tests | ||
run: go build -race . | ||
working-directory: cmd/katana/ | ||
|
||
|
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: 🚨 CodeQL Analysis | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
pull_request: | ||
branches: | ||
- dev | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [ 'go' ] | ||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: ${{ matrix.language }} | ||
|
||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v2 | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 |
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,40 @@ | ||
name: 🌥 Docker Push | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["🎉 Release Binary"] | ||
types: | ||
- completed | ||
workflow_dispatch: | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Get Github tag | ||
id: meta | ||
run: | | ||
echo "::set-output name=tag::$(curl --silent "https://api.github.com/repos/projectdiscovery/katana/releases/latest" | jq -r .tag_name)" | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_TOKEN }} | ||
|
||
- name: Build and push | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: . | ||
platforms: linux/amd64,linux/arm64,linux/arm | ||
push: true | ||
tags: projectdiscovery/katana:latest,projectdiscovery/katana:${{ steps.meta.outputs.tag }} |
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,23 @@ | ||
name: 🙏🏻 Lint Test | ||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
lint: | ||
name: Lint Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.18 | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Run golangci-lint | ||
uses: golangci/golangci-lint-action@v3.3.0 | ||
with: | ||
version: latest | ||
args: --timeout 5m | ||
working-directory: . |
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,30 @@ | ||
name: 🎉 Release Binary | ||
on: | ||
create: | ||
tags: | ||
- v* | ||
workflow_dispatch: | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Check out code" | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: "Set up Go" | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.18 | ||
|
||
- name: "Create release on GitHub" | ||
uses: goreleaser/goreleaser-action@v3 | ||
with: | ||
args: "release --rm-dist" | ||
version: latest | ||
workdir: . | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
SLACK_WEBHOOK: "${{ secrets.RELEASE_SLACK_WEBHOOK }}" |
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,33 @@ | ||
name: 🙏🏻 Security Crawl Maze Score | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Run Scoring | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.18 | ||
|
||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build | ||
run: go build . | ||
working-directory: cmd/katana/ | ||
|
||
- name: Run Katana Standard | ||
run: ./katana -u https://security-crawl-maze.app/ -kf all -jc -d 10 -o output_standard.txt -cos node_modules | ||
working-directory: cmd/katana | ||
|
||
- name: Run Katana Headless | ||
run: ./katana -u https://security-crawl-maze.app/ -kf all -jc -d 10 -headless -o output_headless.txt -cos node_modules | ||
working-directory: cmd/katana | ||
|
||
- name: Run Score | ||
run: go build .; ./crawl-maze-score ../../katana/output_standard.txt ../../katana/output_headless.txt | ||
working-directory: cmd/tools/crawl-maze-score |
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,4 @@ | ||
security-crawl-maze/ | ||
cmd/katana/katana | ||
katana | ||
*.exe |
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,42 @@ | ||
before: | ||
hooks: | ||
- go mod tidy | ||
|
||
builds: | ||
- env: | ||
- CGO_ENABLED=0 | ||
goos: | ||
- windows | ||
- linux | ||
- darwin | ||
goarch: | ||
- amd64 | ||
- 386 | ||
- arm | ||
- arm64 | ||
|
||
ignore: | ||
- goos: darwin | ||
goarch: '386' | ||
- goos: windows | ||
goarch: 'arm' | ||
- goos: windows | ||
goarch: 'arm64' | ||
|
||
binary: '{{ .ProjectName }}' | ||
main: cmd/katana/main.go | ||
|
||
archives: | ||
- format: zip | ||
replacements: | ||
darwin: macOS | ||
|
||
checksum: | ||
algorithm: sha256 | ||
|
||
announce: | ||
slack: | ||
enabled: true | ||
channel: '#release' | ||
username: GoReleaser | ||
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}' |
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,10 @@ | ||
FROM golang:1.19.2-alpine AS builder | ||
RUN apk add --no-cache git | ||
RUN go install -v github.com/projectdiscovery/katana/cmd/httpx@latest | ||
|
||
FROM alpine:3.16.2 | ||
RUN apk -U upgrade --no-cache \ | ||
&& apk add --no-cache bind-tools ca-certificates | ||
COPY --from=builder /go/bin/katana /usr/local/bin/ | ||
|
||
ENTRYPOINT ["katana"] |
Oops, something went wrong.