Skip to content

Instantly share code, notes, and snippets.

@LyftGalactic
LyftGalactic / github_bugbountyhunting.md
Created May 2, 2019 07:47 — forked from 0xbharath/github_bugbountyhunting.md
My tips for finding security issues in GitHub projects.

GitHub for Bug Bounty Hunters

GitHub repositories can disclose all sorts of potentially valuable information for bug bounty hunters. The targets do not always have to be open source for there to be issues. Organization members and their open source projects can sometimes accidentally expose information that could be used against the target company. in this article I will give you a brief overview that should help you get started targeting GitHub repositories for vulnerabilities and for general recon.

Mass Cloning

You can just do your research on github.com, but I would suggest cloning all the target's repositories so that you can run your tests locally. I would highly recommend @mazen160's GitHubCloner. Just run the script and you should be good to go.

$ python githubcloner.py --org organization -o /tmp/output
@LyftGalactic
LyftGalactic / find-aws-region.py
Created May 2, 2019 07:47
A quick script to determine AWS Region from IP Address
from ipaddress import ip_network, ip_address
import json
import requests
import sys
def find_aws_region():
ip_json = requests.get('https://ip-ranges.amazonaws.com/ip-ranges.json')
#ip_json = json.load(open('ip-ranges.json'))
ip_json = ip_json.json()
prefixes = ip_json['prefixes']
@LyftGalactic
LyftGalactic / flag.txt
Created May 2, 2019 07:44
LyftGalactic github gist
NullBlrCtf{18_Ew6yEMyOQKTvoTrzdcy9kHLad6ihWi09}