-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into add_bitbucket_custom_template_integration
- Loading branch information
Showing
238 changed files
with
11,265 additions
and
1,490 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: 🤖 dep auto merge | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- dev | ||
workflow_dispatch: | ||
|
||
permissions: | ||
pull-requests: write | ||
issues: write | ||
repository-projects: write | ||
|
||
jobs: | ||
automerge: | ||
runs-on: ubuntu-latest | ||
if: github.actor == 'dependabot[bot]' | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.DEPENDABOT_PAT }} | ||
|
||
- uses: ahmadnassri/action-dependabot-auto-merge@v2 | ||
with: | ||
github-token: ${{ secrets.DEPENDABOT_PAT }} | ||
target: all |
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,36 @@ | ||
name: 🔨 Performance Test | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
# Weekly | ||
- cron: '0 0 * * 0' | ||
|
||
jobs: | ||
build: | ||
name: Test Performance | ||
strategy: | ||
matrix: | ||
go-version: [1.20.x] | ||
os: [ubuntu-latest, macOS-latest] | ||
|
||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
|
||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Go Mod hygine | ||
run: | | ||
go clean -modcache | ||
go mod tidy | ||
working-directory: v2/ | ||
|
||
# Max GH exection time 6H => timeout after that | ||
- name: Running performance with big list | ||
run: go run -race . -l ../functional-test/targets-150.txt | ||
working-directory: v2/cmd/nuclei/ |
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,29 @@ | ||
name: 🔨 Release Test | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- '**.go' | ||
- '**.mod' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
release-test: | ||
runs-on: ubuntu-latest-16-cores | ||
steps: | ||
- name: "Check out code" | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.20.x | ||
|
||
- name: release test | ||
uses: goreleaser/goreleaser-action@v4 | ||
with: | ||
args: "release --clean --snapshot" | ||
version: latest | ||
workdir: 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
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 @@ | ||
# Contributing to ProjectDiscovery/Nuclei | ||
|
||
We appreciate your interest in contributing to the projectdiscovery/nuclei! This document provides some basic guidelines for contributors. | ||
|
||
## Getting Started | ||
|
||
- Always base your work from the `dev` branch, which is the development branch with the latest code. | ||
- Before creating a Pull Request (PR), make sure there is a corresponding issue for your contribution. If there isn't one already, please create one. | ||
- Include the problem description in the issue. | ||
|
||
## Pull Requests | ||
|
||
When creating a PR, please follow these guidelines: | ||
|
||
- Link your PR to the corresponding issue. | ||
- Provide context in the PR description to help reviewers understand the changes. The more information you provide, the faster the review process will be. | ||
- Include an example of running the tool with the changed code, if applicable. Provide 'before' and 'after' examples if possible. | ||
- Include steps for functional testing or replication. | ||
- If you're adding a new feature, make sure to include unit tests. | ||
|
||
## Code Style | ||
|
||
Please adhere to the existing coding style for consistency. | ||
|
||
## Questions | ||
|
||
If you have any questions or need further guidance, please feel free to ask in the issue or PR, or [reach out to the maintainers](https://discord.gg/projectdiscovery). | ||
|
||
Thank you for your contribution! | ||
|
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 @@ | ||
## Debugging Nuclei | ||
|
||
While Adding new features or fixing bugs or writing new templates to properly understand the behavior of that component, it is essential to understand what debugging options are available in nuclei. This guide lists all the debugging options available in nuclei. | ||
|
||
### Template related debugging | ||
|
||
- `-debug` flag | ||
|
||
When this flag is provided, nuclei will print all requests that are being sent by nuclei to the target as well as the response received from the target. | ||
|
||
- `-debug-req` flag | ||
|
||
When this flag is provided, nuclei will print all requests that are being sent by nuclei to the target. | ||
|
||
- `-debug-resp` flag | ||
|
||
When this flag is provided, nuclei will print all responses that are being received by nuclei from the target. | ||
|
||
- `-ldf` flag | ||
|
||
When this flag is provided, nuclei will print the list of all helper functions available in this release of nuclei and exit. | ||
|
||
- `-svd` flag | ||
|
||
When this flag is provided, nuclei will print all `variables` pre and post execution of a request for a template. This is useful to understand what variables are available for a template and what values they have. | ||
|
||
- `-elog = errors.txt` flag | ||
|
||
When this flag is provided, nuclei will log all errors to the file specified. This is helpful when running large scans. | ||
|
||
|
||
|
||
### Environment Variable Switches | ||
|
||
Nuclei was built with some environment variables in mind to help with debugging. These environment variables can be set to enable debugging of a particular component/functionality for nuclei. | ||
|
||
| Environment Variable | Description | | ||
| ---------------------- | -------------------------------------------------------- | | ||
| `DEBUG=true` | Enables Printing Stack Traces for all errors | | ||
| `SHOW_DSL_ERRORS=true` | Enables Printing DSL Errors (that are hidden by default) | | ||
|
||
|
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
Oops, something went wrong.