leebaird/discover

Conflict with other files of same name

Closed this issue · 8 comments

discover.sh doesn't run if there is a file of same name in any location/directory. Other scripts in different locations works properly except for this one (/opt/discover/discover.sh)

┌─[x230@ThiccPad]─[~]
└──╼ $sudo /opt/discover/discover.sh

==================================================================

Found 4 instances of Discover on your system.
Refer to the following paths:
/home/x230/discover.sh
/home/x230/Downloads/discover.sh
/opt/discover/discover.sh
/usr/share/sniper/modes/discover.sh

Remove or rename all but the install path and try again.
If renaming, 'discover.sh' can't be in name. Try 'discover.bu' etc.

==================================================================

Even after renaming it to discover.bu, it doesn't work properly.

Did you run updatedb after the file rename?

Tried it, just one less instance of Discover found. Discover script is still not running.

You should not be renaming Discover’s discover.sh. The files located with the home directory would be unnecessary after install. That’s said, the discover.sh used by sniper will still cause an issue. I will get this in the todo list to update the discover install location check.

Oh i know, but would not it break other scripts?

I think it would be better to use default location of Discover(/opt/discover/discover.sh) instead of "tmpinstance" in script.

That is not a default location. It may be for Kali, but is not for PTF.

Now i get it. Thanks for helping.