Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bash: httprobe: command not found #30

Open
harshinsecurity opened this issue May 9, 2020 · 13 comments
Open

bash: httprobe: command not found #30

harshinsecurity opened this issue May 9, 2020 · 13 comments

Comments

@harshinsecurity
Copy link

i can't able to use httprobe.i think this issue is due to go but can't able to the fix.
httprobe

tool_saved

@geeknik
Copy link

geeknik commented May 9, 2020

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

@teranpeterson
Copy link

Same issue
Screenshot_2020-05-11_23-16-27

@tomnomnom
Copy link
Owner

tomnomnom commented May 12, 2020

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.

@S1rRV
Copy link

S1rRV commented May 13, 2020

@tomnomnom Same issue, as you can see, $GOPATH/bin is already in my path

image

@S1rRV
Copy link

S1rRV commented May 13, 2020

The error:
image

all.txt contains data, I double checked

Also,
image

@marcelo321
Copy link

After adding it to .bashrc you need to update it with source ~/.bashrc

@da7om85
Copy link

da7om85 commented Jun 6, 2020

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

@ghost
Copy link

ghost commented Jun 12, 2020

@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

@Iamsajidkhan
Copy link

Iamsajidkhan commented Jun 14, 2020

@harsh-kk @mavr1k7 @S1rRV @da7om85

  1. Go to httprobe folder.
  2. Type go build
  3. Then type ls and you will find new httprobe binary .
  4. Then type cat domain.txt | httprobe it will work fine.

@WyvernDrexx
Copy link

WyvernDrexx commented Jul 20, 2020

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"

@GhanaianHackLord
Copy link

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"

Some of us are noobs in this env..Can you please put all the things here step by step

@WyvernDrexx
Copy link

WyvernDrexx commented Sep 8, 2020

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"

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,

  1. When you are trying to install binary like, go get -u github.com/tomnomnom/httprobe the main binary in this case httprobe will be available inside $HOME/go/bin. Here $HOME is equal to your relative home directory from root. Suppose your username is john then, your $HOME is /home/john/ which means, $HOME/go/bin is /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.
  2. Your $PATH variable is an environment variable i.e. it will be available throughout your system. If you want httprobe to be available globally as a command then, you need to put the path of the binary in $PATH variable.
    In our case, httprobe is inside $HOME/go/bin/ now, to make all binaries inside of $HOME/go/bin directory to be available as a command we must add the directory $HOME/go/bin in the $PATH variable.

How to add directory to $PATH?

  1. Go to, $HOME/.profile or $HOME/.bash_profile file if you don't have it just open $HOME/.bashrc, these are the configs files for bash terminals which gets executed every time you open a new bash shell.
  2. 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.

@abumaryamrahmat
Copy link

abumaryamrahmat commented Jul 27, 2023

https://www.youtube.com/watch?v=7vuT4TfgSNQ <---- do a reinstall on httprobe 100% work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests