Documentation ¶
Index ¶
- Variables
- type AuthLoginReq
- type AuthLoginResp
- type AuthTokenAddReq
- type AuthTokenGenerateResp
- type AuthTokenListResp
- type AuthTokenRemoveReq
- type ConsoleCreateResp
- type ConsoleDestroyReq
- type ConsoleListResp
- type ConsoleReadReq
- type ConsoleReadResp
- type ConsoleSessionDetachReq
- type ConsoleSessionKillReq
- type ConsoleTabReq
- type ConsoleTabResp
- type ConsoleWriteReq
- type ConsoleWriteResp
- type CoreAddModulePathResp
- type CoreModuleAddReq
- type CoreModuleStatsResp
- type CoreReloadModulesResp
- type CoreSetGReq
- type CoreThreadKillReq
- type CoreThreadListResp
- type CoreUnsetGReq
- type CoreVersionResp
- type GenericRequest
- type GenericResponse
- type JobInfoReq
- type JobInfoResp
- type JobListResp
- type JobStopReq
- type MeterpreterReadResp
- type ModuleAuxiliaryResp
- type ModuleCheckReq
- type ModuleCompatiblePayloadsReq
- type ModuleCompatiblePayloadsResp
- type ModuleCompatibleSessionsReq
- type ModuleCompatibleSessionsResp
- type ModuleEncodersResp
- type ModuleEvasionResp
- type ModuleExecuteReq
- type ModuleExecuteResp
- type ModuleExploitsResp
- type ModuleInfoReq
- type ModuleInfoResp
- type ModuleNopsResp
- type ModuleOptionsReq
- type ModuleOptionsResp
- type ModulePayloadsResp
- type ModulePlatformsResp
- type ModulePostResp
- type ModuleSearchReq
- type ModuleSearchResp
- type RPC
- type Result
- type SessionListResp
- type SessionMeterpreterReadReq
- type SessionMeterpreterWriteReq
- type SessionShellReadReq
- type SessionShellReadResp
- type SessionShellUpgradeReq
- type SessionShellWriteReq
- type SessionShellWriteResp
- type SessionStopReq
Constants ¶
This section is empty.
Variables ¶
var ErrNotAuth error = errors.New("client is not authenticated (no token)")
Functions ¶
This section is empty.
Types ¶
type AuthLoginReq ¶
auth.login request
type AuthLoginResp ¶
auth.login response
type AuthTokenAddReq ¶
auth.token_add request
type AuthTokenGenerateResp ¶
type AuthTokenGenerateResp struct { Result Result `msgpack:"result"` Token string `msgpack:"token"` }
auth.token_generate response
type AuthTokenListResp ¶
type AuthTokenListResp struct {
Tokens []string `msgpack:"tokens"`
}
auth.token_list response
type AuthTokenRemoveReq ¶
auth.token_remove request
type ConsoleCreateResp ¶
type ConsoleCreateResp struct { Id int `msgpack:"id"` Prompt string `msgpack:"prompt"` Busy bool `msgpack:"busy"` }
console.create response
type ConsoleDestroyReq ¶
console.destroy request
type ConsoleListResp ¶
type ConsoleListResp map[string][]struct { Id int `msgpack:"id"` Prompt string `msgpack:"prompt"` Busy bool `msgpack:"busy"` }
console.list response
type ConsoleReadReq ¶
console.read request
type ConsoleReadResp ¶
type ConsoleReadResp struct { Data string `msgpack:"data"` Prompt string `msgpack:"prompt"` Busy bool `msgpack:"busy"` }
conosle.read response
type ConsoleSessionDetachReq ¶
console.session_detach request
type ConsoleSessionKillReq ¶
console.session_kill request
type ConsoleTabReq ¶
console.tab request
type ConsoleTabResp ¶
type ConsoleTabResp struct {
Tabs string `msgpack:"tabs"`
}
console.tab response
type ConsoleWriteReq ¶
console.write request
type ConsoleWriteResp ¶
type ConsoleWriteResp struct {
Wrote uint `msgpack:"wrote"`
}
console.write response
type CoreAddModulePathResp ¶
type CoreAddModulePathResp struct { Exploits uint `msgpack:"exploits"` Auxiliary uint `msgpack:"auxiliary"` Post uint `msgpack:"post"` Encoders uint `msgpack:"encoders"` NOPs uint `msgpack:"nops"` Payloads uint `msgpack:"payloads"` Evasions uint `msgpack:"evasions"` }
core.add_module_path
type CoreModuleAddReq ¶
core.add_module_path request
type CoreModuleStatsResp ¶
type CoreModuleStatsResp struct { Exploits uint `msgpack:"exploits"` Auxiliary uint `msgpack:"auxiliary"` Post uint `msgpack:"post"` Encoders uint `msgpack:"encoders"` NOPs uint `msgpack:"nops"` Payloads uint `msgpack:"payloads"` Evasions uint `msgpack:"evasions"` }
core.module_stats
type CoreReloadModulesResp ¶
type CoreReloadModulesResp struct { Exploits uint `msgpack:"exploits"` Auxiliary uint `msgpack:"auxiliary"` Post uint `msgpack:"post"` Encoders uint `msgpack:"encoders"` NOPs uint `msgpack:"nops"` Payloads uint `msgpack:"payloads"` Evasions uint `msgpack:"evasions"` }
core.reload_modules response
type CoreSetGReq ¶
core.setg request
type CoreThreadKillReq ¶
core.thread_kill request
type CoreThreadListResp ¶
type CoreThreadListResp map[string][]struct { Status string `msgpack:"status"` Critical bool `msgpack:"critical"` Name string `msgpack:"name"` Started string `msgpack:"started"` }
core.thread_list
type CoreUnsetGReq ¶
core.unsetg request
type CoreVersionResp ¶
type CoreVersionResp struct { Version string `msgpack:"version"` Ruby string `msgpack:"ruby"` Api string `msgpack:"api"` }
core.version response
type GenericRequest ¶
Generic Request for most RPC Calls
type GenericResponse ¶
type GenericResponse struct {
Result Result `msgpack:"result"`
}
Generic Response Most RPC Calls receive
type JobInfoResp ¶
type JobInfoResp struct { Jid int `msgpack:"jid"` Name string `msgpack:"name"` StartTime int `msgpack:"start_time"` Datastore map[string]interface{} `msgpack:"datastore,omitempty"` }
job.info
type MeterpreterReadResp ¶
type MeterpreterReadResp struct {
Data string `msgpack:"data"`
}
session.interactive_read
type ModuleAuxiliaryResp ¶
type ModuleAuxiliaryResp struct {
Modules []string `msgpack:"modules"`
}
module.auxiliary
type ModuleCheckReq ¶
type ModuleCheckReq struct { Method string Token string ModuleType string ModuleName string Options map[string]string }
module.check request
type ModuleCompatiblePayloadsReq ¶
module.compatible_payloads request
type ModuleCompatiblePayloadsResp ¶
type ModuleCompatiblePayloadsResp struct {
Payloads []string `msgpack:"payloads"`
}
module.compatible_payloads
type ModuleCompatibleSessionsReq ¶
module.compatible_sessions request
type ModuleCompatibleSessionsResp ¶
type ModuleCompatibleSessionsResp struct {
Sessions []string `msgpack:"sessions"`
}
module.compatible_sessions
type ModuleEncodersResp ¶
type ModuleEncodersResp struct {
Modules []string `msgpack:"modules"`
}
module.encoders
type ModuleEvasionResp ¶
type ModuleEvasionResp struct {
Modules []string `msgpack:"modules"`
}
module.evasion
type ModuleExecuteReq ¶
type ModuleExecuteReq struct { Method string Token string ModuleType string ModuleName string Options map[string]string }
module.execute request
type ModuleExecuteResp ¶
module.execute
type ModuleExploitsResp ¶
type ModuleExploitsResp struct {
Modules []string `msgpack:"modules"`
}
module.exploits
type ModuleInfoReq ¶
module.info request
type ModuleInfoResp ¶
type ModuleInfoResp struct { Name string `msgpack:"name"` Description string `msgpack:"description"` License string `msgpack:"license"` FilePath string `msgpack:"filepath"` Version string `msgpack:"version"` Rank string `msgpack:"rank"` References [][]string `msgpack:"references"` Authors []string `msgpack:"authors"` }
module.info
type ModuleNopsResp ¶
type ModuleNopsResp struct {
Modules []string `msgpack:"modules"`
}
module.nops
type ModuleOptionsReq ¶
module.options request
type ModuleOptionsResp ¶
type ModuleOptionsResp map[string]struct { Type string `msgpack:"type"` Required bool `msgpack:"required"` Advanced bool `msgpack:"advanced"` Evasion bool `msgpack:"evasion"` Desc string `msgpack:"desc"` Default interface{} `msgpack:"default"` Enums []string `msgpack:"enums,omitempty"` }
module.options
type ModulePayloadsResp ¶
type ModulePayloadsResp struct {
Modules []string `msgpack:"modules"`
}
module.payloads
type ModulePlatformsResp ¶
type ModulePlatformsResp struct {
Platforms []string `msgpack:"platforms"`
}
module.platforms
type ModulePostResp ¶
type ModulePostResp struct {
Modules []string `msgpack:"modules"`
}
module.post
type ModuleSearchReq ¶
module.search request
type ModuleSearchResp ¶
type ModuleSearchResp struct {
Matches []string `msgpack:"matches"`
}
module.search
type RPC ¶
type RPC struct { Auth *auth Console *console Core *core Job *job Module *module Session *session // contains filtered or unexported fields }
RPC object
type SessionListResp ¶
type SessionListResp map[int]struct { Type string `msgpack:"type"` TunnelLocal string `msgpack:"tunnel_local"` TunnelPeer string `msgpack:"tunnel_peer"` ViaExploit string `msgpack:"via_exploit"` Description string `msgpack:"desc"` Info string `msgpack:"info"` Workspace string `msgpack:"workspace"` SessionHost string `msgpack:"session_host"` SessionPort int `msgpack:"session_port"` TargetHost string `msgpack:"target_host"` Username string `msgpack:"Username"` Uuid string `msgpack:"uuid"` ExploitUuid string `msgpack:"exploit_uuid"` Routes string `msgpack:"routes"` Platform string `msgpack:"platform"` }
session.list
type SessionMeterpreterReadReq ¶
session.interactive_read
type SessionMeterpreterWriteReq ¶
session.interactive_write
type SessionShellReadReq ¶
session.shell_read
type SessionShellReadResp ¶
session.shell_read
type SessionShellUpgradeReq ¶
session.shell_upgrade
type SessionShellWriteReq ¶
session.shell_write
type SessionShellWriteResp ¶
type SessionShellWriteResp struct {
WriteCount int `msgpack:"write_count"`
}
session.shell_write
type SessionStopReq ¶
session.stop request