• Stars
    star
    142
  • Rank 253,582 (Top 6 %)
  • Language
    Go
  • License
    Apache License 2.0
  • Created over 5 years ago
  • Updated about 4 years ago

Reviews

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

Repository Details

Automatic finder for subdomains vulnerable to takeover. Written in Go, based on @haccer's subjack.

subtake

Build Status

Based on @haccer's subjack script for subdomain takeover recon.

Installation

Requires Go.

go get github.com/jakejarvis/subtake

Usage

Options

  • -f to-check.txt is the path to your list of subdomains to check. One subdomain per line. Required.
  • -t is the number of threads to use. (Default: 10)
  • -a skips CNAME check and sends requests to every URL. (Default: false, but Highly recommended.)
  • -timeout is the number seconds to wait before timing out a check (Default: 10).
  • -o results.txt is a filename to output results to. If the file ends with .json, subtake will automatically switch to JSON format.
  • -v enables verbose mode. Displays all checks including not vulnerable URLs.
  • -c Path to file containing JSON fingerprint configuration. (Default: ./fingerprints.json)
  • -ssl enforces HTTPS requests which may return a different set of results and increase accuracy.

Resources

sonar.sh can be used first to gather a list of CNAMEs collected by Rapid7/scan.io's Project Sonar. This list can then be passed into subtake to return subdomains not in use. sonar.sh is based off of scanio.sh.

fingerprints.json can be modified to add or remove hosted platforms to probe for. Many obscure platforms are included, and removing fingerprints for services that are uninteresting to you can speed up the scan.

If you plan on using a high number of threads to speed the process up, you may need to temporarily raise the ulimit of your shell:

ulimit -a          # show current limit (usually 1024)
ulimit -n 10000    # set waaaaay higher
ulimit -a          # check new limit

After generating a list of all vulnerable subdomains, you can use my collection of domains invoked in bug bounty programs to narrow down valuable targets and possibly get some ca$h monie$$$.

Examples

./sonar.sh 2018-10-27-1540655191 sonar_all_cnames.txt

subtake -f sonar_all_cnames.txt -t 50 -ssl -a -o vulnerable.txt

Subdomain Takeover Tips

Services Checked

  • Amazon S3
  • Amazon CloudFront (no longer vulnerable?)
  • Microsoft Azure
  • Heroku
  • GitHub Pages
  • Fastly
  • Pantheon.io
  • Shopify
  • Tumblr
  • WordPress.com
  • Ghost
  • Surge
  • Statuspage
  • Bitbucket Pages
  • UserVoice
  • Zendesk
  • Brightcove
  • Big Cartel
  • Acquia
  • ReadMe.io
  • MaxCDN
  • Apigee
  • Smugmug

To-Do

  • Integrate sonar.sh into the main Go script as an option instead of input file.
  • All-in-one Docker image to automatically download the latest FDNS Project Sonar file and check for takeover possibilities.
  • Have sonar.sh pull domains to check for from fingerprints.json, instead of hard-coding them.

More Repositories

1

awesome-shodan-queries

๐Ÿ” A collection of interesting, funny, and depressing search queries to plug into shodan.io ๐Ÿ‘ฉโ€๐Ÿ’ป
5,073
star
2

s3-sync-action

๐Ÿ”„ GitHub Action to sync a directory with a remote S3 bucket ๐Ÿงบ
Shell
1,006
star
3

lighthouse-action

๐Ÿ’ก๐Ÿ  GitHub Action for running @GoogleChromeLabs Lighthouse webpage audits
Shell
339
star
4

cloudflare-purge-action

๐Ÿ—‘๏ธ GitHub Action to purge a website's cache via the Cloudflare API
Shell
127
star
5

jarv.is

๐Ÿก My humble abode on the World Wide Web
MDX
89
star
6

datacenter-speed-tests

โšก Test speed and pings to all DigitalOcean, Linode, AWS, GCP, and Vultr regions
Shell
87
star
7

bounty-domains

List of domains in scope for bug bounties (HackerOne, Bugcrowd, etc.)
67
star
8

wait-action

๐Ÿ’ค Very, very simple (and small) action to sleep for an amount of time โ€” 10s, 2m, etc.
Dockerfile
66
star
9

hugo-docker

โœ๏ธ Dockerized Hugo Extended with PostCSS, Babel, Pandoc, and more baked-in. Now with multi-architecture support!
Dockerfile
45
star
10

hugo-build-action

โœ๏ธ Hugo as a GitHub Action. Supports legacy versions back to v0.27 for compatibility.
Dockerfile
34
star
11

kitboga-bank

Mirror of Kitboga's fake bank account repository on BitBucket, please submit new themes there!
CSS
30
star
12

y2k

๐Ÿ’พ Windows Meยฎ, but fully isolated and disposable โ€”ย the way it was meant to be.
Ruby
29
star
13

netlify-plugin-cache

โšก Generic plugin for caching any files and/or folders between Netlify builds
JavaScript
22
star
14

docker-cloudflare-argo

An intermediary between Cloudflare's Argo tunneling service and your local containers/network.
Dockerfile
22
star
15

ios-trackers

Blocklist of tracking domains used by iOS and popular apps.
20
star
16

jakejarvis

hey ๐Ÿ‘‹
JavaScript
17
star
17

cloudflare-ufw-updater

๐Ÿ”ฅ ๐Ÿงฑ UFW rule updater to only allow HTTP and HTTPS traffic from Cloudflare IP address ranges
Shell
16
star
18

simpip

๐ŸŒŽ A very "simple" web server that returns your IP address in plaintext...and literally nothing else.
JavaScript
15
star
19

dotfiles

๐Ÿ’ป My .files
Shell
14
star
20

hugo-mod-twemoji

Twemojis as a plug-and-play module for Hugo sites ๐Ÿ“ฆ
HTML
13
star
21

awesome-first-code

๐Ÿ‘ถ An awesome list for those who are brave enough to share their first programming projects ever. No shame allowed here!
11
star
22

dark-mode

๐ŸŒ“ Super simple CSS theme switching with saved preferences and automatic OS setting detection
HTML
9
star
23

mastodon-installer

๐Ÿฆฃ Mastodon auto-installer for self-hosted instances
Shell
9
star
24

backblaze-b2-action

๐Ÿ”„ GitHub Action to sync a directory with a remote Backblaze B2 bucket ๐Ÿ”ฅ
Shell
9
star
25

mastodon-utils

๐Ÿฆฃ Small opinionated helper scripts, patches, and configs for Mastodon
Shell
8
star
26

firebase-deploy-action

๐Ÿ”ฅ GitHub Action to deploy a static site to Firebase Hosting
Dockerfile
8
star
27

npqueue

Active and queued player list for NoPixel GTA RP server
Go
7
star
28

docker-lamp-php5

Legacy LAMP image with PHP 5.6 (EOL) & MySQL 5.7 on Ubuntu 16.04 Xenial. ๐Ÿšจ Use at your own risk!
Shell
5
star
29

candies

๐Ÿญ๐Ÿฌ Scrabble's flavo[u]r of @candybox2's delicious ฤame ๐Ÿฌ๐Ÿญ
JavaScript
4
star
30

jrvs.io

๐Ÿ”— Personal URL shortener
Shell
4
star
31

spoons

๐Ÿฅ„ Online manager for offline spooning, for and by iD Tech Camps at Princeton University ๐Ÿฏ
HTML
4
star
32

dark-mode-example

๐ŸŒ“ Simple dark mode switching using local storage, OS preference detection, and minimal JavaScript
JavaScript
3
star
33

careful-downloader

๐Ÿ•ต๏ธโ€โ™€๏ธ Downloads a file and its checksums, validates the hash, and optionally extracts it if safe.
JavaScript
3
star
34

docker-tor

๐Ÿง… A very simple Docker image that runs the Tor daemon
Dockerfile
3
star
35

hugo-uno

Personal Hugo boilerplate with Node, PostCSS, Autoprefixer, Netlify, etc.
HTML
2
star
36

tor-proxy-node

[๐Ÿšง VERY WIP] Quickly serve up a Tor proxy of your static clearnet site
JavaScript
2
star
37

stitches-normalize

๐Ÿงต @sindresorhus's modern-normalize.css as a plug-and-play JavaScript object compatible with Stitches.
TypeScript
2
star
38

comp40

COMP 40 at Tufts CS โ€“ย Machine Structure & Assembly Language Programming
C
2
star
39

twemoji-emojis

๐Ÿ“ฆ A very simple NPM package that downloads Twemoji emojis (PNG and SVG)
JavaScript
2
star
40

phood

Photos of nearby phood. Group project for COMP 20 @tuftsdev, abandoned as of Spring 2015.
JavaScript
2
star
41

imagemoji

๐Ÿ–ผ๏ธ Replaces emojis in strings or DOM nodes with corresponding images
TypeScript
2
star
42

hass-config

My personal Home Assistant configuration ๐Ÿก
Python
1
star
43

dmnsrch.mobi

Quickly check domain name availability from your mobile device.
PHP
1
star
44

onlinenow

Facebook app that displays your online friends while you stay offline and invisible.
JavaScript
1
star
45

my-first-website

<marquee>My terrible, horrible, no good, very bad first website, circa 2001. ๐Ÿ‘ถ๐Ÿป</marquee>
HTML
1
star
46

website-stats

๐Ÿ“ˆ Daily snapshots of my website's hit counter data
JavaScript
1
star
47

JoeyTracker

iOS app for tracking shuttle buses at Tufts University. Abandoned as of 2016.
Objective-C
1
star
48

get-canonical-url

๐Ÿ”— Determines the current page's canonical URL and optionally normalizes it for consistency.
TypeScript
1
star
49

rsa-locksmith

Teeny tiny script to brute-force passphrases of RSA private keys ๐Ÿ”‘
Shell
1
star
50

synonyms-for-awesome

๐Ÿ‘ฉโ€๐Ÿซ Making adjectives meritorious, exemplary, and supercalifragilisticexpialidocious again.โ„ข
HTML
1
star
51

jbb

A PHP bulletin board creatively titled Jake's Bulletin Board, circa 2003. (My first full coding project ever โ€“ย complete with bugs and security holes and horrendous style!)
PHP
1
star
52

simple-anchor

๐Ÿ”— A bare-bones fork of AnchorJS.
JavaScript
1
star
53

node-module-template

Just a personal NPM/browser module boilerplate to my liking, probably not very useful to anybody else. ๐Ÿ˜Š
TypeScript
1
star