GithubHelp home page GithubHelp logo

xdooms3333 / get-git Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jkingsman/get-git

0.0 0.0 0.0 3.64 MB

Chrome extension that spots web accessible Git repos.

License: MIT License

CSS 1.40% HTML 43.51% JavaScript 55.09%

get-git's Introduction

This project is deprecated and no longer maintained. Please use Bishop, the successor to Get Git (which contains all Get Git's functionality and more).

Get Git

Get Git is a Chrome extension that lets you know when you're on a site with a misconfigured, web accessible .git directory.

Image of Chrome Store Badge

What It Is

Inspired by this set of slides by Vlatko Kostujak, I wondered how many websites I browsed each day that had misconfigured Git repos with a web accessible .git -- meaning I had full access to their source code, past and present.

I wasn't interested in nmapping every site I browsed, but what I didn't mind was a few exta 404's on the sites I visited - thus Get Git was born.

Get Git combs websites that you browse, looking for exposed .git directories. By looking for the files that should be in a .git directory, and not the directory itself, it can find repos even if directory listing is turned off. If it finds one, it optionally alerts the user and saves the URL for later viewing (visible on the extension's Options page). If, for some reason, you happen to browse extremely high volumes of vulnerable sites, Get Git supports exporting the list of sites in JSON for processing by other utilities.

This extension was built to run quietly in the background, but on the recursive option, it does traverse websites from the current URL all the way back to the web root, potentially leading to a number of 404's and background XHR requests. If this isn't okay with you, you can disable the recursive searching (or, if you're in a metered data usage environment, disable the extension easily throgh the options page or the popup window).

Criteria for a Repo

For an URL to be entered as a repo, it must meet all of the following criteria:

  • an HTTP 200 response to a request for .git/HEAD
  • the presence of the string "ref: " in that response
  • an HTTP 200 response to a request for .git/config
  • the presence of the string "[core]" in that response

License

MIT


Flattr this

get-git's People

Contributors

jkingsman avatar rodrigograca31 avatar

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.