mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-19 13:20:57 +02:00
dirsearch: new tool (designed to brute force dirs and files in websites)
This commit is contained in:
parent
2401e3096b
commit
ec3f4bf3ff
4 changed files with 100 additions and 0 deletions
1
net-analyzer/dirsearch/Manifest
Normal file
1
net-analyzer/dirsearch/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST dirsearch-0.3.8.tar.gz 462218 BLAKE2B bc6d81c9b09a0c099ae8b8166c15c1f11cb9506d90568006a7c321cb858b82441f7317f986a1f19832e6adae7d6ba90aa2e8f03db796ba7d8081a8b8671a741c SHA512 c4a9fe46f839daeb82e4ba50eae085c0bf7b62c3fd4ed6d9f54cf6b940c3b6f008e0e9e7894cfe96e8af790b2cc9b58ac6df7caa08b17ccbfb54a91ecd65454e
|
||||
56
net-analyzer/dirsearch/dirsearch-0.3.8.ebuild
Normal file
56
net-analyzer/dirsearch/dirsearch-0.3.8.ebuild
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{5,6} )
|
||||
PYTHON_REQ_USE="threads"
|
||||
|
||||
inherit eutils python-r1
|
||||
|
||||
DESCRIPTION="A simple command line tool designed to brute force dirs and files in websites"
|
||||
HOMEPAGE="https://github.com/maurosoria/dirsearch"
|
||||
SRC_URI="https://github.com/maurosoria/dirsearch/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
LICENSE="GPL-2"
|
||||
SLOT=0
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}"
|
||||
|
||||
pkg_setup() {
|
||||
python_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${FILESDIR}/add_homedir_support.patch"
|
||||
|
||||
python_fix_shebang "${S}"
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto "/usr/share/${PN}"
|
||||
for x in db \
|
||||
lib \
|
||||
thirdparty \
|
||||
dirsearch.py \
|
||||
default.conf
|
||||
do
|
||||
doins -r "$x"
|
||||
done
|
||||
|
||||
python_optimize "${D}/usr/share/${PN}"
|
||||
|
||||
make_wrapper $PN \
|
||||
"python3 /usr/share/${PN}/dirsearch.py"
|
||||
|
||||
dodoc \
|
||||
CHANGELOG.md \
|
||||
README.md
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "\nExample: https://infosectoughguy.blogspot.com/2016/10/lazy-directory-searching-for-pentesters.html\n"
|
||||
}
|
||||
35
net-analyzer/dirsearch/files/add_homedir_support.patch
Normal file
35
net-analyzer/dirsearch/files/add_homedir_support.patch
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
diff -ur a/lib/core/ArgumentParser.py b/lib/core/ArgumentParser.py
|
||||
--- a/lib/core/ArgumentParser.py 2017-07-25 08:03:31.000000000 +0300
|
||||
+++ b/lib/core/ArgumentParser.py 2019-07-18 00:30:30.279648959 +0300
|
||||
@@ -16,6 +16,9 @@
|
||||
#
|
||||
# Author: Mauro Soria
|
||||
|
||||
+import os
|
||||
+import shutil
|
||||
+
|
||||
from optparse import OptionParser, OptionGroup
|
||||
|
||||
from lib.utils.FileUtils import File
|
||||
@@ -135,7 +138,11 @@
|
||||
|
||||
def parseConfig(self):
|
||||
config = DefaultConfigParser()
|
||||
- configPath = FileUtils.buildPath(self.script_path, "default.conf")
|
||||
+ configPath = FileUtils.buildPath(os.path.expanduser('~'), ".dirsearch", "dirsearch.conf")
|
||||
+
|
||||
+ if not FileUtils.exists(configPath):
|
||||
+ shutil.copyfile(FileUtils.buildPath(self.script_path, 'default.conf'), configPath)
|
||||
+
|
||||
config.read(configPath)
|
||||
|
||||
# General
|
||||
@@ -145,7 +152,7 @@
|
||||
self.recursive = config.safe_getboolean("general", "recursive", False)
|
||||
self.suppressEmpty = config.safe_getboolean("general", "suppress-empty", False)
|
||||
self.testFailPath = config.safe_get("general", "scanner-fail-path", "").strip()
|
||||
- self.saveHome = config.safe_getboolean("general", "save-logs-home", False)
|
||||
+ self.saveHome = True
|
||||
|
||||
# Reports
|
||||
self.autoSave = config.safe_getboolean("reports", "autosave-report", False)
|
||||
8
net-analyzer/dirsearch/metadata.xml
Normal file
8
net-analyzer/dirsearch/metadata.xml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>email@linxon.ru</email>
|
||||
<name>Yury Martynov</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
Loading…
Reference in a new issue