Documentation ¶
Index ¶
- type AuthManager
- type Auxiliary
- type Client
- type ClientOptions
- type Console
- type ConsoleManager
- type CoreManager
- type EncodeOptions
- type Evasion
- type Exploit
- type HealthManager
- type JobManager
- type MeterpreterSession
- type ModuleManager
- func (mm *ModuleManager) Architectures() ([]string, error)
- func (mm *ModuleManager) Auxiliaries() ([]string, error)
- func (mm *ModuleManager) CompatibleSessions(moduleName string) ([]string, error)
- func (mm *ModuleManager) Encode(data string, encoderModule string, options *EncodeOptions) ([]byte, error)
- func (mm *ModuleManager) Encoders() ([]string, error)
- func (mm *ModuleManager) Evasions() ([]string, error)
- func (mm *ModuleManager) Execute(moduleType ModuleType, moduleName string, options map[string]interface{}) (*rpc.ModuleExecuteRes, error)
- func (mm *ModuleManager) Exploits() ([]string, error)
- func (mm *ModuleManager) Info(moduleType ModuleType, moduleName string) (*rpc.ModuleInfoRes, error)
- func (mm *ModuleManager) InfoHTML(moduleType ModuleType, moduleName string) (string, error)
- func (mm *ModuleManager) Nops() ([]string, error)
- func (mm *ModuleManager) Payloads() ([]string, error)
- func (mm *ModuleManager) Platforms() (*rpc.ModulePlatformsRes, error)
- func (mm *ModuleManager) Posts() ([]string, error)
- func (mm *ModuleManager) UseAuxiliary(moduleName string) (*Auxiliary, error)
- func (mm *ModuleManager) UseExploit(moduleName string) (*Exploit, error)
- func (mm *ModuleManager) UsePost(moduleName string) (*Post, error)
- type ModuleType
- type Payload
- type PluginManager
- type Post
- type SessionManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthManager ¶
type AuthManager struct {
// contains filtered or unexported fields
}
func (*AuthManager) Logout ¶
func (am *AuthManager) Logout() error
type Client ¶
type Client struct { Auth *AuthManager Consoles *ConsoleManager Core *CoreManager Health *HealthManager Plugins *PluginManager Jobs *JobManager Module *ModuleManager Session *SessionManager // contains filtered or unexported fields }
func (*Client) APIVersion ¶
func (*Client) Authenticated ¶
func (*Client) HealthCheck ¶
type ClientOptions ¶
type Console ¶
type Console struct {
// contains filtered or unexported fields
}
func (*Console) Read ¶
func (c *Console) Read() (*rpc.ConsoleReadRes, error)
Read reads data from the console
func (*Console) SessionDetach ¶
SessionDetach detachs the current meterpreter or shell session
func (*Console) SessionKill ¶
SessionKill kills all active meterpreter or shell sessions
type ConsoleManager ¶
type ConsoleManager struct {
// contains filtered or unexported fields
}
func (*ConsoleManager) Console ¶
func (cm *ConsoleManager) Console() (*Console, error)
Console creates a new framework console instance
func (*ConsoleManager) Destroy ¶
func (cm *ConsoleManager) Destroy(consoleID string) error
Destroy destroys an active console
func (*ConsoleManager) List ¶
func (cm *ConsoleManager) List() (*rpc.ConsoleListRes, error)
List lists active consoles
type CoreManager ¶
type CoreManager struct {
// contains filtered or unexported fields
}
func (*CoreManager) Version ¶
func (c *CoreManager) Version() (*rpc.CoreVersionRes, error)
type EncodeOptions ¶
type EncodeOptions struct { Format string `structs:"format,omitempty"` // Encoding format Badchars string `structs:"badchars,omitempty"` // Bad characters Platform string `structs:"platform,omitempty"` // Platform Arch string `structs:"arch,omitempty"` // Architecture ECount int `structs:"ecount,omitempty"` // Number of times to encode Inject bool `structs:"inject,omitempty"` // Enable injection Template string `structs:"template,omitempty"` // The template file (an executable) TemplatePath string `structs:"template_path,omitempty"` // Template path Addshellcode string `structs:"addshellcode,omitempty"` // Custom shellcode }
type HealthManager ¶
type HealthManager struct {
// contains filtered or unexported fields
}
func (*HealthManager) Check ¶
func (hm *HealthManager) Check() error
type JobManager ¶
type JobManager struct {
// contains filtered or unexported fields
}
func (*JobManager) Info ¶
func (jm *JobManager) Info(jobID string) (*rpc.JobInfoRes, error)
func (*JobManager) List ¶
func (jm *JobManager) List() (*rpc.JobListRes, error)
func (*JobManager) Stop ¶
func (jm *JobManager) Stop(jobID string) error
type MeterpreterSession ¶
type MeterpreterSession struct {
// contains filtered or unexported fields
}
func (*MeterpreterSession) Read ¶
func (ms *MeterpreterSession) Read() (string, error)
func (*MeterpreterSession) Write ¶
func (ms *MeterpreterSession) Write(command string) error
type ModuleManager ¶
type ModuleManager struct {
// contains filtered or unexported fields
}
func (*ModuleManager) Architectures ¶
func (mm *ModuleManager) Architectures() ([]string, error)
func (*ModuleManager) Auxiliaries ¶
func (mm *ModuleManager) Auxiliaries() ([]string, error)
func (*ModuleManager) CompatibleSessions ¶
func (mm *ModuleManager) CompatibleSessions(moduleName string) ([]string, error)
func (*ModuleManager) Encode ¶
func (mm *ModuleManager) Encode(data string, encoderModule string, options *EncodeOptions) ([]byte, error)
func (*ModuleManager) Encoders ¶
func (mm *ModuleManager) Encoders() ([]string, error)
func (*ModuleManager) Evasions ¶
func (mm *ModuleManager) Evasions() ([]string, error)
func (*ModuleManager) Execute ¶
func (mm *ModuleManager) Execute(moduleType ModuleType, moduleName string, options map[string]interface{}) (*rpc.ModuleExecuteRes, error)
func (*ModuleManager) Exploits ¶
func (mm *ModuleManager) Exploits() ([]string, error)
func (*ModuleManager) Info ¶
func (mm *ModuleManager) Info(moduleType ModuleType, moduleName string) (*rpc.ModuleInfoRes, error)
func (*ModuleManager) InfoHTML ¶
func (mm *ModuleManager) InfoHTML(moduleType ModuleType, moduleName string) (string, error)
func (*ModuleManager) Nops ¶
func (mm *ModuleManager) Nops() ([]string, error)
func (*ModuleManager) Payloads ¶
func (mm *ModuleManager) Payloads() ([]string, error)
func (*ModuleManager) Platforms ¶
func (mm *ModuleManager) Platforms() (*rpc.ModulePlatformsRes, error)
func (*ModuleManager) Posts ¶
func (mm *ModuleManager) Posts() ([]string, error)
func (*ModuleManager) UseAuxiliary ¶
func (mm *ModuleManager) UseAuxiliary(moduleName string) (*Auxiliary, error)
func (*ModuleManager) UseExploit ¶
func (mm *ModuleManager) UseExploit(moduleName string) (*Exploit, error)
type ModuleType ¶
type ModuleType string
const ( ExploitType ModuleType = "exploit" AuxiliaryType ModuleType = "auxiliary" PostType ModuleType = "post" PayloadType ModuleType = "payload" EvasionType ModuleType = "evasion" )
type PluginManager ¶
type PluginManager struct {
// contains filtered or unexported fields
}
func (*PluginManager) List ¶
func (pm *PluginManager) List() ([]string, error)
func (*PluginManager) Load ¶
func (pm *PluginManager) Load(name string, options map[string]string) error
func (*PluginManager) UnLoad ¶
func (pm *PluginManager) UnLoad(name string) error
type SessionManager ¶
type SessionManager struct {
// contains filtered or unexported fields
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.