Documentation ¶
Index ¶
- Variables
- func DebugExec(code string, init ...bool)
- func Exec(code string, init ...bool)
- func ExecFile(path string) error
- func GetNaslLibKeys() map[string]interface{}
- func SynScan(hosts string, ports string) ([]int, error)
- type Engine
- func (engine *Engine) AddSmokeOnCode(condation func(code *yakvm.Code) bool)
- func (engin *Engine) CallNativeFunction(name string, mapParam map[string]interface{}, sliceParam []interface{}) (interface{}, error)
- func (e *Engine) Compile(code string) error
- func (e *Engine) Eval(code string) error
- func (e *Engine) GetCompiler() *visitors.Compiler
- func (e *Engine) GetVirtualMachine() *yakvm.VirtualMachine
- func (engine *Engine) Init()
- func (engine *Engine) LoadScript(path string)
- func (e *Engine) RunFile(path string) error
- func (e *Engine) SafeEval(code string) (err error)
- func (e *Engine) SafeRunFile(path string) (err error)
- func (engine *Engine) Scan(target string, ports string) error
- func (e *Engine) SetDescription(b bool)
- func (e *Engine) SetIncludePath(p string)
- func (engine *Engine) SynScan(target string, ports string) ([]int, error)
- type NaslBuildInMethod
- type NaslBuildInMethodParam
- type NaslScriptInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var NaslLib = make(map[string]func(engine *Engine, params *NaslBuildInMethodParam) interface{})
Functions ¶
func GetNaslLibKeys ¶
func GetNaslLibKeys() map[string]interface{}
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) AddSmokeOnCode ¶
func (*Engine) CallNativeFunction ¶
func (*Engine) GetCompiler ¶
func (*Engine) GetVirtualMachine ¶
func (e *Engine) GetVirtualMachine() *yakvm.VirtualMachine
func (*Engine) LoadScript ¶
func (*Engine) SafeRunFile ¶
func (*Engine) SetDescription ¶
func (*Engine) SetIncludePath ¶
type NaslBuildInMethod ¶
type NaslBuildInMethod func(engine *Engine, params *NaslBuildInMethodParam) (interface{}, error)
type NaslBuildInMethodParam ¶
type NaslBuildInMethodParam struct {
// contains filtered or unexported fields
}
func NewNaslBuildInMethodParam ¶
func NewNaslBuildInMethodParam() *NaslBuildInMethodParam
type NaslScriptInfo ¶
type NaslScriptInfo struct { Kbs map[string]interface{} Hash string OID string CVE []string ScriptName string Script string Tags map[string]interface{} Version string Category string Family string Copyright string Dependencies []string RequirePorts []string RequireKeys []string ExcludeKeys []string Xrefs map[string]string Preferences map[string]interface{} RequireUdpPorts []string BugtraqId []int MandatoryKeys []string Timeout int // contains filtered or unexported fields }
func GetNaslScriptObjectBy ¶
func GetNaslScriptObjectBy() *NaslScriptInfo
func NewNaslScriptObject ¶
func NewNaslScriptObject() *NaslScriptInfo
func (*NaslScriptInfo) Save ¶
func (n *NaslScriptInfo) Save() error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.