aboutsummaryrefslogtreecommitdiffstats
path: root/misc/nuclei/patches
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-08-08 13:03:32 +0200
committerDanilo M. <danix@danix.xyz>2026-08-08 13:03:32 +0200
commit25742bd9efc32de82eeeeaba0f4b8976c169e7ce (patch)
tree5dacbf9207123e6e74733e5d474b28ed34888f61 /misc/nuclei/patches
parent998dbd56e53c8c8c8bc1a425cec16b6ccc752e34 (diff)
downloadsbo-slackbuilds-25742bd9efc32de82eeeeaba0f4b8976c169e7ce.tar.gz
sbo-slackbuilds-25742bd9efc32de82eeeeaba0f4b8976c169e7ce.zip
repo: move packages under their SBo category
Mirror SBo's own <category>/<package>/ layout instead of a flat <package>/ one. The category is now carried by the directory, so there's no separate map to maintain, and a package exports to the SBo repo at the identical relative path. misc: SecLists, exploitdb, nuclei games: UrbanTerror network: feroxbuster, ffuf, gobuster, metasploit-framework-bin, r8125 Categories taken from the synced SBo tree, which is authoritative. This also repairs two things the flat layout had broken: - test-build's category_of() returned "." for every package, since it derives the category from the parent directory name. - post-commit asserted a fixed depth. It now locates a build by the directory holding the .SlackBuild, and names the archive after the package with the package dir at the tarball root, as SBo expects. Drops the exec bit from SecLists.SlackBuild and gobuster.SlackBuild, flagged by sbolint once the pre-commit hook started running: SBo requires 0644 and ships both that way.
Diffstat (limited to 'misc/nuclei/patches')
-rw-r--r--misc/nuclei/patches/Build-doc.patch31
-rw-r--r--misc/nuclei/patches/Change-default-directory-of-nuclei-templates.patch25
-rw-r--r--misc/nuclei/patches/Disable-update.patch22
-rw-r--r--misc/nuclei/patches/series3
4 files changed, 81 insertions, 0 deletions
diff --git a/misc/nuclei/patches/Build-doc.patch b/misc/nuclei/patches/Build-doc.patch
new file mode 100644
index 0000000..17f054e
--- /dev/null
+++ b/misc/nuclei/patches/Build-doc.patch
@@ -0,0 +1,31 @@
+From: Sophie Brun <sophie@offensive-security.com>
+Date: Fri, 10 Dec 2021 09:08:38 +0100
+Subject: Build doc
+
+---
+ Makefile | 7 ++-----
+ 1 file changed, 2 insertions(+), 5 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 719c308..ca2e684 100644
+--- a/Makefile
++++ b/Makefile
+@@ -59,10 +59,7 @@ docgen: GOBUILD_OUTPUT = ./bin/docgen
+ docgen: GOBUILD_PACKAGES = cmd/docgen/docgen.go
+ docgen: bin = dstdocgen
+ docgen:
+- @if ! which $(bin) >/dev/null; then \
+- echo "Command $(bin) not found! Installing..."; \
+- go install -v github.com/projectdiscovery/yamldoc-go/cmd/docgen/$(bin)@latest; \
+- fi
++ go install -v github.com/projectdiscovery/yamldoc-go/cmd/docgen/$(bin)@latest; \
+ # TODO: FIX THIS PANIC
+ $(GOCMD) generate pkg/templates/templates.go
+ $(GOBUILD) -o "${GOBUILD_OUTPUT}" $(GOBUILD_PACKAGES)
+@@ -156,4 +153,4 @@ template-validate:
+ ./bin/nuclei -validate \
+ -w workflows \
+ -et http/technologies \
+- -ept code
+\ No newline at end of file
++ -ept code
diff --git a/misc/nuclei/patches/Change-default-directory-of-nuclei-templates.patch b/misc/nuclei/patches/Change-default-directory-of-nuclei-templates.patch
new file mode 100644
index 0000000..447f42d
--- /dev/null
+++ b/misc/nuclei/patches/Change-default-directory-of-nuclei-templates.patch
@@ -0,0 +1,25 @@
+From: Sophie Brun <sophie@offensive-security.com>
+Date: Thu, 20 Apr 2023 14:51:31 +0200
+Subject: Fix path to nuclei-templates
+
+By default the nuclei-templates is located directly in /home/user.
+Change the default location to /home/user/.local
+
+Last-Update: 2023-06-27
+---
+ pkg/catalog/config/constants.go | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/pkg/catalog/config/constants.go b/pkg/catalog/config/constants.go
+index fab1884..6d78e7f 100644
+--- a/pkg/catalog/config/constants.go
++++ b/pkg/catalog/config/constants.go
+@@ -22,7 +22,7 @@ var (
+
+ const (
+ TemplateConfigFileName = ".templates-config.json"
+- NucleiTemplatesDirName = "nuclei-templates"
++ NucleiTemplatesDirName = ".local/nuclei-templates"
+ OfficialNucleiTemplatesRepoName = "nuclei-templates"
+ NucleiIgnoreFileName = ".nuclei-ignore"
+ NucleiTemplatesIndexFileName = ".templates-index" // contains index of official nuclei templates
diff --git a/misc/nuclei/patches/Disable-update.patch b/misc/nuclei/patches/Disable-update.patch
new file mode 100644
index 0000000..3472208
--- /dev/null
+++ b/misc/nuclei/patches/Disable-update.patch
@@ -0,0 +1,22 @@
+From: Sophie Brun <sophie@offensive-security.com>
+Date: Wed, 8 Dec 2021 08:40:42 +0100
+Subject: Disable update
+
+Last-Update: 2023-10-27
+Updates must be done with apt.
+---
+ cmd/nuclei/main.go | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/cmd/nuclei/main.go b/cmd/nuclei/main.go
+index 8421d1d..095f5d5 100644
+--- a/cmd/nuclei/main.go
++++ b/cmd/nuclei/main.go
+@@ -469,7 +469,6 @@ on extensive configurability, massive extensibility and ease of use.`)
+ )
+
+ flagSet.CreateGroup("update", "Update",
+- flagSet.BoolVarP(&updateNucleiBinary, "update", "up", false, "update nuclei engine to the latest released version"),
+ flagSet.BoolVarP(&options.UpdateTemplates, "update-templates", "ut", false, "update nuclei-templates to latest released version"),
+ flagSet.StringVarP(&options.NewTemplatesDirectory, "update-template-dir", "ud", "", "custom directory to install / update nuclei-templates"),
+ flagSet.CallbackVarP(disableUpdatesCallback, "disable-update-check", "duc", "disable automatic nuclei/templates update check"),
diff --git a/misc/nuclei/patches/series b/misc/nuclei/patches/series
new file mode 100644
index 0000000..4741101
--- /dev/null
+++ b/misc/nuclei/patches/series
@@ -0,0 +1,3 @@
+Disable-update.patch
+Build-doc.patch
+Change-default-directory-of-nuclei-templates.patch