scan

package
v0.0.0-...-a0c44de Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CFscannerCmd = &cobra.Command{
	Use:   "cfscanner",
	Short: "Cloudflare's edge IP scanner (delay, downlink, uplink)",
	Long:  ``,
	Run: func(cmd *cobra.Command, args []string) {
		var cidrs []string
		var totalIPs []string

		if _, err := os.Stat(subnets); err == nil {
			cidrs = utils.ParseFileByNewline(subnets)
		} else {
			cidrs = strings.Split(subnets, ",")
		}

		for _, cidr := range cidrs {
			listIP, err := utils.CIDRtoListIP(cidr)
			if err != nil {
				customlog.Printf(customlog.Failure, "Error when parsing a CIDR: %v\n", err)
				continue
			}
			totalIPs = append(totalIPs, listIP...)
		}

		if len(totalIPs) <= 0 {
			customlog.Printf(customlog.Failure, "Scanner failed! => No IP detected\n")
		}

	},
}

CFscannerCmd represents the cfscanner command

View Source
var RealityscannerCmd = &cobra.Command{
	Use:   "realityscanner",
	Short: "xray-core TLS REALITY scanner",
	Long:  ``,
	Run: func(cmd *cobra.Command, args []string) {
		fmt.Println("realityscanner called")
	},
}

RealityscannerCmd represents the realityscanner command

View Source
var ScanCmd = &cobra.Command{
	Use:   "scan",
	Short: "Scanning tools needed for bypassing GFW",
	Long:  ``,
	Run: func(cmd *cobra.Command, args []string) {
		cmd.Help()
	},
}

ScanCmd represents the scan command

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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