tillson / git-hound

Reconnaissance tool for GitHub code search. Scans for exposed API keys across all of GitHub, not just known repos and orgs.
MIT License
1.19k stars 184 forks source link

Guide for Installation and Running #31

Closed Molive-cell closed 2 years ago

Molive-cell commented 4 years ago

Dear Team, could you please provide a step by step guidelines of installing and running this application in Kali linux.

MastinGood commented 4 years ago

and also in windows when i try to run this echo "\"tillsongalloway.com\"" | git-hound it always says 'git-hound' is not recognized as an internal or external command, operable program or batch file.

tillson commented 4 years ago

YouTube video coming this weekend, but in the meantime:

  1. Download latest version of GitHound for Linux systems at https://github.com/tillson/git-hound/releases (with wget [url] or from the web browser).
  2. Decompress the download with tar -xzf [filename]. You may have to navigate to the Downloads folder with cd first.
  3. cd into the now decompressed folder, and run ./git-hound to test. You may need to create a config.yml file with the proper fields (see the README).

Let me know if you have any questions

amanchawla97 commented 4 years ago

even after putting config.yml it shows config.yml not found

tillson commented 4 years ago

@amanchawla97 Could you send a pic of ls in the directory that you're running githound from?

amanchawla97 commented 4 years ago

Yes Sure please find the attached screenshot config

tillson commented 4 years ago

Can you show me the error when you try to run githound as well?

amanchawla97 commented 4 years ago

Screenshot 2020-06-17 07:49:05

JeremyCBrooks commented 4 years ago

@amanchawla97 , how did you install git-hound? Your first screenshot shows the source code but no binary. Try putting your config.yml in ~/.githound.

tillson commented 4 years ago

For the config.yml issue, let's move discussion over to https://github.com/tillson/git-hound/issues/32.

Dejavu610 commented 2 years ago

YouTube video coming this weekend, but in the meantime:

  1. Download latest version of GitHound for Linux systems at https://github.com/tillson/git-hound/releases (with wget [url] or from the web browser).
  2. Decompress the download with tar -xzf [filename]. You may have to navigate to the Downloads folder with cd first.
  3. cd into the now decompressed folder, and run ./git-hound to test. You may need to create a config.yml file with the proper fields (see the README).

Let me know if you have any questions

Dear team: I installed the git-hound with 'git clone https://github.com/tillson/git-hound', and it always says 'git-hound' is not recognized as an internal or external command, which is same with @amanchawla97 . could you please provide a step by step guidelines? Did I need to install golang first?

tillson commented 2 years ago

"git-hound" will only be recognized as a command if you add the binary to your $PATH variable. If it's not in your $PATH, you should run "./git-hound" while in the same directory as the binary.

infosecjunky commented 2 years ago

Screenshot 2020-06-17 07:49:05

Instead of this I have tried it like echo "joor.com" | ./git-hound if you have updated the user and password in the config.yml it will work.

ashirali110 commented 2 years ago

Hello Everyone, I am not able to install git-hound can you please guide me and also facing this issue. Please resolve it as soon as possible its a urgent task. error

ashirali110 commented 2 years ago

I am using Linux (Redhat) Please help me to configure it I just want to install and configure it.

ashirali110 commented 2 years ago

can someone send me the steps to do complete installation of git-hound.

ashirali110 commented 2 years ago

Is it possible to integrate git-hound with Jenkins pipeline?

infosecjunky commented 2 years ago

Is it possible to integrate git-hound with Jenkins pipeline?

Never tried it

infosecjunky commented 2 years ago

Hello Everyone, I am not able to install git-hound can you please guide me and also facing this issue. Please resolve it as soon as possible its a urgent task. error

did you check config.yml file?

tillson commented 2 years ago

@ashirali110

Try making a file called config.yml with the contents of this file: https://github.com/tillson/git-hound/blob/master/config.example.yml.

As for Jenkins, we don't have any integrations out of the box (although it is possible). I also am curious as to what use case you have for putting this in a Jenkins pipeline... I assume you're scanning new commits for secrets, in which case you may want to try https://github.com/trufflesecurity/trufflehog which is better at scanning single repositories/users/orgs for secrets (Githound is better for scanning all of GitHub when you don't have any guarantees about users or orgs) and has a Jenkins guide at https://github.com/trufflesecurity/trufflehog

infosecjunky commented 2 years ago

@ashirali110

Try making a file called config.yml with the contents of this file: https://github.com/tillson/git-hound/blob/master/config.example.yml.

As for Jenkins, we don't have any integrations out of the box (although it is possible). I also am curious as to what use case you have for putting this in a Jenkins pipeline... I assume you're scanning new commits for secrets, in which case you may want to try https://github.com/trufflesecurity/trufflehog which is better at scanning single repositories/users/orgs for secrets (Githound is better for scanning all of GitHub when you don't have any guarantees about users or orgs) and has a Jenkins guide at https://github.com/trufflesecurity/trufflehog

Thanks for the information.

ashirali110 commented 2 years ago

Hi @infosecjunky and @tillson my config.yml is same as the repo you have send I want to ask that do I have to change the content in the config.yml file with my username and password?

ashirali110 commented 2 years ago

My config.yml is present there in git-hound directory now what are the next steps can you please explain?

infosecjunky commented 2 years ago

Hi @infosecjunky and @tillson my config.yml is same as the repo you have send I want to ask that do I have to change the content in the config.yml file with my username and password?

Yes you need to put your username and password for it to work.

Screenshot 2022-05-26 at 14 32 50
ashirali110 commented 2 years ago

@infosecjunky I have checked with that also but it did not work

ashirali110 commented 2 years ago

If you have time can we have a call on teams or some other platform because I am not able to understand it how to do configurations.

infosecjunky commented 2 years ago

can you share a screenshot of the error your getting

ashirali110 commented 2 years ago

image

This is the same error getting after changing our username and password

infosecjunky commented 2 years ago

image

This is the same error getting after changing our username and password

Can you check if your files are in the right place like this

Screenshot 2022-05-26 at 14 48 57

?

ashirali110 commented 2 years ago

@infosecjunky yes we have the same files which you have but still not able to do it :(

infosecjunky commented 2 years ago

@infosecjunky yes we have the same files which you have but still not able to do it :(

is the user and password in double quotes?

ashirali110 commented 2 years ago

@infosecjunky yes they have

ashirali110 commented 2 years ago

do we have to give our bitbucket or github credentials?

infosecjunky commented 2 years ago

do we have to give our bitbucket or github credentials?

I have tested only on github. Never tried gitbucket

ashirali110 commented 2 years ago

But when we have installed git-hound we dont see any git-hound script but apart of that we have every file.

image

ashirali110 commented 2 years ago

image we are having these files only

infosecjunky commented 2 years ago

image we are having these files only

Can you try to rename config.example.yml to something else. Maybe it might work

ashirali110 commented 2 years ago

But I have one other folder name go in that i have that git-hound script I have moved it to git-hound is that the correct thing?

ashirali110 commented 2 years ago

image we are having these files only

Can you try to rename config.example.yml to something else. Maybe it might work

yes i will do it

infosecjunky commented 2 years ago

But I have one other folder name go in that i have that git-hound script I have moved it to git-hound is that the correct thing?

can you remove everything. Download it fresh remane config.example.yml to config.yml and check?

ashirali110 commented 2 years ago

From where we can download it fresh the best link do you have?

infosecjunky commented 2 years ago

From where we can download it fresh the best link do you have?

the same link your using to download it https://github.com/tillson/git-hound.git

ashirali110 commented 2 years ago

image

In this which we should download we are using linux Redhat

infosecjunky commented 2 years ago

image

In this which we should download we are using linux Redhat

if you have 64 bit then you should download 64 bit one

ashirali110 commented 2 years ago

Thanks that error resolved now getting new error. Could you please guide on it?

image

ashirali110 commented 2 years ago

image

This is my config.yml file

ashirali110 commented 2 years ago

I have put double quotation also and still not working.

infosecjunky commented 2 years ago

I have put double quotation also and still not working.

echo "tillsongalloway.com" | ./git-hound try that

ashirali110 commented 2 years ago

image

ashirali110 commented 2 years ago

getting this error

infosecjunky commented 2 years ago

image

Your github account details is wrong thats why its unable to do it.