libprivesc

package
v0.0.0-...-e2a80c9 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

+build windows

+build windows

+build windows

+build windows

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Arp

func Arp(o *OutputConfig)

Arp pulls the windows machine's arp data

func Drivers

func Drivers(o *OutputConfig)

Drivers lists the drivers on the machine

func FirewallConfig

func FirewallConfig(o *OutputConfig)

FirewallConfig pulls the windows machine's firewall config

func FirewallState

func FirewallState(o *OutputConfig)

FirewallState pulls the windows machine's firewall state

func IPConfig

func IPConfig(o *OutputConfig)

IPConfig pulls the windows machine's IP data

func MS10015

func MS10015(hotfixes []Hotfix, o *OutputConfig)

MS10015 (KB977165) exploit check https://www.exploit-db.com/exploits/11199/

func MS10092

func MS10092(hotfixes []Hotfix, o *OutputConfig)

MS10092 (KB2305420) exploit check https://www.exploit-db.com/exploits/19930/

func MS11080

func MS11080(hotfixes []Hotfix, o *OutputConfig)

MS11080 (KB2592799) exploit check https://www.exploit-db.com/exploits/14610/

func MS13005

func MS13005(hotfixes []Hotfix, o *OutputConfig)

MS13005 (KB2778930) exploit check https://www.exploit-db.com/exploits/14610/

func MS13053

func MS13053(hotfixes []Hotfix, o *OutputConfig)

MS13053 (KB2850851) exploit check https://www.exploit-db.com/exploits/33213/

func MS13081

func MS13081(hotfixes []Hotfix, o *OutputConfig)

MS13081 (KB2870008) exploit check https://www.exploit-db.com/exploits/31576/

func Netstat

func Netstat(o *OutputConfig)

Netstat pulls the windows machine's netstat data

func NetworkChecks

func NetworkChecks(o *OutputConfig)

NetworkChecks is used to execute all network level comamnds / checks

func Routes

func Routes(o *OutputConfig)

Routes pulls the windows machine's route table

func ScheduledTasks

func ScheduledTasks(o *OutputConfig)

ScheduledTasks will pull the list of scheduled tasks from the machine

func ServiceTasklist

func ServiceTasklist(o *OutputConfig)

ServiceTasklist will pull the list of service tasklist from the machine

func StartedServices

func StartedServices(o *OutputConfig)

StartedServices lists the started windows services

func SystemChecks

func SystemChecks(o *OutputConfig)

SystemChecks is used to run all system checks / commands

func SystemInfo

func SystemInfo(o *OutputConfig)

SystemInfo will pull the system information

func Users

func Users(o *OutputConfig)

Users will pull the list of all user accounts

func Vulnerabilities

func Vulnerabilities(o *OutputConfig)

Vulnerabilities runs all vulnerability checks

Types

type Hotfix

type Hotfix struct {
	HotFixID string
}

func GetHotfixesFromWMI

func GetHotfixesFromWMI(o *OutputConfig) []Hotfix

type OutputConfig

type OutputConfig struct {
	FileEnabled bool
	FilePath    string
	Quiet       bool
	Verbose     bool
}

OutputConfig is leveraged to ensure we output as the user requested

func (*OutputConfig) CheckForVuln

func (o *OutputConfig) CheckForVuln(premsg, kb, edb, ifVuln, errmsg string, hotfixes []Hotfix)

CheckForVuln is a helper command to execute a command via cmd /c

func (*OutputConfig) OutputBytes

func (o *OutputConfig) OutputBytes(line []byte)

OutputBytes is used to output byte data to a file or stdout

func (*OutputConfig) OutputString

func (o *OutputConfig) OutputString(line string)

OutputString is used to output string data to a file or stdout

func (*OutputConfig) RunDirect

func (o *OutputConfig) RunDirect(premsg, cmd, errmsg string)

RunDirect is a helper command to execute a command directly without calling cmd /c first

func (*OutputConfig) RunViaCmd

func (o *OutputConfig) RunViaCmd(premsg, cmd, errmsg string)

RunViaCmd is a helper command to execute a command via cmd /c

func (OutputConfig) Setup

func (o OutputConfig) Setup() bool

Setup is used to prepare the output

type WindowsVersion

type WindowsVersion struct {
	Major   byte
	Minor   uint8
	Build   uint16
	Version string
}

func GetWindowsVersion

func GetWindowsVersion(o *OutputConfig) WindowsVersion

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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