Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dirsearch] log permission error #2201

Closed
noraj opened this issue Jan 23, 2019 · 7 comments
Closed

[dirsearch] log permission error #2201

noraj opened this issue Jan 23, 2019 · 7 comments
Assignees

Comments

@noraj
Copy link
Contributor

noraj commented Jan 23, 2019

By default dirsearch save logs in the install dir causing permission error :


 _|. _ _  _  _  _ _|_    v0.3.8
(_||| _) (/_(_|| (_| )

Extensions: php | Threads: 4 | Wordlist size: 5979
Traceback (most recent call last):
  File "/usr/share/dirsearch/dirsearch.py", line 40, in <module>
    main = Program()
  File "/usr/share/dirsearch/dirsearch.py", line 36, in __init__
    self.controller = Controller(self.script_path, self.arguments, self.output)
  File "/usr/share/dirsearch/lib/controller/Controller.py", line 102, in __init__
    self.setupErrorLogs()
  File "/usr/share/dirsearch/lib/controller/Controller.py", line 226, in setupErrorLogs
    self.errorLog = open(self.errorLogPath, "w")
PermissionError: [Errno 13] Permission denied: '/usr/share/dirsearch/logs/errors-19-01-23_11-42-34.log'

But I found on their issue tracker there is a way to change the configuration: maurosoria/dirsearch#92

So we should change https://github.com/BlackArch/blackarch/blob/master/packages/dirsearch/PKGBUILD and uncomment save-logs-home = True in /usr/share/dirsearch/default.conf.

@noraj
Copy link
Contributor Author

noraj commented Jan 23, 2019

sed -i '/save-logs-home/s/^#//g' /usr/share/dirsearch/default.conf

so

sed -i '/save-logs-home/s/^#//g' "$pkgdir/usr/share/$pkgname/default.conf" ?

@noraj
Copy link
Contributor Author

noraj commented Jan 23, 2019

Thx @noptrix, I didn't PR directly because I was not sure about how to put the sed in the PKBUILD. Now I have an example.

@noraj
Copy link
Contributor Author

noraj commented Sep 26, 2020

image

@noraj noraj reopened this Sep 26, 2020
@Edu4rdSHL
Copy link
Contributor

It isn't an "log permission error", please open another bug report as it's unrelated but also you're bumping an old bug from more than one year.

@noraj
Copy link
Contributor Author

noraj commented Sep 26, 2020

@Edu4rdSHL Not exactly the same but anyway it's related to save-logs-home, ok it's not permission this time.
I wanted to quickly log that so I can fix it later myself.
As it is tracked in #2759, is doesn't matter if it doesn't show up in recent issues.

@noraj noraj reopened this Sep 26, 2020
@noraj noraj changed the title [dirsearch] log permission error [dirsearch] valueerror error Sep 26, 2020
@noraj noraj self-assigned this Sep 26, 2020
@Edu4rdSHL
Copy link
Contributor

Please don't bump old issues an/or modify them, it just difficult things for people searching issues. If you are going to fix it, just make the commit and that's all. Thanks.

@Edu4rdSHL Edu4rdSHL changed the title [dirsearch] valueerror error [dirsearch] log permission error Sep 26, 2020
@noraj
Copy link
Contributor Author

noraj commented Sep 26, 2020

If you are going to fix it, just make the commit and that's all. Thanks.

If I do in a few days I'll have forgotten about it so I need to log it in an issue. I'll make a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants