Documentation ¶
Overview ¶
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
Copyright © 2023 Harsh Varagiya ¶
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Index ¶
- Constants
- func CheckInputParameters()
- func CheckRegionRegex()
- func Execute()
- func GetJARMFingerprint(remote string) (string, error)
- func GrabServerHeaderForRemote(remote string) (string, error)
- func JARMFingerprintEnrichment(ctx context.Context, rawResultChan chan *CertResult, enrichmentThreads int, ...) chan *CertResult
- func JarmFingerprintEnrichmentThread(ctx context.Context, rawResultChan, enrichedResultChan chan *CertResult, ...)
- func PerformOutputChecks()
- func PerformPreRunChecks(checkRegion bool)
- func PrintProgressToConsole(refreshInterval int)
- func RunScan(cidrChan chan string)
- func SaveResultsToDisk(resultChan chan *CertResult, resultWg *sync.WaitGroup, outFile *os.File, ...)
- func ScanCertificatesInCidr(ctx context.Context, cidrChan chan string, ports []string, ...)
- func ScanCloudServiceProvider(ctx context.Context, csp string, cloudServiceProvider CidrRangeInput)
- func ServerHeaderEnrichment(ctx context.Context, rawResultChan chan *CertResult, enrichmentThreads int, ...) chan *CertResult
- func ServerHeaderEnrichmentThread(ctx context.Context, rawResultChan, enrichedResultChan chan *CertResult, ...)
- func SplitCIDR(cidrString string, suffixLenPerGoRoutine int, cidrChan chan string) error
- func SplitRemoteAddr(remote string) (host string, port int)
- func Summarize(start, stop time.Time)
- func UpdateLogLevel()
- type AWS
- type AwsIPRangeResponse
- type AwsPrefix
- type CertResult
- type CidrRangeInput
- type Cloudflare
- type DigitalOcean
- type GCP
- type GcpIPRangeResponse
- type GcpPrefix
- type Oracle
- type OracleIPRangeResponse
- type OracleRegionCidr
- type RegionsElement
Constants ¶
const ( AWS_IP_RANGES_URL = "https://ip-ranges.amazonaws.com/ip-ranges.json" CLOUDFLARE_IPv4_RANGES_URL = "https://www.cloudflare.com/ips-v4" DIGITALOCEAN_IP_RANGES_URL = "https://www.digitalocean.com/geo/google.csv" GOOGLE_CLOUD_IP_RANGES_URL = "https://www.gstatic.com/ipranges/cloud.json" ORACLE_CLOUD_IP_RANGES_URL = "https://docs.oracle.com/en-us/iaas/tools/public_ip_ranges.json" TOTAL_IPv4_ADDR_COUNT = 3706452992 )
Variables ¶
This section is empty.
Functions ¶
func CheckRegionRegex ¶
func CheckRegionRegex()
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func GetJARMFingerprint ¶
func JARMFingerprintEnrichment ¶
func JARMFingerprintEnrichment(ctx context.Context, rawResultChan chan *CertResult, enrichmentThreads int, wg *sync.WaitGroup) chan *CertResult
func JarmFingerprintEnrichmentThread ¶
func JarmFingerprintEnrichmentThread(ctx context.Context, rawResultChan, enrichedResultChan chan *CertResult, wg *sync.WaitGroup)
func PerformOutputChecks ¶
func PerformOutputChecks()
func PerformPreRunChecks ¶
func PerformPreRunChecks(checkRegion bool)
func PrintProgressToConsole ¶
func PrintProgressToConsole(refreshInterval int)
func SaveResultsToDisk ¶
func ScanCertificatesInCidr ¶
func ScanCloudServiceProvider ¶
func ScanCloudServiceProvider(ctx context.Context, csp string, cloudServiceProvider CidrRangeInput)
func ServerHeaderEnrichment ¶
func ServerHeaderEnrichment(ctx context.Context, rawResultChan chan *CertResult, enrichmentThreads int, wg *sync.WaitGroup) chan *CertResult
func ServerHeaderEnrichmentThread ¶
func ServerHeaderEnrichmentThread(ctx context.Context, rawResultChan, enrichedResultChan chan *CertResult, wg *sync.WaitGroup)
func SplitRemoteAddr ¶
func UpdateLogLevel ¶
func UpdateLogLevel()
Types ¶
type AwsIPRangeResponse ¶
type CertResult ¶
type CertResult struct { RemoteAddr string `json:"remote"` Subject string `json:"subject"` Issuer string `json:"issuer"` SANs []string `json:"SANs"` ServerHeader string `json:"server"` JARM string `json:"jarm"` }
func ScanRemote ¶
type CidrRangeInput ¶
func GetCspInstance ¶
func GetCspInstance(cspString string) (CidrRangeInput, error)
type Cloudflare ¶
type Cloudflare struct { }
func (Cloudflare) GetCidrRanges ¶
func (cloudflare Cloudflare) GetCidrRanges(ctx context.Context, cidrChan chan string, region string)
type DigitalOcean ¶
type DigitalOcean struct { }
func (DigitalOcean) GetCidrRanges ¶
func (digitalOcean DigitalOcean) GetCidrRanges(ctx context.Context, cidrChan chan string, region string)
type GcpIPRangeResponse ¶
type OracleIPRangeResponse ¶
type OracleIPRangeResponse struct {
RegionsElements []*RegionsElement `json:"regions"`
}
type OracleRegionCidr ¶
type OracleRegionCidr struct {
Cidr string `json:"cidr"`
}
type RegionsElement ¶
type RegionsElement struct { Region string `json:"region"` OracleRegionCidrs []*OracleRegionCidr `json:"cidrs"` }