Documentation
¶
Overview ¶
Package goddi contains ldap query functions https://msdn.microsoft.com/en-us/library/ms675090(v=vs.85).aspx https://social.technet.microsoft.com/wiki/contents/articles/5392.active-directory-ldap-syntax-filters.aspx
Index ¶
- Constants
- func Connect(li *LdapInfo)
- func GetCWD() string
- func GetDomainAccountPolicy(conn *ldap.Conn, baseDN string)
- func GetDomainComputers(conn *ldap.Conn, baseDN string)
- func GetDomainControllers(conn *ldap.Conn, baseDN string)
- func GetDomainGPOs(conn *ldap.Conn, baseDN string)
- func GetDomainOUs(conn *ldap.Conn, baseDN string)
- func GetDomainSite(conn *ldap.Conn, baseDN string)
- func GetDomainSubnet(conn *ldap.Conn, baseDN string)
- func GetDomainTrusts(conn *ldap.Conn, baseDN string)
- func GetFSMORoles(conn *ldap.Conn, baseDN string)
- func GetGPP(conn *ldap.Conn, baseDN string, dc string, user string, pass string)
- func GetGroupMembers(conn *ldap.Conn, baseDN string, group string)
- func GetGroupsAll(conn *ldap.Conn, baseDN string)
- func GetLAPS(conn *ldap.Conn, baseDN string)
- func GetMachineAccountOldPassword(conn *ldap.Conn, baseDN string)
- func GetSPNs(conn *ldap.Conn, baseDN string)
- func GetUsers(conn *ldap.Conn, baseDN string)
- func GetUsersDeligation(conn *ldap.Conn, baseDN string)
- func GetUsersDisabled(conn *ldap.Conn, baseDN string)
- func GetUsersLocked(conn *ldap.Conn, baseDN string)
- func GetUsersNoExpire(conn *ldap.Conn, baseDN string)
- func ValidateIPHostname(ldapServer string, domain string) (string, string)
- type DataSource
- type DataSources
- type Drive
- type Drives
- type Groups
- type LdapInfo
- type NTService
- type NTServices
- type Printers
- type Properties
- type ScheduledTasks
- type SharedPrinter
- type Task
- type User
Constants ¶
const WindowsEpochFiletime int64 = 116444736000000000
WindowsEpochFiletime January 1, 1601 UTC (coordinate universal time)
Variables ¶
This section is empty.
Functions ¶
func GetDomainAccountPolicy ¶
GetDomainAccountPolicy domain Account Policy Reference: Scott Sutherland (@_nullbind)
func GetDomainComputers ¶
GetDomainComputers all domain computers Reference: Scott Sutherland (@_nullbind)
func GetDomainControllers ¶
GetDomainControllers all domain controllers Reference: Scott Sutherland (@_nullbind)
func GetDomainGPOs ¶
GetDomainGPOs domain GPOs Reference: Scott Sutherland (@_nullbind)
func GetDomainOUs ¶
GetDomainOUs domain OUs Reference: Scott Sutherland (@_nullbind)
func GetDomainSite ¶
GetDomainSite domain sites Reference: Scott Sutherland (@_nullbind)
func GetDomainSubnet ¶
GetDomainSubnet domain subnets Reference: Scott Sutherland (@_nullbind)
func GetDomainTrusts ¶
GetDomainTrusts all domain trusts and details Reference: Scott Sutherland (@_nullbind)
func GetFSMORoles ¶
GetFSMORoles domain FSMO Roles Reference: Scott Sutherland (@_nullbind)
func GetGPP ¶
GetGPP grabs all GPP passwords Reference: Scott Sutherland (@_nullbind), Chris Campbell (@obscuresec) https://github.com/PowerShellMafia/PowerSploit/blob/master/Exfiltration/Get-GPPPassword.ps1
func GetGroupMembers ¶
GetGroupMembers all members of given group Reference: Scott Sutherland (@_nullbind)
func GetGroupsAll ¶
GetGroupsAll all groups Reference: Scott Sutherland (@_nullbind)
func GetLAPS ¶
GetLAPS LAPs passwords Reference: Scott Sutherland (@_nullbind), Karl Fosaaen (@kfosaaen), @_RastaMouse https://blog.netspi.com/running-laps-around-clearcleartext-passwords/ https://rastamouse.me/2018/03/laps---part-2/
func GetMachineAccountOldPassword ¶
GetMachineAccountOldPassword machine accounts with password older than 45 days Reference: Scott Sutherland (@_nullbind)
func GetUsers ¶
GetUsers all domain users and checks for sensitive data in Description Reference: Scott Sutherland (@_nullbind)
func GetUsersDeligation ¶
GetUsersDeligation domain delegation Reference: Scott Sutherland (@_nullbind)
func GetUsersDisabled ¶
GetUsersDisabled disabled users Reference: Scott Sutherland (@_nullbind)
func GetUsersLocked ¶
GetUsersLocked locked out users Reference: Scott Sutherland (@_nullbind)
func GetUsersNoExpire ¶
GetUsersNoExpire users with passwords not set to expire Reference: Scott Sutherland (@_nullbind)
Types ¶
type DataSource ¶
type DataSource struct {
Properties Properties `xml:"Properties"`
Changed string `xml:"changed,attr"`
}
DataSource datasources.xml
type DataSources ¶
type DataSources struct {
XMLName xml.Name `xml:"DataSources"`
DataSources []DataSource `xml:"DataSource"`
}
DataSources datasources.xml
type Drive ¶
type Drive struct {
Properties Properties `xml:"Properties"`
Changed string `xml:"changed,attr"`
}
Drive drive.xml
type LdapInfo ¶
type LdapInfo struct {
LdapServer string
LdapIP string
LdapPort uint16
LdapTLSPort uint16
User string
Usergpp string
Pass string
Domain string
Conn *ldap.Conn
Unsafe bool
StartTLS bool
}
LdapInfo contains connection info
type NTService ¶
type NTService struct {
Properties Properties `xml:"Properties"`
Changed string `xml:"changed,attr"`
}
NTService services.xml
type NTServices ¶
type NTServices struct {
XMLName xml.Name `xml:"NTServices"`
NTServices []NTService `xml:"NTService"`
}
NTServices services.xml
type Printers ¶
type Printers struct {
XMLName xml.Name `xml:"Printers"`
Printers []SharedPrinter `xml:"SharedPrinter"`
}
Printers printers.xml
type Properties ¶
type Properties struct {
Runas string `xml:"runAs,attr"`
Accountname string `xml:"accountName,attr"`
Username string `xml:"userName,attr"`
Cpassword string `xml:"cpassword,attr"`
Newname string `xml:"newName,attr"`
}
Properties groups.xml, drives.xml, datasources.xml, services.xml, printers.xml, scheduledtasks.xml
type ScheduledTasks ¶
type ScheduledTasks struct {
XMLName xml.Name `xml:"ScheduledTasks"`
ScheduledTasks []Task `xml:"Task"`
}
ScheduledTasks scheduledtasks.xml
type Task ¶
type Task struct {
Properties Properties `xml:"Properties"`
Changed string `xml:"changed,attr"`
}
Task scheduledtasks.xml
type User ¶
type User struct {
Properties Properties `xml:"Properties"`
Changed string `xml:"changed,attr"`
}
User groups.xml