scannertools

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Server  string = "Server"
	Client  string = "Client"
	Scanner string = "Scanner"
	Echo    string = "Echo"
	Proxy   string = "Proxy"
	Netcat  string = "Netcat"
)

Variables

View Source
var EXCEPTIONSTATEMENT string = "Expected 'Client', 'Server', 'Scanner', 'Proxy', or 'Netcat' commands with a subcommand."

Functions

func ArgLengthCheck

func ArgLengthCheck()

func CommandCheck

func CommandCheck(command string)

Check for user input matches our const, otherwise throw "exception" and exit

func ConvertArrayPortsToIntComma

func ConvertArrayPortsToIntComma(ports string) []int

func ConvertArrayPortsToIntDash

func ConvertArrayPortsToIntDash(ports string) []int

func InitScanner

func InitScanner(mappedUserInput map[string]string)

func ScannerUserInput

func ScannerUserInput() map[string]string

func SinglePort

func SinglePort(host string, port int)

func StringToIntPorts

func StringToIntPorts(ports *string) []int

func SyncronizeScanGroups

func SyncronizeScanGroups(host string)

func TenTwentyFourPorts

func TenTwentyFourPorts(host string)

func TestUserInput

func TestUserInput()

func UserCommands

func UserCommands() map[string]string

func UserInputCheck

func UserInputCheck()

func Worker

func Worker(ports chan int, wg *sync.WaitGroup)

func WorkerPoolScan

func WorkerPoolScan()

func WorkerPoolScanTwo

func WorkerPoolScanTwo(host string)

func WorkerPoolScanTwoPorts

func WorkerPoolScanTwoPorts(host *string, userPorts *[]int)

func WorkerTwo

func WorkerTwo(host string, ports, results chan int)

Types

type UserInputClient

type UserInputClient struct {
	Host string
}

func (*UserInputClient) SetFlagClient

func (uic *UserInputClient) SetFlagClient(fs *flag.FlagSet)

type UserInputNetcat

type UserInputNetcat struct {
	Bind    bool
	Reverse bool
	Port    int
	Address string
}

func (*UserInputNetcat) SetFlagNetcat

func (uin *UserInputNetcat) SetFlagNetcat(fs *flag.FlagSet)

type UserInputProxy

type UserInputProxy struct {
	TargetHost string
	TargetPort int
	Port       int
}

func (*UserInputProxy) SetFlagProxy

func (uip *UserInputProxy) SetFlagProxy(fs *flag.FlagSet)

type UserInputScanner

type UserInputScanner struct {
	Host  string
	Ports string
}

func (*UserInputScanner) InitScannerTwo

func (uis *UserInputScanner) InitScannerTwo()

func (*UserInputScanner) SetFlagScanner

func (uis *UserInputScanner) SetFlagScanner(fs *flag.FlagSet)

type UserInputServer

type UserInputServer struct {
	Port int
}

func (*UserInputServer) SetFlagServer

func (uis *UserInputServer) SetFlagServer(fs *flag.FlagSet)

Jump to

Keyboard shortcuts

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