gomapcli

package
v0.2.0-pre1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

The gomapcli package contains the main logic for the CLI application.

Index

Constants

This section is empty.

Variables

View Source
var Top1000Ports = [1000]int{} /* 1000 elements not displayed */

Functions

func ParsePorts

func ParsePorts(ports string) ([]int, error)

ParsePorts parses the ports string and returns a slice of integers

func ParseTarget

func ParseTarget(target string) (string, error)

ParseTarget parses the target string and returns the IP address in string format

func Runner

func Runner(c *cli.Context) error

func ScanPorts

func ScanPorts(ports []int, target string, timeout time.Duration)

ScanPorts scans the provided ports on the target and prints the results

func SendICMPRequest

func SendICMPRequest(target string, timeout time.Duration) (bool, error)

SendICMPRequest sends an ICMP request to the provided target with given timeout duration and returns true if it receives a reply

Types

This section is empty.

Jump to

Keyboard shortcuts

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