dirsearch: drop unmaintained

This commit is contained in:
Rick Farina (Zero_Chaos) 2023-09-06 14:13:33 -04:00
parent fa74f47006
commit 6d39cbffc6
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC
6 changed files with 0 additions and 206 deletions

View file

@ -1,3 +0,0 @@
DIST dirsearch-0.3.9.tar.gz 566381 BLAKE2B 2f1cd6f0be89fa58a05f0d90c2825cb2e5e9d3c987df15ac95a4c058b1eca165a1bea6deeac9bd435309da732317727d05458f5893d0af2ba857d2c3f5096313 SHA512 c774e939ff1bf9d110bc3b62e344814f4371b9fdf06ccf70ac25866437c262f7aea46d83a3f176a6e736abc949d5cfec49fe3fc4fcb8aa69ffacb83aa62f4b5c
DIST dirsearch-0.4.0_p20201202.tar.gz 637376 BLAKE2B a7ae37dcdc71b2b97f43e44bec618f13d651988f4f30e27e3bc20cf9f4fbf10d5b494c8aa7de6b8202953e0198affe70c7a8199e3c7a65fd9fcdad2e16584212 SHA512 e146305b2a0e70d193db5adef766fe5ac459ab337820be8ccf0a35e1bef4314c81a036703c7d8ffc4b8d499e4f5702346b79aaeb71aa640c13a456ed9b101736
DIST dirsearch-0.4.0_p20210427.tar.gz 567360 BLAKE2B 1d4fcf60e542ba2e3a8da211b4238f750eb0b9bb646dc1adfc693df040d6ae8150e1972f9f9c8bc92f6a2c6525c8d5bfa38562983917a4aaad7e649ff041404c SHA512 2c2358c707dc45ccc78fb9adc7ccee20602458459a588efcf01053ee7d518822b2a9054e962475b1276a332d128533b5ae2fe86bc178b0efed3fe69625323a3f

View file

@ -1,50 +0,0 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{10..11} )
PYTHON_REQ_USE="threads(+)"
inherit eutils python-single-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 ~arm64 x86"
LICENSE="GPL-2"
SLOT="0"
DEPEND="${PYTHON_DEPS}"
RDEPEND="${DEPEND}"
pkg_setup() {
python-single-r1_pkg_setup
}
src_prepare() {
#https://github.com/pentoo/pentoo-overlay/issues/512
eapply "${FILESDIR}/${PV}_add_homedir_support-r1.patch"
mv *.md Dockerfile "${T}" || die
python_fix_shebang -q "${S}"
default
}
src_install() {
insinto "/usr/share/${PN}"
doins -r *
python_optimize "${D}/usr/share/${PN}"
make_wrapper $PN \
"${PYTHON} /usr/share/${PN}/dirsearch.py"
dodoc "${T}"/{*.md,Dockerfile}
}
pkg_postinst() {
elog "\nExample: https://infosectoughguy.blogspot.com/2016/10/lazy-directory-searching-for-pentesters.html\n"
}

View file

@ -1,56 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{10..11} )
PYTHON_REQ_USE="threads(+)"
inherit eutils python-single-r1
HASH_COMMIT="07726bbf4c5c540b0e1d974c77864a78ed21c386"
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/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz"
KEYWORDS="amd64 ~arm64 x86"
LICENSE="GPL-2"
SLOT="0"
DEPEND="${PYTHON_DEPS}"
RDEPEND="${DEPEND}"
S=${WORKDIR}/${PN}-${HASH_COMMIT}
pkg_setup() {
python-single-r1_pkg_setup
}
src_prepare() {
#use ~/.dirsearch directory
#https://github.com/maurosoria/dirsearch/issues/650
sed -e "s|save-logs-home = False|save-logs-home = True|g" \
sed -e "s|autosave-report = True|autosave-report = False|g" \
-i default.conf
mv *.md Dockerfile "${T}" || die
python_fix_shebang -q "${S}"
default
}
src_install() {
insinto "/usr/share/${PN}"
doins -r *
python_optimize "${D}/usr/share/${PN}"
make_wrapper $PN \
"${PYTHON} /usr/share/${PN}/dirsearch.py"
dodoc "${T}"/{*.md,Dockerfile}
}
pkg_postinst() {
elog "\nExample: https://infosectoughguy.blogspot.com/2016/10/lazy-directory-searching-for-pentesters.html\n"
}

View file

@ -1,36 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{10..11} )
DISTUTILS_USE_SETUPTOOLS=rdepend
PYTHON_REQ_USE="threads(+)"
inherit distutils-r1
HASH_COMMIT="c038c6b1b7e625c1ba5d9d5845ecc0aee89f73ac"
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/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz"
KEYWORDS="amd64 ~arm64 x86"
LICENSE="GPL-2"
SLOT="0"
DEPEND="${PYTHON_DEPS}"
RDEPEND="${DEPEND}"
S=${WORKDIR}/${PN}-${HASH_COMMIT}
src_prepare() {
#use ~/.dirsearch directory
sed -e "s|save-logs-home = False|save-logs-home = True|g" -i default.conf || die "sed 1"
sed -e "s|autosave-report = True|autosave-report = False|g" -i default.conf || die "sed 2"
# mv *.md Dockerfile "${T}" || die
eapply_user
}
pkg_postinst() {
elog "\nExample: https://infosectoughguy.blogspot.com/2016/10/lazy-directory-searching-for-pentesters.html\n"
}

View file

@ -1,53 +0,0 @@
diff -ur a/lib/controller/Controller.py b/lib/controller/Controller.py
--- a/lib/controller/Controller.py 2019-11-26 17:44:21.000000000 +0300
+++ b/lib/controller/Controller.py 2019-12-03 22:32:54.694232257 +0300
@@ -56,7 +56,7 @@
self.exit = False
self.arguments = arguments
self.output = output
- self.savePath = self.script_path
+ self.savePath = FileUtils.buildPath(os.path.expanduser('~'), ".dirsearch")
self.doneDirs = []
self.recursive_level_max = self.arguments.recursive_level_max
@@ -242,7 +242,12 @@
def setupErrorLogs(self):
fileName = "errors-{0}.log".format(time.strftime('%y-%m-%d_%H-%M-%S'))
- self.errorLogPath = FileUtils.buildPath(FileUtils.buildPath(self.savePath, "logs", fileName))
+ logs = FileUtils.buildPath(self.savePath, "logs")
+
+ if not FileUtils.exists(logs):
+ FileUtils.createDirectory(logs)
+
+ self.errorLogPath = FileUtils.buildPath(logs, fileName)
self.errorLog = open(self.errorLogPath, "w")
def setupBatchReports(self):
diff -ur a/lib/core/ArgumentParser.py b/lib/core/ArgumentParser.py
--- a/lib/core/ArgumentParser.py 2019-11-26 17:44:21.000000000 +0300
+++ b/lib/core/ArgumentParser.py 2019-12-03 22:34:16.428824862 +0300
@@ -16,6 +16,9 @@
#
# Author: Mauro Soria
+import os
+import shutil
+
from optparse import OptionParser, OptionGroup
from lib.utils.DefaultConfigParser import DefaultConfigParser
@@ -199,7 +202,12 @@
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):
+ os.makedirs(os.path.dirname(configPath), exist_ok=True)
+ shutil.copyfile(FileUtils.buildPath(self.script_path, 'default.conf'), configPath)
+
config.read(configPath)
# General

View file

@ -1,8 +0,0 @@
<?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>