Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metasploit ¶
type Metasploit struct {
// contains filtered or unexported fields
}
func New ¶
func New(host, user, pass string) (*Metasploit, error)
func (*Metasploit) Login ¶
func (msf *Metasploit) Login() error
func (*Metasploit) Logout ¶
func (msf *Metasploit) Logout() error
func (*Metasploit) SessionList ¶
func (msf *Metasploit) SessionList() (map[uint32]SessionListRes, error)
type SessionListRes ¶
type SessionListRes struct { ID uint32 `msgpack:",omitempty"` Type string `msgpack:"type"` TunnelLocal string `msgpack:"tunnel_local"` TunnelPeer string `msgpack:"tunnel_peer"` ViaExploit string `msgpack:"via_exploit"` ViaPayload string `msgpack:"via_payload"` Description string `msgpack:"desc"` Info string `msgpack:"info"` Workspace string `msgpack:"workspace"` SessionHost string `msgpack:"session_host"` SessionPort int `msgpack:"session_port"` Username string `msgpack:"username"` UUID string `msgpack:"uuid"` ExploitUUID string `msgpack:"exploit_uuid"` }
Click to show internal directories.
Click to hide internal directories.