Package Details: dirsearch 0.4.3-5

Git Clone URL: https://aur.archlinux.org/dirsearch.git (read-only, click to copy)
Package Base: dirsearch
Description: Web path scanner/fuzzer, written in Python
Upstream URL: https://github.com/maurosoria/dirsearch
Keywords: ITsec python security web wordlist
Licenses: GPL-2.0-only
Submitter: Kr1ss
Maintainer: Levitating
Last Packager: Levitating
Votes: 4
Popularity: 0.33
First Submitted: 2019-06-23 18:37 (UTC)
Last Updated: 2024-01-29 04:08 (UTC)

Latest Comments

« First ‹ Previous 1 2

Levitating commented on 2021-11-04 20:22 (UTC)

It's saving logs under /usr/lib again.

I get it working by giving myself group permission to the folder but that's not preferable.

Kr1ss commented on 2020-10-13 13:32 (UTC) (edited on 2020-10-13 13:52 (UTC) by Kr1ss)

Thank you for investigating @dkasak !

I'll submit an update as soon as I'll get to my box.

Though I think the space and the sharp sign need to be swapped in your patch :

sed -i 's/^# \(save-logs-home.*$\)/\1/' default.conf

But I'll check that out. Cheers !

EDIT Oh I see you noticed that in the mean time XD

PS That's the commmit that changed the comment style in the default configuration :)

dkasak commented on 2020-10-13 13:26 (UTC) (edited on 2020-10-13 13:29 (UTC) by dkasak)

Ah, the sed regex in prepare() is missing a space so it's failing:

--- PKGBUILD.old    2020-10-13 15:26:42.235907820 +0200
+++ PKGBUILD    2020-10-13 15:26:50.488907354 +0200
@@ -29,7 +29,7 @@
 prepare() {
   cd "${pkgname%-git}"
   rm -r {logs,reports}
-  sed -i 's/^#\(save-logs-home.*$\)/\1/' default.conf
+  sed -i 's/^# \(save-logs-home.*$\)/\1/' default.conf
 }

 package() {

EDIT: fixed the diff, a bit too quick on my fingers. :)

dkasak commented on 2020-10-13 13:20 (UTC)

Seems dirsearch is trying to write logs under /usr/lib. This happens when I try executing a search:

Traceback (most recent call last):
  File "/usr/bin/dirsearch", line 46, in <module>
    main = Program()
  File "/usr/bin/dirsearch", line 42, in __init__
    self.controller = Controller(self.script_path, self.arguments, self.output)
  File "/usr/lib/dirsearch/lib/controller/Controller.py", line 131, in __init__
    self.setupErrorLogs()
  File "/usr/lib/dirsearch/lib/controller/Controller.py", line 305, in setupErrorLogs
    self.errorLog = open(self.errorLogPath, "w")
PermissionError: [Errno 13] Permission denied: '/usr/lib/dirsearch/logs/errors-20-10-13_15-19-17.log'