Skip to content

Commit 981ad8f

Browse files
committed
add nuclei-templates 2022-06-29 13:33:1656480787
1 parent a6a34a0 commit 981ad8f

File tree

3,789 files changed

+265905
-6
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,789 files changed

+265905
-6
lines changed

.github/build/linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ builds:
1717
goarch:
1818
- amd64
1919
archives:
20-
- format: zip
20+
- format: zip
2121

2222
checksum:
2323
name_template: "{{ .ProjectName }}-linux-checksums.txt"

.github/build/mac.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ builds:
1818
- amd64
1919

2020
archives:
21-
- format: zip
22-
replacements:
23-
darwin: macOS
21+
- format: zip
22+
replacements:
23+
darwin: macOS
2424

2525
checksum:
2626
name_template: "{{ .ProjectName }}-mac-checksums.txt"

.github/build/windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ builds:
2020
- amd64
2121

2222
archives:
23-
- format: zip
23+
- format: zip
2424

2525
checksum:
2626
name_template: "{{ .ProjectName }}-windows-checksums.txt"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
blank_issues_enabled: false
2+
3+
contact_links:
4+
- name: Ask an question / advise on using nuclei-templates
5+
url: https://github.com/projectdiscovery/nuclei-templates/discussions/categories/q-a
6+
about: Ask a question or request support for using nuclei-templates
7+
8+
- name: Share idea / feature to discuss for nuclei-templates
9+
url: https://github.com/projectdiscovery/nuclei-templates/discussions/categories/ideas
10+
about: Share idea / feature to discuss for nuclei-templates
11+
12+
- name: Connect with PD Team & Community (Discord)
13+
url: https://discord.gg/projectdiscovery
14+
about: Connect with PD Team & Community for direct communication
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: False Negative
3+
about: 'Issue for template missing valid/expected result.'
4+
labels: 'false-negative'
5+
6+
---
7+
8+
<!-- ISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION. -->
9+
10+
### Nuclei Version:
11+
12+
<!-- You can find current version of nuclei with "nuclei -version" -->
13+
14+
### Template file:
15+
16+
<!-- Template producing false-negative results, for example: "cves/XX/XX.yaml" -->
17+
18+
### Command to reproduce:
19+
20+
<!-- Please include the command to replicate the behavior so fix can be applied asap. -->
21+
<!-- if host information can not be shared publicly, please reach out to us on discord server in DM -->
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: False Positive
3+
about: 'Issue for template producing invalid/unexpected result.'
4+
labels: 'false-positive'
5+
6+
---
7+
8+
<!-- ISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION. -->
9+
10+
### Nuclei Version:
11+
12+
<!-- You can find current version of nuclei with "nuclei -version" -->
13+
14+
### Template file:
15+
16+
<!-- Template producing false-positive results, for example: "cves/XX/XX.yaml" -->
17+
18+
### Command to reproduce:
19+
20+
<!-- Please include the command to replicate the behavior so fix can be applied asap. -->
21+
<!-- if host information can not be shared publicly, please reach out to us on discord server in DM -->
22+
23+
### Anything else:
24+
<!-- Links? References? Screnshots? Anything that will give us more context about the issue that you are encountering! -->
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: Feature request
3+
about: Request feature to implement in this project
4+
labels: 'Type: Enhancement'
5+
---
6+
7+
<!--
8+
1. Please make sure to provide a detailed description with all the relevant information that might be required to start working on this feature.
9+
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.
10+
3. GitHub Discussion: https://github.com/projectdiscovery/nuclei-templates/discussions/categories/ideas
11+
4. Join our discord server at https://discord.gg/projectdiscovery to discuss the idea on the #nuclei-templates channel.
12+
-->
13+
14+
### Please describe your feature request:
15+
<!-- A clear and concise description of feature to implement -->
16+
17+
### Describe the use case of this feature:
18+
<!-- A clear and concise description of the feature request's motivation and the use-cases in which it could be useful. -->
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Issue report
3+
about: "Issue to report invalid template"
4+
labels: 'Type: Bug'
5+
6+
---
7+
8+
<!--
9+
1. Please search to see if an issue already exists for the bug you encountered.
10+
2. For support requests, FAQs or "How to" questions, please use the GitHub Discussions section instead - https://github.com/projectdiscovery/nuclei-templates/discussions or
11+
3. Join our discord server at https://discord.gg/projectdiscovery and post the question on the #nuclei-templates channel.
12+
-->
13+
14+
<!-- ISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION. -->
15+
16+
### Issue description:
17+
<!-- A concise description of what you're experiencing. -->
18+
19+
20+
### Anything else:
21+
<!-- Links? References? Screnshots? Anything that will give us more context about the issue that you are encountering! -->
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: Template Contribution
3+
about: Contributing nuclei template using GitHub Issue
4+
labels: 'nuclei-template'
5+
---
6+
7+
### Template Information:
8+
9+
<!-- Include basic information of the template including reference -->
10+
<!-- Templates without any reference mostly likely to take more time for review/validation -->
11+
12+
13+
### Nuclei Template:
14+
15+
<!-- Include nuclei template in between code block shared below -->
16+
17+
18+
```yaml
19+
20+
```
21+
22+
<!-- Include template results if available or redacted valid response snippet of valid match -->
23+
<!-- Example response help us to update the matchers as unique as possible to avoid possible false-positive results. -->
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
f"""
2+
3+
<h1 align="center">
4+
Nuclei Templates
5+
</h1>
6+
<h4 align="center">Community curated list of templates for the nuclei engine to find security vulnerabilities in applications.</h4>
7+
8+
9+
<p align="center">
10+
<a href="https://github.com/projectdiscovery/nuclei-templates/issues"><img src="https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat"></a>
11+
<a href="https://github.com/projectdiscovery/nuclei-templates/releases"><img src="https://img.shields.io/github/release/projectdiscovery/nuclei-templates"></a>
12+
<a href="https://twitter.com/pdnuclei"><img src="https://img.shields.io/twitter/follow/pdnuclei.svg?logo=twitter"></a>
13+
<a href="https://discord.gg/projectdiscovery"><img src="https://img.shields.io/discord/695645237418131507.svg?logo=discord"></a>
14+
</p>
15+
16+
<p align="center">
17+
<a href="https://nuclei.projectdiscovery.io/templating-guide/">Documentation</a> •
18+
<a href="#-contributions">Contributions</a> •
19+
<a href="#-discussion">Discussion</a> •
20+
<a href="#-community">Community</a> •
21+
<a href="https://nuclei.projectdiscovery.io/faq/templates/">FAQs</a> •
22+
<a href="https://discord.gg/projectdiscovery">Join Discord</a>
23+
</p>
24+
25+
----
26+
27+
Templates are the core of the [nuclei scanner](https://github.com/projectdiscovery/nuclei) which powers the actual scanning engine.
28+
This repository stores and houses various templates for the scanner provided by our team, as well as contributed by the community.
29+
We hope that you also contribute by sending templates via **pull requests** or [Github issues](https://github.com/projectdiscovery/nuclei-templates/issues/new?assignees=&labels=&template=submit-template.md&title=%5Bnuclei-template%5D+) to grow the list.
30+
31+
32+
## Nuclei Templates overview
33+
34+
35+
An overview of the nuclei template project, including statistics on unique tags, author, directory, severity, and type of templates. The table below contains the top ten statistics for each matrix; an expanded version of this is [available here](TEMPLATES-STATS.md), and also available in [JSON](TEMPLATES-STATS.json) format for integration.
36+
37+
<table>
38+
<tr>
39+
<td>
40+
41+
{get_top10()}
42+
43+
**{command("tree", -2, None)}**.
44+
45+
</td>
46+
</tr>
47+
</table>
48+
49+
📖 Documentation
50+
-----
51+
52+
Please navigate to https://nuclei.projectdiscovery.io for detailed documentation to **build** new or your own **custom** templates.
53+
We have also added a set of templates to help you understand how things work.
54+
55+
💪 Contributions
56+
-----
57+
58+
Nuclei-templates is powered by major contributions from the community.
59+
[Template contributions ](https://github.com/projectdiscovery/nuclei-templates/issues/new?assignees=&labels=&template=submit-template.md&title=%5Bnuclei-template%5D+), [Feature Requests](https://github.com/projectdiscovery/nuclei-templates/issues/new?assignees=&labels=&template=feature_request.md&title=%5BFeature%5D+) and [Bug Reports](https://github.com/projectdiscovery/nuclei-templates/issues/new?assignees=&labels=&template=bug_report.md&title=%5BBug%5D+) are more than welcome.
60+
61+
![Alt](https://repobeats.axiom.co/api/embed/55ee65543bb9a0f9c797626c4e66d472a517d17c.svg "Repobeats analytics image")
62+
63+
💬 Discussion
64+
-----
65+
66+
Have questions / doubts / ideas to discuss?
67+
Feel free to open a discussion on [Github discussions](https://github.com/projectdiscovery/nuclei-templates/discussions) board.
68+
69+
👨‍💻 Community
70+
-----
71+
72+
You are welcome to join the active [Discord Community](https://discord.gg/projectdiscovery) to discuss directly with project maintainers and share things with others around security and automation.
73+
Additionally, you may follow us on [Twitter](https://twitter.com/pdnuclei) to be updated on all the things about Nuclei.
74+
75+
76+
<p align="center">
77+
<a href="https://github.com/projectdiscovery/nuclei-templates/graphs/contributors">
78+
<img src="https://contrib.rocks/image?repo=projectdiscovery/nuclei-templates&max=300">
79+
</a>
80+
</p>
81+
82+
83+
Thanks again for your contribution and keeping this community vibrant. :heart:
84+
"""
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env python3
2+
import glob
3+
import subprocess
4+
5+
def countTpl(path):
6+
return len(glob.glob(path + "/*.*"))
7+
8+
def command(args, start=None, end=None):
9+
return "\n".join(subprocess.run(args, text=True, capture_output=True).stdout.split("\n")[start:end])[:-1]
10+
11+
def get_top10():
12+
HEADER = "## Nuclei Templates Top 10 statistics\n\n"
13+
TOP10 = command(["cat", "TOP-10.md"])
14+
return HEADER + TOP10 if len(TOP10) > 0 else ""
15+
16+
if __name__ == "__main__":
17+
version = command(["git", "describe", "--tags", "--abbrev=0"])
18+
template = eval(open(".github/scripts/README.tmpl", "r").read())
19+
20+
print(template)
21+
f = open("README.md", "w")
22+
f.write(template)
23+
f.close()
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: ✍🏻 CVE Annotate
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
workflow_dispatch:
8+
9+
jobs:
10+
docs:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Get Github tag
16+
id: meta
17+
run: |
18+
echo "::set-output name=tag::$(curl --silent "https://api.github.com/repos/projectdiscovery/nuclei/releases/latest" | jq -r .tag_name)"
19+
20+
- name: Setup CVE annotate
21+
if: steps.meta.outputs.tag != ''
22+
env:
23+
VERSION: ${{ steps.meta.outputs.tag }}
24+
run: |
25+
wget -q https://github.com/projectdiscovery/nuclei/releases/download/${VERSION}/cve-annotate.zip
26+
sudo unzip cve-annotate.zip -d /usr/local/bin
27+
working-directory: /tmp
28+
29+
- name: Generate CVE Annotations
30+
id: cve-annotate
31+
run: |
32+
cve-annotate -i ./cves/ -d .
33+
echo "::set-output name=changes::$(git status -s | wc -l)"
34+
35+
- name: Commit files
36+
if: steps.cve-annotate.outputs.changes > 0
37+
run: |
38+
git config --local user.email "[email protected]"
39+
git config --local user.name "GitHub Action"
40+
git pull
41+
git add cves
42+
git commit -m "Auto Generated CVE annotations [$(date)] :robot:" -a
43+
44+
- name: Push changes
45+
if: steps.cve-annotate.outputs.changes > 0
46+
uses: ad-m/github-push-action@master
47+
with:
48+
github_token: ${{ secrets.GITHUB_TOKEN }}
49+
branch: ${{ github.ref }}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: 🥳 New Template List
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
workflow_dispatch:
8+
9+
jobs:
10+
templates:
11+
runs-on: ubuntu-latest
12+
if: github.repository == 'projectdiscovery/nuclei-templates'
13+
steps:
14+
- uses: actions/checkout@master
15+
with:
16+
token: ${{ secrets.GITHUB_TOKEN }}
17+
persist-credentials: false
18+
fetch-depth: 0
19+
20+
- name: Generate new template list
21+
id: new-additions
22+
run: |
23+
git pull
24+
git diff --name-only --diff-filter=A $(git tag | tail -n 1) @ . | grep .yaml | tee .new-additions
25+
26+
- name: Commit files
27+
run: |
28+
git config --local user.email "[email protected]"
29+
git config --local user.name "GitHub Action"
30+
git add .new-additions -f
31+
git commit --allow-empty -m "Auto Generated New Template Addition List [$(date)] :robot:" -a
32+
33+
- name: Push changes
34+
uses: ad-m/github-push-action@master
35+
with:
36+
github_token: ${{ secrets.GITHUB_TOKEN }}
37+
branch: ${{ github.ref }}

0 commit comments

Comments
 (0)