GerbenJavado / LinkFinder

A python script that finds endpoints in JavaScript files
https://gerbenjavado.com/discovering-hidden-content-using-linkfinder
MIT License
3.61k stars 587 forks source link

How to execute linkfinder as a command in terminal from anywhere ? #96

Closed abhi06991 closed 4 months ago

abhi06991 commented 3 years ago

I am just trying to include the path of the linkfinder.py to .bashrc file, so that I can run it as a linux command from anywhere, but its just not working!

I have tried everything, gave the script the +x permissions, removed the .py extension. When I am in the LinkFinder folder, this command works ./linkfinder fine, but I am not able to run the command from anywhere else.

Any suggestions ?

0xRapid commented 3 years ago

I find the symbolic link a better solution.

For example, if I want to run dirsearch.py using the command 'dirsearch' from anywhere I do this:

sudo ln -s /home/kali/dirsearch/dirsearch.py dirsearch

Then I can run 'dirsearch' from any directory.

rickjms1337 commented 1 year ago

you can also set an alias in your .bashrc or you .zshrc file for example this is how i set mine up had issues with installing it. once you set this just source your .bashrc file / restart terminal should work.

alias linkfinder='python3 /home/rickjms/github-tools/LinkFinder/linkfinder.py'