Package Details: dirsearch 1:0.4.3-3

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: GPL2
Submitter: Kr1ss
Maintainer: Levitating
Last Packager: Levitating
Votes: 3
Popularity: 0.000003
First Submitted: 2019-06-23 18:37 (UTC)
Last Updated: 2023-02-05 22:56 (UTC)

Latest Comments

Antiz commented on 2023-02-04 12:29 (UTC)

Since @Levitating adopted this package recently and plans to get it up-to-date soon, I rejected the pending orphan request.

Levitating commented on 2023-01-19 16:25 (UTC)

I adopted this and hope to get it up-to-date soon.

Thanks for your hard work on it @Kr1ss

Kr1ss commented on 2021-11-05 18:19 (UTC) (edited on 2021-11-05 18:20 (UTC) by Kr1ss)

I've pushed an update, the default for both logs and report destinations is now just ., so they'll be stored inside the folder from where dirsearch is invoked.

@LevitatingRein : Make sure you delete the already written data from /usr/lib/python3.9/site-packages/dirsearch/{logs,reports}, so there won't be any holdovers in case you'll uninstall the package at some point. Or move them to another location. Also, don't forget to restore the group permissions you modified. ;)

Cheers !

Kr1ss commented on 2021-11-04 20:42 (UTC) (edited on 2021-11-04 20:45 (UTC) by Kr1ss)

Thanks @LevitatingRein !

For the time being, could you set the following in your /etc/dirsearch/default.conf :

[reports]
report-output-folder = /home/<USERNAME>/.dirsearch/reports
logs-location        = /home/<USERNAME>/.dirsearch/logs

Of course, make sure you use your actual username instead of the placeholders. :)

(E/ or just use different folders as you see fit)

I'll likely add a patch to set these to a location inside /tmp/ or /run/ by default, on a fresh install.

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'