smbmodules

package
v0.0.0-...-70b7ca1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommonShares = []string{
	"ADMIN$",
	"C$",
	"D$",
	"IPC$",
	"NETLOGON",
	"SYSVOL",
	"print$",
}

Functions

func CheckAnonymousIPCAccess

func CheckAnonymousIPCAccess(host string, port int) bool

func CheckNullSession

func CheckNullSession(host string, port int) bool

Types

type GPPEntry

type GPPEntry struct {
	FilePath  string
	UserName  string
	NewName   string
	RunAs     string
	CPassword string
	Password  string
}

GPPEntry holds a single discovered credential

func FindGPPPasswords

func FindGPPPasswords(host string, port int, domain, username, password, hash string) ([]GPPEntry, error)

FindGPPPasswords connects to the target via SMB, searches SYSVOL recursively for XML files containing GPP cpasswords, and returns decrypted credentials.

type ShareAccess

type ShareAccess struct {
	Name       string
	Accessible bool
}

func CheckShareAccess

func CheckShareAccess(s *smb.Session, shares []string) []ShareAccess

Jump to

Keyboard shortcuts

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