mirror of https://github.com/Mickhat/lemma.git
25 lines
1.0 KiB
Bash
Executable File
25 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
|
|
# Disable download from the default nuclei-templates project
|
|
export DISABLE_NUCLEI_TEMPLATES_PUBLIC_DOWNLOAD=true
|
|
|
|
# Disable download from public / private GitHub project(s)
|
|
export DISABLE_NUCLEI_TEMPLATES_GITHUB_DOWNLOAD=true
|
|
|
|
# Disable download from public / private GitLab project(s)
|
|
export DISABLE_NUCLEI_TEMPLATES_GITLAB_DOWNLOAD=true
|
|
|
|
# Disable download from public / private AWS Bucket(s)
|
|
export DISABLE_NUCLEI_TEMPLATES_AWS_DOWNLOAD=true
|
|
|
|
# Disable download from public / private Azure Blob Storage
|
|
export DISABLE_NUCLEI_TEMPLATES_AZURE_DOWNLOAD=true
|
|
|
|
|
|
$DIR/bin/busybox wget https://github.com/projectdiscovery/nuclei-templates/archive/refs/tags/v9.9.1.zip -O /tmp/nuclei-templates.zip > /dev/null 2>&1
|
|
$DIR/bin/busybox unzip -d /tmp /tmp/nuclei-templates.zip > /dev/null 2>&1
|
|
|
|
# This will create a /tmp/nuclei-templates-X.X.X directory, change it to /tmp/nuclei-templates
|
|
mv /tmp/nuclei-templates-* /tmp/nuclei-templates > /dev/null 2>&1
|
|
$DIR/bin/nuclei $@ |