Documentation
¶
Index ¶
- Constants
- func Asm(shellcode string) (sc []byte)
- func B64d(e string) []byte
- func B64e(d []byte) string
- func Critical(format string, v ...any)
- func Debug(format string, v ...any)
- func Error(format string, v ...any)
- func Failure(format string, v ...any)
- func Hex(b []byte) string
- func Info(format string, v ...any)
- func P8(v uint8) []byte
- func P16(v uint16) []byte
- func P32(v uint32) []byte
- func P64(v uint64) []byte
- func Progress(title string) progressBar
- func SetContext(c Context)
- func Success(format string, v ...any)
- func U8(b []byte) uint8
- func U16(b []byte) uint16
- func U32(b []byte) uint32
- func U64(b []byte) uint64
- func UnHex(h string) []byte
- func Warning(format string, v ...any)
- func Xor(a []byte, b ...[]byte) []byte
- type Conn
- func Listen[V number](port V) *Conn
- func ListenWithConf[V number](port V, conf ListenConf) *Conn
- func Process(command string, args ...string) *Conn
- func ProcessWithConf(argv []string, conf ProcessConf) *Conn
- func Remote[V number](host string, port V) *Conn
- func RemoteWithConf[V number](host string, port V, conf RemoteConf) *Conn
- func (conn *Conn) Close()
- func (conn *Conn) Interactive(prompt ...string)
- func (conn *Conn) Recv(n ...int) []byte
- func (conn *Conn) RecvLine() []byte
- func (conn *Conn) RecvLineContains(pattern []byte) (recv []byte)
- func (conn *Conn) RecvLineContainsS(pattern []byte) string
- func (conn *Conn) RecvLineS() string
- func (conn *Conn) RecvN(n int) []byte
- func (conn *Conn) RecvNS(n int) string
- func (conn *Conn) RecvS(max ...int) string
- func (conn *Conn) RecvUntil(pattern []byte, drop ...bool) (recv []byte)
- func (conn *Conn) RecvUntilS(pattern []byte, drop ...bool) string
- func (conn *Conn) Send(data []byte) int
- func (conn *Conn) SendAfter(pattern, data []byte) []byte
- func (conn *Conn) SendAfterS(pattern, data string) []byte
- func (conn *Conn) SendLine(data []byte) int
- func (conn *Conn) SendLineAfter(pattern, data []byte) []byte
- func (conn *Conn) SendLineAfterS(pattern, data string) []byte
- func (conn *Conn) SendLineS(data string) int
- func (conn *Conn) SendS(data string) int
- type Context
- type ListenConf
- type ProcessConf
- type RemoteConf
Constants ¶
View Source
const ( DEBUG int = iota INFO WARNING ERROR CRITICAL )
Variables ¶
This section is empty.
Functions ¶
func SetContext ¶
func SetContext(c Context)
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func ListenWithConf ¶
func ListenWithConf[V number](port V, conf ListenConf) *Conn
func ProcessWithConf ¶
func ProcessWithConf(argv []string, conf ProcessConf) *Conn
func RemoteWithConf ¶
func RemoteWithConf[V number](host string, port V, conf RemoteConf) *Conn
func (*Conn) Interactive ¶
func (*Conn) RecvLineContains ¶
func (*Conn) RecvLineContainsS ¶
func (*Conn) SendAfterS ¶
func (*Conn) SendLineAfter ¶
func (*Conn) SendLineAfterS ¶
type ListenConf ¶
type ProcessConf ¶
type RemoteConf ¶
type RemoteConf struct {
Protocol string
}
Click to show internal directories.
Click to hide internal directories.