

GitHub - haccer/subjack: Hostile Subdomain Takeover tool written in Go
source link: https://github.com/haccer/subjack
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

subjack
Subjack is a Subdomain Takeover tool written in Go designed to scan a list of subdomains concurrently and identify ones that are able to be hijacked. With Go's speed and efficiency, this tool really stands out when it comes to mass-testing. Always double check the results manually to rule out false positives.
Subjack will also check for subdomains attached to domains that don't exist (NXDOMAIN) and are available to be registered. No need for dig ever again! This is still cross-compatible too.
What's New? (Last Updated 09/17/18)
- Custom fingerprint support
- New Services (Re-added Zendesk && Added Readme, Bitly, and more)
- Slight performance enhancements
Installing
Requires Go
go get github.com/haccer/subjack
How To Use:
Examples:
./subjack -w subdomains.txt -t 100 -timeout 30 -o results.txt -ssl
Options:
-d test.com
if you want to test a single domain.-w domains.txt
is your list of subdomains.-t
is the number of threads (Default: 10 threads).-timeout
is the seconds to wait before timeout connection (Default: 10 seconds).-o results.txt
where to save results to. For JSON:-o results.json
-ssl
enforces HTTPS requests which may return a different set of results and increase accuracy.-a
skips CNAME check and sends requests to every URL. (Recommended)-m
flag the presence of a dead record, but valid CNAME entry.-v
verbose. Display more information per each request.-c
Path to configuration file.
Practical Use
You can use scanio.sh which is kind of a PoC script to mass-locate vulnerable subdomains using results from Rapid7's Project Sonar. This script parses and greps through the dump for desired CNAME records and makes a large list of subdomains to check with subjack if they're vulnerable to Hostile Subdomain Takeover. Of course this isn't the only method to get a large amount of data to test. Please use this responsibly ;)
Adding subjack to your workflow
package main
import (
"fmt"
"encoding/json"
"io/ioutil"
"strings"
"github.com/haccer/subjack/subjack"
)
func main() {
var fingerprints []subjack.Fingerprints
config, _ := ioutil.ReadFile("custom_fingerprints.json")
json.Unmarshal(config, &fingerprints)
subdomain := "dead.cody.su"
/* Use subjack's advanced detection to identify
if the subdomain is able to be taken over. */
service := subjack.Identify(subdomain, false, false, 10, fingerprints)
if service != "" {
service = strings.ToLower(service)
fmt.Printf("%s is pointing to a vulnerable %s service.\n", subdomain, service)
}
}
See the godoc for more functions.
Q: What should my wordlist look like?
A: Your wordlist should include a list of subdomains you're checking and should look something like:
assets.cody.su
assets.github.com
b.cody.su
big.example.com
cdn.cody.su
dev.cody.su
dev2.twitter.com
References
Extra information about Hostile Subdomain Takeovers:
Recommend
-
243
README.md SubOver Subover is a Hostile Subdomain Takeover tool originally written in python but rewritten from scratch in Golang. Since it's redesign, it has been aimed with speed and efficienc...
-
170
README.md Subzy Subdomain takeover tool which works based on matching response fingerprings from
-
37
The Tiles service Microsoft introduced with Windows 8 has never been particularly successful. Microsoft has disabled a web service for the system but forgot to delete nameserver entries. This made the host vulnerable for...
-
9
How-To How to avoid subdomain takeover in Azure environments Active but unused subdomains in Microsoft Azure give attackers the opportunity to use them for...
-
8
DNSTake A fast tool to check missing hosted DNS zones that can lead to subdomain takeover. What is a DNS takeover? DNS takeover vulnerabilities occur when a subdomain (subdomain.example.com) or domain has its au...
-
17
Musk Backing Off Twitter Board Opens Door To Hostile Takeover 7145 members Technology The latest news, reviews and f...
-
4
Listen to this articleShare this articleCopiedFollow the authors@turnergs+ Get alerts for
-
9
Elon Musk offers to buy Twitter in $43 billion hostile takeover bid“I now realize the company will neith...
-
10
Elon Musk Launches Hostile Takeover Bid for Twitter Published April 14, 2022 By Andrew Hu...
-
7
Home ...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK