tkosubs

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2021 License: MIT Imports: 21 Imported by: 0

README

TkoSubs

Package version of tko-subs.

Installation

go get github.com/ModNxyz/tko-subs

Usage

See the documentation, or cmd/main.go to know how it should be used.

Credits

© All right reserved.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DnsServer = "8.8.8.8"
	DnsPort   = "53"
)

Functions

func Info

func Info(format string, args ...interface{})

Info function to print pretty output

func PrintResults

func PrintResults(scanResults []DomainScan)

Print results in table form

func ShowUsageOnError

func ShowUsageOnError(e error)

showUsageOnError function as a generic check for error when panic is too aggressive

func WriteResultsToCsv

func WriteResultsToCsv(scanResults []DomainScan, outputFilePath string)

Output results to CSV

Types

type CMS

type CMS struct {
	Name     string `csv:"name"`
	CName    string `csv:"cname"`
	String   string `csv:"string"`
	OverHTTP string `csv:"http"`
}

func LoadProviders

func LoadProviders(recordsFilePath string) []*CMS

Load providers CSV file, which contains service provider data which could be vulnerable.

type Configuration

type Configuration struct {
	DomainsFilePath *string
	RecordsFilePath *string
	OutputFilePath  *string
	TakeOver        *bool
	Githubtoken     *string
	Herokuusername  *string
	Herokuapikey    *string
	Herokuappname   *string
	Domain          *string
	ThreadCount     *int
	DnsServer       *string
	DnsPort         *string
}

type DomainScan

type DomainScan struct {
	Domain       string
	Cname        string
	Provider     string
	IsVulnerable bool
	IsTakenOver  bool
	Response     string
}

func ScanDomain

func ScanDomain(domain string, cmsRecords []*CMS, config Configuration) ([]DomainScan, error)

ScanDomain function to scan for each domain being read from the domains file

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL