• Stars
    star
    133
  • Rank 272,600 (Top 6 %)
  • Language
    Ruby
  • License
    MIT License
  • Created over 8 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

vcsmap is a plugin-based tool to scan public version control systems for sensitive information.

vcsmap

vcsmap is a plugin-based tool to scan public version control systems (currently GitHub and possibly Gitlab soon) for sensitive information like access tokens and credentials.

vcsmap screenshot

Installation

Install the package wity RubyGems.

$ gem install vcsmap

Usage

vcsmap already includes a couple of plugins. Each plugin looks for files that match a certain search query, and extracts the right data from those files. To view all plugins run:

$ vcsmap list

To use a plugin, look up the name of the plugin ([plugin_name]) and run the following command. Data is saved in CSV format to the output directory.

To authenticate with Github you need to set a GITHUB_COOKIE environment variable with a valid Github user_session cookie value.

$ vcsmap run {plugin_name} {pages} {--no-ascii}
  • You need to specify the amount of pages you want to search. Each (GitHub) page has 10 possible results.
  • Use the --no-ascii flag (last) to disable rendering the results as an ASCII table in the command line.

Plugin development

To add a new plugin, create an entry for it in lib/plugin_list.rb and create a new plugin class that extends Vcsmap::Plugin::BasePlugin in lib/plugins.

Each plugin has a @search_string that is used to search for matching files, and a couple of regex matchers to extract the needed data. Of course you don't need to use regex, it's also possible to parse the file (e.g. with JSON), as long as your plugin returns a valid table_header and matching credentials.

The easiest way to develop a new plugin is to copy an simple existing one (like lib/plugins/solr_dataconfig.rb) and modify it until it fits your requirements. Need inspiration? Check out techgaun/github-dorks!.

DISCLAIMER

Using the data obtained by this tool to gain unauthorized to access computer systems or services is ILLEGAL and therefore punishable by law. The author of this tool is not responsible for any damage caused by use/abuse of this tool.

More Repositories

1

subresolve

Resolve and quickly portscan a list of (sub)domains.
Ruby
85
star
2

osx-proxy

Turn any SSH server into a SOCKS proxy and auto-enable it in OS X.
Shell
33
star
3

hacker-actor

Hacker Actor generates random hacker quotes so you can sound just like one.
HTML
32
star
4

BurpToggle

Status bar application for OS X to toggle the state of the system HTTP/HTTPS proxy.
Swift
23
star
5

unhttpx

Turns a list of URLs into hostnames.
Go
16
star
6

mac-setup

Setup script for a new macOS machine. Includes UNIX tools, latest Ruby and Elixir, software and sane defaults.
Shell
9
star
7

maildrop

Ruby interface to MailDrop for quick, disposable mailboxes.
Ruby
5
star
8

tweet_to_gif

CLI tool to download GIF files from tweets.
Ruby
5
star
9

fling-save

Fling Save lets you save Fling images and videos.
3
star
10

securitytools

Repository with security tools I used to use as a hacker.
Shell
3
star
11

protonmail-themes

Website for ProtonMail themes.
CSS
3
star
12

apache2-scripts

Additional scripts for apache2
Shell
2
star
13

melvinsh

GitHub profile README repository.
2
star
14

steam_ladder

Ruby wrapper to access the Steam Ladder API at https://steamladder.com/api/.
Ruby
2
star
15

brexit-to-breakfast

Chrome extension that replaces 'Brexit' with 'Breakfast' on all websites.
JavaScript
2
star
16

ios-frida-guide

Basic instructions on how to use Frida with iOS.
1
star
17

random_puppy

Get a URL to a random puppy image.
Elixir
1
star
18

DropVPN

Easily turn a DigitalOcean droplet in a VPN for tunnelling.
Shell
1
star
19

git-pwn

1
star
20

asn

Super simple ASN to list of associated subnets lookup.
Go
1
star
21

trump-to-duck

Make the internet great again with this extension that replaces all text occurrences of Donald Trump with Donald Duck.
JavaScript
1
star
22

debug_html

Save HTML to a temporary file and open it in a browser for inspection, like capybara's save_and_open_page
Ruby
1
star
23

ip2asn

A command-line tool to look up the ASN of one or more IPv4 or IPv6 addresses.
Go
1
star
24

multiwhois

Go package for querying and parsing domain information from WHOIS servers.
Go
1
star