The .Git Sensitive Expose Finder is a tool designed to identify exposed .git/HEAD files across a list of URLs. This can help identify potential repositories that have been improperly configured and may contain sensitive information. When a .git/HEAD file is found, it indicates the presence of a Git repository that might expose more critical files. The tool uses basic HTTP requests to check for the presence of .git/HEAD and checks for 200 OK responses, as well as other status codes like 404 and Bad Requests.
The tool helps security researchers and penetration testers to spot potential vulnerabilities in web applications or websites. For further exploitation, you can use Git Dumper to retrieve all files within an exposed Git repository.
To use this tool, you will need the following Python libraries:
requestscoloramaurllib3
To install the required dependencies, you can use the requirements.txt:
pip install -r requirements.txtAlternatively, you can manually install the dependencies with:
pip install requests colorama urllib3-
Prepare your list of URLs: Create a
.txtfile (e.g.,list.txt) that contains the list of URLs you want to check. Each URL should be on a new line. -
Run the tool: Use the following command to start the tool:
python3 main.py
-
Enter the filename: When prompted, enter the name of your URL list file (e.g.,
list.txt):================================ Made by Rajexploit404 ================================ Enter filename (e.g., 1.txt or 4.txt): list.txt -
Output: The tool will display the results for each URL, indicating whether
.git/HEADwas found or not. If a valid.git/HEADis found, it will be saved tofound.txt. A successful result would look like:http://sequoiahotel.net - 200 OK - ref: refs/ found http://dev.to - 404 Not Found - File .git/HEAD not found http://www.goingnet.com.tw - 200 OK - ref: refs/ foundAt the end of the process, all found URLs with
200 OKresponses will be saved tofound.txt. -
Further Exploitation: If you wish to further exploit the exposed
.gitrepositories, you can use Git Dumper to dump all the sensitive information from the.gitfolder. Visit the Git Dumper repository for further details on how to use it:
This tool is for educational purposes only. Use it responsibly and only on systems you have permission to test.
- Title:
.Git Sensitive Expose Finder - Description: Explains the tool's functionality and what it is used for.
- Requirements: Lists dependencies and installation instructions.
- Usage: Provides detailed steps for running the tool and interpreting the results.
- Further Exploitation: Introduces the
Git Dumpertool for further exploitation if needed. - License: Notes that this tool is for educational purposes only.