gitrip

command module
v1.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2025 License: MIT Imports: 4 Imported by: 0

README

GitRip

Download exposed .git repositories from web servers.
Testing and feedback are welcome, feel free to open an issue.

Installation

go install github.com/unsecured-company/gitrip@latest

The repository also contains a Makefile that builds for all major platforms and architectures.

Usage

# Three main commands
gitrip fetch   #Fetch URL or batch file of URLs
gitrip check   #Check URL or batch file of URLs
gitrip index   #List files from .git/index

# Examples
gitrip check --file domains.txt >valid.txt 2>errors.log
gitrip fetch unsecured.company
gitrip fetch https://unsecured.company/admin/
gitrip index dumps/unsecured.company/.git/index

# Add completion in Bash
gitrip completion bash | sudo tee /etc/bash_completion.d/gitrip > /dev/null

Notes

GitRip does not run git checkout automatically after downloading.
This is intentional for easier cross-platform compatibility and reduce storage usage.

TODO

  • Add support for a simple wget-style download 🙂
  • Proxy support
  • Detect and handle stale/slow downloads
  • Follow redirects and display the final URL
  • Identify if HTTP and HTTPS point to the same resource and use only one
  • Context, signal catching
  • Tag parsing

Acknowledgments

Disclaimer

This tool is for educational and legal use only.
Do not use it without proper authorization from the data owner.

Support

If you find GitRip useful, feel free to support my work.

BTC bc1qv79sm8zp70jsqa4dpweqeg9g2lpyplfszhqzyl

ETH 0x7A0ac7852258578cc57635206959C848A53413a4

SOL C7YKx3AUaqFGA5QafhTy7vQZVtUqiJAUP9N9nzkV2oA9

XMR 85aHby9N8zRKJFvkR1sEqoAhsq3hm3XpKGNDwEozGhLkN7sfKKMLkx1KdgtxHxmJR44gHmV6MrYZPbgPLQQso4hCKMRVRmE

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
fs
git

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL