httprobe
httprobe copied to clipboard
bash: httprobe: command not found
i can't able to use httprobe.i think this issue is due to go but can't able to the fix.


Did you try adding $GOPATH/bin to your $PATH?
Same issue

As mentioned by @geeknik, $GOPATH/bin must be in your $PATH.
Either add it to your .bashrc using a text editor, or run:
echo 'export PATH=$PATH:$GOPATH/bin' >> ~/.bashrc
And then restart your terminal and try running httprobe again.
@tomnomnom Same issue, as you can see, $GOPATH/bin is already in my path

The error:

all.txt contains data, I double checked
Also,

After adding it to .bashrc you need to update it with source ~/.bashrc
same issue here
Linux kali 5.6.0-kali2-amd64 SMP Debian 5.6.14-1kali1 (2020-05-25) x86_64 GNU/Linux
httprobe
bash: httprobe: command not found
@da7om85
Whenever you get this error check the following: These two lines are present in your .bash_profile or .bashrc:
export GOPATH=$HOME/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
Once you added these two lines, restart the terminal and the first check if they have been added correctly by running the following commands:
echo $GOPATH
echo $GOROOT
now go to $HOME/bin and check for httprobe, if its in there, then everything is installed correctly and it should work as expected. If you dont find httprobe, then you need to install it again using:
go get -u github.com/tomnomnom/httprobe
@harsh-kk @mavr1k7 @S1rRV @da7om85
- Go to
httprobefolder. - Type
go build - Then type
lsand you will find new httprobe binary . - Then type
cat domain.txt | httprobeit will work fine.
When you run go get -u github.com/tomnomnom/httprobe the main binary file is inside $HOME/go/bin so the "httprobe" binary will be inside $HOME/go/bin/httprobe so you must add "$HOME/go/bin" in your $PATH variable inside ~/.profile file.
$PATH inside .profile should look something like this:
PATH="$PATH:$HOME/Documents/android-studio/bin:$HOME/Android/Sdk/emulator:/opt/node/bin:/opt/go/bin:$HOME/go/bin"
When you run
go get -u github.com/tomnomnom/httprobethe main binary file is inside$HOME/go/binso the "httprobe" binary will be inside$HOME/go/bin/httprobeso you must add "$HOME/go/bin" in your $PATH variable inside~/.profilefile.$PATH inside .profile should look something like this:
PATH="$PATH:$HOME/Documents/android-studio/bin:$HOME/Android/Sdk/emulator:/opt/node/bin:/opt/go/bin:$HOME/go/bin"
Some of us are noobs in this env..Can you please put all the things here step by step
When you run
go get -u github.com/tomnomnom/httprobethe main binary file is inside$HOME/go/binso the "httprobe" binary will be inside$HOME/go/bin/httprobeso you must add "$HOME/go/bin" in your $PATH variable inside~/.profilefile. $PATH inside .profile should look something like this:PATH="$PATH:$HOME/Documents/android-studio/bin:$HOME/Android/Sdk/emulator:/opt/node/bin:/opt/go/bin:$HOME/go/bin"Some of us are noobs in this env..Can you please put all the things here step by step
Here it is,,:)
Things to note,
- When you are trying to install binary like,
go get -u github.com/tomnomnom/httprobethe main binary in this casehttprobewill be available inside$HOME/go/bin. Here$HOMEis equal to your relative home directory from root. Suppose your username isjohnthen, your$HOMEis/home/john/which means,$HOME/go/binis/home/john/go/bin. So, all the installed binary will be in that directory. You can go to that directory, open CMD and run program using./program_name. - Your
$PATHvariable is an environment variable i.e. it will be available throughout your system. If you wanthttprobeto be available globally as a command then, you need to put the path of the binary in$PATHvariable. In our case,httprobeis inside$HOME/go/bin/now, to make all binaries inside of$HOME/go/bindirectory to be available as a command we must add the directory$HOME/go/binin the $PATH variable.
How to add directory to $PATH?
- Go to,
$HOME/.profileor$HOME/.bash_profilefile if you don't have it just open$HOME/.bashrc, these are the configs files forbashterminals which gets executed every time you open a new bash shell. - Go to the last line and add,
PATH="$PATH:$HOME/go/bin"
Don't forget the semicolon in between $PATH and $HOME
The above line does two things, one it pastes the $PATH variable inside the string, two, it concatenates your $HOME/go/bin with the $PATH variable.
It is similar to: PATH=PATH+"/home/john/go/bin"; that we see in popular programming language during concatenation.
After that, save the file and close it. Go to your home directory and run the command: source .bashrc.
Now all the binaries from $HOME/go/bin should be available.
To check if a directory is present in $PATH , just run echo $PATH and check the directory.
*Remember, for a executable to be available system wide $PATH must be set. *
You can repeat the steps to add any executable in the $PATH.
https://www.youtube.com/watch?v=7vuT4TfgSNQ <---- do a reinstall on httprobe 100% work