ports

package
v0.4.13 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package ports detects risky back-end services that are reachable on the target's own host — exposed databases, caches, container APIs and remote shells that are usually meant to stay private. It performs a plain TCP connect (open / closed) to a curated list of well-known service ports and sends no payload and no exploit; it only observes whether the port accepts a connection. It scans only the target's host, honors ctx, and uses short timeouts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithServices

func WithServices(ctx context.Context, s map[int]service) context.Context

WithServices overrides the port list (tests point it at a local listener).

Types

type ExposedServices

type ExposedServices struct{}

ExposedServices flags reachable risky service ports on the target host.

func (ExposedServices) Category

func (ExposedServices) Category() core.Category

func (ExposedServices) Description

func (ExposedServices) Description() string

func (ExposedServices) ID

func (ExposedServices) ID() string

func (ExposedServices) Mode

func (ExposedServices) Mode() core.Mode

func (ExposedServices) OWASP

func (ExposedServices) OWASP() []string

func (ExposedServices) Run

Jump to

Keyboard shortcuts

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