osint

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package osint performs passive discovery of public API definitions via the SwaggerHub spec-search API (technique from UndeadSec/SwaggerSpy).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Search(ctx context.Context, client *httpclient.Client, term string, maxPages int, onSpec func(Spec)) (int, error)

Search queries SwaggerHub for public specs matching term, streaming each spec to onSpec as it is found. It stops after maxPages pages (0 = all available). TotalCount from the first page is returned so callers can report scope.

Types

type Spec

type Spec struct {
	Name        string `json:"name"`
	URL         string `json:"url"`
	Description string `json:"description,omitempty"`
}

Spec is a public definition found on SwaggerHub.

Jump to

Keyboard shortcuts

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