Git Information Leak
Our task is to leak the .git repository in the root of the website
Navigate to the webpage,
Lets fuzz for directories using ffuf
command:ffuf -u "http://ptl-3a97c3b0-95f590be.libcurl.so/FUZZ" -w /usr/share/wordlists/dirb/common.txt -e .zip,.sql,.php,.phtml,.bak,.backup
Well, we can see the .git repo
To dump this repository, we’ll be using a tool called git-dumper
To install
python -m venv venv
source venv/bin/activate
pip3 install git-dumper
So, we can specify the url and also the directory we want the result to be outputted to
command:git-dumper http://pilgrimage.htb/.git output
So, output will be the folder I want the output of the command to be saved to
Now, that we’ve dumped the repository, lets look for the key
Submitting the key,
We have successfully completed this exercise
Git Information Leak II
Our task is to leak the content of the .git repository in the root of the website.
Navigate to the webpage
Lets fuzz for directories using ffuf
command:ffuf -u "http://ptl-9c309c5f-f6c1d169.libcurl.so/FUZZ" -w /usr/share/wordlists/dirb/common.txt -e .zip,.sql,.php,.phtml,.bak,.backup
We can see the .git repository, lets dump this repo using the tool git-dumper
command:git-dumper http://ptl-9c309c5f-f6c1d169.libcurl.so/ vawulence
Now that we have successfully dumped this, lets look for the key
Submitting the key
We have successfully completed this exercise.
That will be all for today
Back To Home