s3expose

package module
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: MIT Imports: 18 Imported by: 0

README

go install github.com/ayuxsec/s3expose/cmd/s3expose@latest

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidHttpStatus = errors.New("recieved non 200 http status code")
View Source
var ErrInvalidProxyURL = errors.New("failed to parse provided proxyURL")
View Source
var ErrNilClientPtr = errors.New("http.Client pointer was nil")
View Source
var FuzzThreads int = 50
View Source
var ResolverTimeout = 5 * time.Second
View Source
var Version = "dev"
View Source
var WordList string

Functions

func GetVersion

func GetVersion() string

Types

type BucketFinder

type BucketFinder struct {
	Open      bool
	Protected bool
	NX        bool
}

type ClientConfig

type ClientConfig struct {
	DialTimeout           time.Duration
	TLSHandShakeTimeout   time.Duration
	ResponseHeaderTimeout time.Duration
	RawProxyURL           string
}

func DefaultClientConfig

func DefaultClientConfig() ClientConfig

func (ClientConfig) CreateNewClient

func (c ClientConfig) CreateNewClient() (*http.Client, error)

type DiscordAPICfg added in v0.0.3

type DiscordAPICfg struct {
	BotToken  string `yaml:"bot_token"`
	ChannelId int    `yaml:"channel_id"`
}

func (*DiscordAPICfg) CreateYAML added in v0.0.7

func (cfg *DiscordAPICfg) CreateYAML(path string)

func (*DiscordAPICfg) LoadYAML added in v0.0.7

func (cfg *DiscordAPICfg) LoadYAML(path string)

func (*DiscordAPICfg) Validate added in v0.0.3

func (cfg *DiscordAPICfg) Validate() bool

type Fuzzer added in v0.0.8

type Fuzzer struct{}

func (Fuzzer) GenerateFuzzableURL added in v0.0.8

func (f Fuzzer) GenerateFuzzableURL(url *url.URL) (fuzzableURLsList []string)

func (Fuzzer) GenerateFuzzableURLs added in v0.0.8

func (f Fuzzer) GenerateFuzzableURLs(rawURLs []string) (fuzzableURLsList []string)

type Scanner added in v0.0.3

type Scanner struct {
	RawBucketURLs []string
	HttpClient    *http.Client
	MaxWorkers    int
	BucketFinder  *BucketFinder
	DiscordAPICfg *DiscordAPICfg
	DoFuzz        bool
}

func New added in v0.0.3

func New(rawBucketURLs []string, httpClient *http.Client, maxWorkers int, bucketFinder *BucketFinder, discordAPICfg *DiscordAPICfg, doFuzz bool) *Scanner

func (*Scanner) ProcessBucket added in v0.0.8

func (s *Scanner) ProcessBucket(rawURL string, printErr bool)

func (*Scanner) ScanBuckets added in v0.0.3

func (s *Scanner) ScanBuckets()

type ScannerOutput

type ScannerOutput struct {
	IsProtectedS3Bucket bool
	IsOpenBucket        bool
	IsNXBucket          bool
	CNAME               string
}

func ScanBucket

func ScanBucket(rawBucketURL string, c *http.Client) (ScannerOutput, error)

Directories

Path Synopsis
cmd
s3expose command

Jump to

Keyboard shortcuts

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