Closed kortac closed 1 year ago
Related: https://github.com/laramies/theHarvester/issues/937
Currently, various file paths are hardcoded, though the fallback path does work on Intel macOS (/usr/local/etc
).
Best way would be for upstream to allow setting the particular path. Even something like an environment variable would help since Homebrew can create a wrapper to set the environment variable.
On Homebrew side, at best some type of workaround might be possible to manually find-and-replace either /etc/
or /usr/local/etc/
in some code. However, this can be fragile as we can't track if upstream adds new files, changes code, etc.
Closing as this looks like an upstream issue.
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputVerification
brew update
and am still able to reproduce my issue.brew doctor
and that did not fix my problem.What were you trying to do (and why)?
Executing theharvester fails with an error message stating
proxies.yaml
cannot be found.I tried the step-by-step reproduction on an iMac 2021 and a MacBook Pro 2021, both with Ventura. On both machines it fails.
What happened (include all command output)?
What did you expect to happen?
Homebrew version of theharvester is looking for
proxies.yaml
in/etc/theHarvester
instead of/opt/homebrew/etc/theharvester/
.Manually linking
sudo ln -s /opt/homebrew/etc/theharvester /etc/theHarvester
solves the issue:I would expect brew theharvester to look for the yaml files in
opt/homebrew/etc/theharvester
instead of/etc/theHarvester
.Step-by-step reproduction instructions (by running
brew
commands)