scanrpc

package
v1.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MethodList = []string{"SCAN_StartScript", "SCAN_GetRunningTasks", "SCAN_StopTask", "SCAN_RadCrawler", "SCAN_DownloadXrayAndRad", "SCAN_IsXrayAndRadAvailable", "SCAN_ScanFingerprint", "SCAN_BasicCrawler", "SCAN_ProxyCollector", "SCAN_InvokeScript"}
)

Functions

This section is empty.

Types

type SCANClientHelper

type SCANClientHelper struct {
	// contains filtered or unexported fields
}

func GenerateSCANClientHelper

func GenerateSCANClientHelper(callRpc callRpcHandler) *SCANClientHelper

func (*SCANClientHelper) SCAN_BasicCrawler

func (*SCANClientHelper) SCAN_DownloadXrayAndRad

func (*SCANClientHelper) SCAN_GetRunningTasks

func (*SCANClientHelper) SCAN_InvokeScript

func (*SCANClientHelper) SCAN_IsXrayAndRadAvailable

func (*SCANClientHelper) SCAN_ProxyCollector

func (*SCANClientHelper) SCAN_RadCrawler

func (*SCANClientHelper) SCAN_ScanFingerprint

func (*SCANClientHelper) SCAN_StartScript

func (*SCANClientHelper) SCAN_StopTask

type SCANServerHelper

type SCANServerHelper struct {
	DoSCAN_StartScript           func(ctx context.Context, node string, req *SCAN_StartScriptRequest, broker *mq.Broker) (*SCAN_StartScriptResponse, error)
	DoSCAN_GetRunningTasks       func(ctx context.Context, node string, req *SCAN_GetRunningTasksRequest, broker *mq.Broker) (*SCAN_GetRunningTasksResponse, error)
	DoSCAN_StopTask              func(ctx context.Context, node string, req *SCAN_StopTaskRequest, broker *mq.Broker) (*SCAN_StopTaskResponse, error)
	DoSCAN_RadCrawler            func(ctx context.Context, node string, req *SCAN_RadCrawlerRequest, broker *mq.Broker) (*SCAN_RadCrawlerResponse, error)
	DoSCAN_DownloadXrayAndRad    func(ctx context.Context, node string, req *SCAN_DownloadXrayAndRadRequest, broker *mq.Broker) (*SCAN_DownloadXrayAndRadResponse, error)
	DoSCAN_IsXrayAndRadAvailable func(ctx context.Context, node string, req *SCAN_IsXrayAndRadAvailableRequest, broker *mq.Broker) (*SCAN_IsXrayAndRadAvailableResponse, error)
	DoSCAN_ScanFingerprint       func(ctx context.Context, node string, req *SCAN_ScanFingerprintRequest, broker *mq.Broker) (*SCAN_ScanFingerprintResponse, error)
	DoSCAN_BasicCrawler          func(ctx context.Context, node string, req *SCAN_BasicCrawlerRequest, broker *mq.Broker) (*SCAN_BasicCrawlerResponse, error)
	DoSCAN_ProxyCollector        func(ctx context.Context, node string, req *SCAN_ProxyCollectorRequest, broker *mq.Broker) (*SCAN_ProxyCollectorResponse, error)
	DoSCAN_InvokeScript          func(ctx context.Context, node string, req *SCAN_InvokeScriptRequest, broker *mq.Broker) (*SCAN_InvokeScriptResponse, error)
}

func NewSCANServerHelper

func NewSCANServerHelper() *SCANServerHelper

func (*SCANServerHelper) Do

func (h *SCANServerHelper) Do(broker *mq.Broker, ctx context.Context, f, node string, delivery *amqp.Delivery) (message interface{}, e error)

type SCAN_BasicCrawlerRequest

type SCAN_BasicCrawlerRequest struct {
	Targets    []string
	EnableXray bool
	Proxy      string
}

type SCAN_BasicCrawlerResponse

type SCAN_BasicCrawlerResponse struct{}

type SCAN_DownloadXrayAndRadRequest

type SCAN_DownloadXrayAndRadRequest struct {
	Proxy       string
	ForceUpdate bool
}

type SCAN_DownloadXrayAndRadResponse

type SCAN_DownloadXrayAndRadResponse struct{}

type SCAN_GetRunningTasksRequest

type SCAN_GetRunningTasksRequest struct{}

type SCAN_GetRunningTasksResponse

type SCAN_GetRunningTasksResponse struct {
	Tasks []*Task
}

type SCAN_InvokeScriptRequest

type SCAN_InvokeScriptRequest struct {
	TaskId          string
	RuntimeId       string
	SubTaskId       string
	ScriptContent   string
	ScriptJsonParam string
}

type SCAN_InvokeScriptResponse

type SCAN_InvokeScriptResponse struct {
	Data interface{}
}

type SCAN_IsXrayAndRadAvailableRequest

type SCAN_IsXrayAndRadAvailableRequest struct{}

type SCAN_IsXrayAndRadAvailableResponse

type SCAN_IsXrayAndRadAvailableResponse struct {
	Ok     bool
	Reason string
}

type SCAN_ProxyCollectorRequest

type SCAN_ProxyCollectorRequest struct {
	Port int
}

type SCAN_ProxyCollectorResponse

type SCAN_ProxyCollectorResponse struct{}

type SCAN_RadCrawlerRequest

type SCAN_RadCrawlerRequest struct {
	Targets    []string
	Proxy      string
	EnableXray bool
	Cookie     string
}

type SCAN_RadCrawlerResponse

type SCAN_RadCrawlerResponse struct{}

type SCAN_ScanFingerprintRequest

type SCAN_ScanFingerprintRequest struct {
	Hosts          string
	Ports          string
	IsUDP          bool
	TimeoutSeconds int
	Concurrent     int
}

type SCAN_ScanFingerprintResponse

type SCAN_ScanFingerprintResponse struct{}

type SCAN_StartScriptRequest

type SCAN_StartScriptRequest struct {
	Content string
}

type SCAN_StartScriptResponse

type SCAN_StartScriptResponse struct{}

type SCAN_StopTaskRequest

type SCAN_StopTaskRequest struct {
	TaskId string
}

type SCAN_StopTaskResponse

type SCAN_StopTaskResponse struct{}

type Task

type Task struct {
	TaskID            string
	TaskType          string
	StartTimestamp    int64
	DeadlineTimestamp int64
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL