rverton / webanalyze

Port of Wappalyzer (uncovers technologies used on websites) to automate mass scanning.
MIT License
908 stars 134 forks source link

error: can not open apps file technologies.json: open technologies.json: no such file or directory #64

Closed 3xyz closed 1 year ago

3xyz commented 1 year ago

When I put symbolic link of binatry file to /usr/local/bin/ I cannot run webanalyzer in other directory, because technologies.json file is searched not relative to webanalyzer directory, can u fix that please? :)

rverton commented 1 year ago

In your example, you would have to put the technologies.json file in the /usr/local/bin folder, which I'm not a fan of.

What do you think of default paths where the file is searched? First look in the current folder, then in the home folder, then in something like /etc?

I'm not yet sure where the update mechanism should put the file then. Maybe just in the current working directory?

3xyz commented 1 year ago

Even if i copy the technologies.json to /usr/local/bin. The script do not see the technologies.json.

rverton commented 1 year ago

Yeah, only the current working directory is checked for a technologies.json file. As mentioned above, I think I'm fine with adding a few more places to look. You can send a PR if you want, otherwise I will do this in the upcoming days when I'm free.

timlaw71 commented 1 year ago

I was adding this project into some recon workflow and hit this same error.

rverton commented 1 year ago

Fixed in master now, will add a release soon.