dirsearch-0.4.0 bump and mask

This commit is contained in:
blshkv 2020-12-04 20:00:30 +08:00
parent 27e773cdaf
commit 5ad08ad899
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
6 changed files with 14 additions and 68 deletions

View file

@ -1,2 +1,2 @@
DIST dirsearch-0.3.8.tar.gz 462218 BLAKE2B bc6d81c9b09a0c099ae8b8166c15c1f11cb9506d90568006a7c321cb858b82441f7317f986a1f19832e6adae7d6ba90aa2e8f03db796ba7d8081a8b8671a741c SHA512 c4a9fe46f839daeb82e4ba50eae085c0bf7b62c3fd4ed6d9f54cf6b940c3b6f008e0e9e7894cfe96e8af790b2cc9b58ac6df7caa08b17ccbfb54a91ecd65454e
DIST dirsearch-0.3.9.tar.gz 566381 BLAKE2B 2f1cd6f0be89fa58a05f0d90c2825cb2e5e9d3c987df15ac95a4c058b1eca165a1bea6deeac9bd435309da732317727d05458f5893d0af2ba857d2c3f5096313 SHA512 c774e939ff1bf9d110bc3b62e344814f4371b9fdf06ccf70ac25866437c262f7aea46d83a3f176a6e736abc949d5cfec49fe3fc4fcb8aa69ffacb83aa62f4b5c
DIST dirsearch-0.4.0.tar.gz 608845 BLAKE2B bc357898943dbcf3cdeed3c9385e70b54c78af9e115e17f2a69da38a73e51dc29a1aa968b8dc76969c0c690cec81f1aecec3c3baf40ddc36d7fd62a5bc1f76bd SHA512 155108d5b78dd2e889b5a39957c79b61e92470c29c97c9a236f706e022ec3c315ebcc955e1cbbb059ba7a7042bb907b28b53403d9ba72edfdb504344613bd80f

View file

@ -12,7 +12,7 @@ DESCRIPTION="A simple command line tool designed to brute force dirs and files i
HOMEPAGE="https://github.com/maurosoria/dirsearch"
SRC_URI="https://github.com/maurosoria/dirsearch/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
KEYWORDS="amd64 ~arm64 x86"
LICENSE="GPL-2"
SLOT="0"
@ -24,8 +24,8 @@ pkg_setup() {
}
src_prepare() {
# run it without fucking root!
eapply "${FILESDIR}/${P}_add_homedir_support-r1.patch"
#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}"

View file

@ -3,7 +3,7 @@
EAPI=7
PYTHON_COMPAT=( python3_{5,6,7} )
PYTHON_COMPAT=( python3_{5,6,7,8} )
PYTHON_REQ_USE="threads(+)"
inherit eutils python-single-r1
@ -12,23 +12,23 @@ DESCRIPTION="A simple command line tool designed to brute force dirs and files i
HOMEPAGE="https://github.com/maurosoria/dirsearch"
SRC_URI="https://github.com/maurosoria/dirsearch/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
#https://github.com/maurosoria/dirsearch/issues/650
#KEYWORDS="amd64 ~arm64 x86"
LICENSE="GPL-2"
SLOT=0
IUSE=""
SLOT="0"
DEPEND="${PYTHON_DEPS}"
RDEPEND=""
RDEPEND="${DEPEND}"
pkg_setup() {
python-single-r1_pkg_setup
}
src_prepare() {
# run it without fucking root!
eapply "${FILESDIR}/add_homedir_support-r1.patch"
#https://github.com/pentoo/pentoo-overlay/issues/512
# eapply "${FILESDIR}/${P}_add_homedir_support-r1.patch"
mv *.md "${T}" || die
mv *.md Dockerfile "${T}" || die
python_fix_shebang -q "${S}"
default
@ -41,9 +41,9 @@ src_install() {
python_optimize "${D}/usr/share/${PN}"
make_wrapper $PN \
"python3 /usr/share/${PN}/dirsearch.py"
"${PYTHON} /usr/share/${PN}/dirsearch.py"
dodoc "${T}"/*.md
dodoc "${T}"/{*.md,Dockerfile}
}
pkg_postinst() {

View file

@ -1,53 +0,0 @@
diff -ur a/lib/controller/Controller.py b/lib/controller/Controller.py
--- a/lib/controller/Controller.py 2017-07-25 08:03:31.000000000 +0300
+++ b/lib/controller/Controller.py 2019-10-10 17:31:38.082321707 +0300
@@ -51,7 +51,7 @@
self.exit = False
self.arguments = arguments
self.output = output
- self.savePath = self.script_path
+ self.savePath = FileUtils.buildPath(os.path.expanduser('~'), ".dirsearch")
if self.arguments.saveHome:
savePath = self.getSavePath()
if not FileUtils.exists(savePath):
@@ -180,7 +180,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 2017-07-25 08:03:31.000000000 +0300
+++ b/lib/core/ArgumentParser.py 2019-10-10 17:23:30.377578430 +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,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

@ -121,5 +121,4 @@ net-analyzer/zmap
~net-analyzer/s3scanner-1.0.0_p20190928
~net-analyzer/gitgraber-20191002
~net-analyzer/bbrecon-20200228
~net-analyzer/dirsearch-0.3.9
~net-analyzer/massdns-0.2_p20190201