Skip to content

Instantly share code, notes, and snippets.

@YourFriendCaspian
Forked from jmi4/gist:243a31799befcf36a547
Last active August 2, 2024 03:56
Show Gist options
  • Save YourFriendCaspian/1c702e5b9bae1664a9da78794a94d3eb to your computer and use it in GitHub Desktop.
Save YourFriendCaspian/1c702e5b9bae1664a9da78794a94d3eb to your computer and use it in GitHub Desktop.
Install Gitrob on Kali
##Installation of gitrob a tool used to crawl a github org for sensitive info
## I have done this on kali linux
$ git clone https://github.com/michenriksen/gitrob
$ cd gitrob
$ apt-get update
$ apt-get install ruby-bcrypt ruby2.1-dev postgresql-server-dev-9.1 -y
$ gem install bundler
$ gem install gitrob
$ /etc/init.d/postgresql restart
$ su postgres
$#psql -U postgres
$#template1>CREATE DATABASE gitrob;
$#template1>CREATE USER gitrob WITH PASSWORD 'gitrob';
$#template1>GRANT ALL PRIVILEGES ON DATABASE gitrob to gitrob;
$#template1>\q
$#Ctrl+D
$gitrob --configure
Enter PostgreSQL hostname: |localhost|
Enter PostgreSQL port: |5432|
Enter PostgreSQL username: gitrob
Enter PostgreSQL password for gitrob (masked): gitrob
Enter PostgreSQL database name: |gitrob|
Enter GitHub access tokens (blank line to stop):
<token from github>
$ gitrob -o fbi
@UdayGoudDevOps
Copy link

Enter GitHub access tokens (blank line to stop):

After the above step it never ends. If i click enter, it gives Loading configuration... done
[*] Preparing database... failed
[!] Sequel::DatabaseConnectionError: PG::ConnectionBad: FATAL: Ident authentication failed for user "gitrob"

can you please help me out to resolve this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment