Code Monkey home page Code Monkey logo

xgit's Introduction

X-GIT

img

Scan for exposed git repositories.

Usage:

-h, --help                     Show this help
-t, --thread      NBR          Number of threads (default 50)
-o, --output      FILE         Output file (default found_git.txt)
-d, --check-date  DATE         Only repo after date (mm-dd-yyyy, yyyy, mm-yyyy)
-i, --input       FILE         Input file
-k, --insecure                 Ignore certificate errors
-T, --timeout     SEC          Set timeout (default 5s)
-u, --user-agent  USR-AGENT    Set user agent
-p, --proxy       PROXY        Use proxy (proto://ip:port)
-V, --version                  Print version and exit

Examples:

$ xgit -i top-alexa.txt
$ xgit -i top-alexa.txt -k -d 2021
$ xgit -p socks5://127.0.0.1:9050 -o good.txt -i top-alexa.txt -t 60

Example of input file:

google.com
github.com
domain.com/code

note: domain in list shouldn't have protocol in them:

req, err := http.NewRequest("GET", "https://"+url+"/.git/", nil)

OUTPUT FILE:

Urls with [nd] prefix are exposed git repository but without directory listing.

STDOUT

In stdout urls in cyan are git repository where directory listing is enable and yellow ones are when directory listing is disable.

WARNING

Do not use too much threads or you will DOS yourself.

Install:

With one liner if $GOROOT/bin/ is in $PATH:

go install github.com/mmpx12/xgit@latest

or from source with:

git clone https://github.com/mmpx12/xgit.git
cd xgit
make
sudo make install
# or 
sudo make all

for termux you can do:

git clone https://github.com/mmpx12/xgit.git
cd xgit
make
make termux-install
# or
make termux-all

There is also prebuild binaries here.

xgit's People

Contributors

mmpx12 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

xgit's Issues

xgit

Is it possible to scan for a (.json) file?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.