cookiescan

package module
v2.4.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: MIT Imports: 9 Imported by: 1

README

cookiescan

TCP port scanning through SYN flood protected networks

Download

Binary packages for Linux and OS X are available here. If you need to build for another operating system see the go documentation or get in contact with me and I'll see what I can do.

Install

After installing libpcap-dev:

$ unzip cookiescan*.zip
$ ./cookiescan

Usage

$ cookiescan -h

Usage:
  cookiescan [options] <target>
  cookiescan -h | --help
  cookiescan -v | --version

Required Arguments:
  target:           IP Address, Hostname, or CIDR network. May also be a a newline separated
                    file containing targets.

Options:
  -h --help         Show this message.
  -v --version      Show version.
  -p <port ranges>  Ports to scan. Ex: -p 22; -p 1-65535, -p 80,443. [default: 1-1024]
  -e <port ranges>  Ports to exclude from scan. Ex: -e 22; -p 21,23. [default: 0]
  -g <int>          Amount of goroutines to spread connection attempts across. [default: 1000]
  -c <int>          Minimum confidence level to flag port as open. [default: 1]
  -i <interface>    Network interface to listen on.
  -t <timeout>      Timeout in Milliseconds to wait for a connection. [default: 400]
  -j <file>         Output JSON to file.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Host     string   `json:"host"`
	Services Services `json:"services"`
}

type Service

type Service struct {
	Port       int      `json:"port"`
	Service    string   `json:"service"`
	State      string   `json:"state"`
	Confidence int      `json:"confidence"`
	Reason     []string `json:"reason"`
}

type Services

type Services []Service

func (Services) Len

func (s Services) Len() int

func (Services) Less

func (s Services) Less(i, j int) bool

func (Services) Swap

func (s Services) Swap(i, j int)

type Store

type Store struct {
	Hosts map[string][]Service
}

func NewStore

func NewStore(ips []string) *Store

func (*Store) Add

func (s *Store) Add(ip string, port int, flags string)

func (*Store) JSON

func (s *Store) JSON(confidence int, fname string)

func (*Store) Tabbed

func (s *Store) Tabbed(confidence int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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