
Git Scanner Framework is a tool can scan websites with open .git
repositories for Bug Hunting
/ Pentesting Purposes
and can dump the content of the .git
repositories from webservers that found from the scanning method. This tool works with the provided Single target or Mass Target from a file list.
Installation of Git Scanner
- git clone https://github.com/HightechSec/git-scanner
- cd git-scanner
- bash gitscanner.sh
or you can install in your system like this
- git clone https://github.com/HightechSec/git-scanner
- cd git-scanner
- sudo cp gitscanner.sh /usr/bin/gitscanner && sudo chmod +x /usr/bin/gitscanner
- $ gitscanner
Git Scanner Usage
- Menu's
- Menu
1
is for scanning and dumping git repositories from a provided file that contains thelist of the target url
or a providedsingle target url
. - Menu
2
is for scanning only a git repositories from a provided file that contains thelist of the target url
or a providedsingle target url
. - Menu
3
is for Dumping only the git repositories from a provided file that containslist of the target url
or a providedsingle target url
. This will work for theMaybe Vuln
Results or sometimes with a repository that had directory listing disabled or maybe had a403 Error Response
. - Menu
4
is for Extracting files only from a Folder that had .git Repositories to a destination folder
- Menu
- URL Format
- Use
http://
likehttp://example.com
orhttps://
likehttps://example.com
for the URL formatting - Make sure to use this format in the files that contains the list of the possible target that you have, Example:
- Use
- Extractor
- When using Extractor, make sure the location of the git repositories that you select is correct. Remember, The first option is for inputting the
Selected git repository
and the second option is for inputting theDestination folder
- When using Extractor, make sure the location of the git repositories that you select is correct. Remember, The first option is for inputting the
Requirements
- curl
- bash
- git
- sed
Todos
- Creating a
Docker Images
if it's possible Adding Extractor on the next VersionAdded in version 1.0.2#beta but still experimental.- Adding
Thread ProcessingMulti Processing (Bash doesn't Support Threading
)
Changelog
All notable changes to this project listed in this file
Credits
Thanks to:
Author

- Hakin9 is a monthly magazine dedicated to hacking and cybersecurity. In every edition, we try to focus on different approaches to show various techniques - defensive and offensive. This knowledge will help you understand how most popular attacks are performed and how to protect your data from them. Our tutorials, case studies and online courses will prepare you for the upcoming, potential threats in the cyber security world. We collaborate with many individuals and universities and public institutions, but also with companies such as Xento Systems, CATO Networks, EY, CIPHER Intelligence LAB, redBorder, TSG, and others.
Latest Articles
Blog2022.12.13What are the Common Security Weaknesses of Cloud Based Networks?
Blog2022.10.12Vulnerability management with Wazuh open source XDR
Blog2022.08.29Deception Technologies: Improving Incident Detection and Response by Alex Vakulov
Blog2022.08.25Exploring the Heightened Importance of Cybersecurity in Mobile App Development by Jeff Kalwerisky
Subscribe
0 Comments