vulinbox

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: 69 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DnsRecord = sync.Map{}
View Source
var MallGroup *mux.Router

Functions

func BlockContent added in v1.2.4

func BlockContent(i ...string) string

func DefaultRender added in v1.2.4

func DefaultRender(innerHtml any, writer http.ResponseWriter, request *http.Request, paramIns ...map[string]any)

func DefaultRenderEx added in v1.2.4

func DefaultRenderEx(override bool, innerHtml any, writer http.ResponseWriter, request *http.Request, paramIns ...map[string]any)

func Failed added in v1.2.3

func Failed(writer http.ResponseWriter, r *http.Request, msg string, items ...any)

func ForceEnsureCookie added in v1.2.3

func ForceEnsureCookie(writer http.ResponseWriter, r *http.Request, key, val string) bool

func GetSensitiveFile added in v1.2.4

func GetSensitiveFile(name string) []byte

func LoadFromBodyJsonParams added in v1.2.3

func LoadFromBodyJsonParams(req *http.Request, name string) string

func LoadFromGetBase64JSONParam added in v1.2.3

func LoadFromGetBase64JSONParam(req *http.Request, containerName, name string) string

func LoadFromGetBase64Params added in v1.2.3

func LoadFromGetBase64Params(req *http.Request, name string) string

func LoadFromGetJSONParam added in v1.2.3

func LoadFromGetJSONParam(req *http.Request, paramsContainer, name string) string

func LoadFromGetParams added in v1.2.3

func LoadFromGetParams(req *http.Request, name string) string

func LoadFromPostBase64JSONParams added in v1.2.3

func LoadFromPostBase64JSONParams(req *http.Request, container, name string) string

func LoadFromPostBase64Params added in v1.2.3

func LoadFromPostBase64Params(req *http.Request, name string) string

func LoadFromPostJSONParams added in v1.2.3

func LoadFromPostJSONParams(req *http.Request, paramsContainer, name string) string

func LoadFromPostParams added in v1.2.3

func LoadFromPostParams(req *http.Request, name string) string

func NewVulinServer

func NewVulinServer(ctx context.Context, port ...int) (string, error)

func NewVulinServerEx added in v1.2.2

func NewVulinServerEx(ctx context.Context, noHttps, safeMode bool, host string, ports ...int) (string, error)

func NewVulinboxAgent added in v1.2.3

func NewVulinboxAgent(ctx context.Context, port ...int) (string, error)

func Pipeline added in v1.2.6

func Pipeline(ctx context.Context, port int) error

func Smuggle added in v1.2.6

func Smuggle(ctx context.Context, port int) error

func UnsafeRender added in v1.2.6

func UnsafeRender(title string, data []byte) []byte

Types

type EvFunc added in v1.2.4

type EvFunc func([]byte) (any, error)

type GroupedRoutes added in v1.2.4

type GroupedRoutes struct {
	GroupName string
	SafeStyle string
	VulInfos  []*VulInfo
}

type JsonParser added in v1.2.4

type JsonParser func(data string) (map[string]any, error)

type Session added in v1.2.3

type Session struct {
	gorm.Model
	Uuid     string
	Username string
	Role     string
}

type UserCart added in v1.3.1

type UserCart struct {
	gorm.Model
	UserID          int     `gorm:"column:UserID"`          //用户ID
	ProductName     string  `gorm:"column:ProductName"`     //商品名称
	Description     string  `gorm:"column:Description"`     //商品描述
	ProductPrice    float64 `gorm:"column:ProductPrice"`    //商品价格
	ProductQuantity int     `gorm:"column:ProductQuantity"` //商品数量
	TotalPrice      float64 `gorm:"column:TotalPrice"`      //商品总价
}

type UserOrder added in v1.3.1

type UserOrder struct {
	gorm.Model
	UserID         int     `gorm:"column:UserID"`         //用户ID
	ProductName    string  `gorm:"column:ProductName"`    //商品名称
	Quantity       int     `gorm:"column:Quantity"`       //数量
	TotalPrice     float64 `gorm:"column:TotalPrice"`     //总价
	DeliveryStatus string  `gorm:"column:DeliveryStatus"` //发货状态

}

type VirtualYakExecServer

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

func NewVirtualYakExecServerWithMessageHandle

func NewVirtualYakExecServerWithMessageHandle(h func(result *ypb.ExecResult) error) *VirtualYakExecServer

func (*VirtualYakExecServer) Context

func (v *VirtualYakExecServer) Context() context.Context

func (*VirtualYakExecServer) RecvMsg

func (v *VirtualYakExecServer) RecvMsg(m interface{}) error

func (*VirtualYakExecServer) Send

func (v *VirtualYakExecServer) Send(result *ypb.ExecResult) error

func (*VirtualYakExecServer) SendHeader

func (v *VirtualYakExecServer) SendHeader(md grpcMetadata.MD) error

func (*VirtualYakExecServer) SendMsg

func (v *VirtualYakExecServer) SendMsg(m interface{}) error

func (*VirtualYakExecServer) SetHeader

func (v *VirtualYakExecServer) SetHeader(md grpcMetadata.MD) error

func (*VirtualYakExecServer) SetTrailer

func (v *VirtualYakExecServer) SetTrailer(md grpcMetadata.MD)

type VulInfo added in v1.2.4

type VulInfo struct {
	Handler      func(http.ResponseWriter, *http.Request) `json:"-"`
	Path         string
	DefaultQuery string
	// 名称
	Title string
	// 是否期望检出 Risk
	RiskDetected bool
	Headers      []*ypb.KVPair
	// 具体期望结果
	ExpectedResult map[string]int
}

func (*VulInfo) GetHandler added in v1.2.4

func (v *VulInfo) GetHandler() http.HandlerFunc

func (*VulInfo) GetPath added in v1.2.4

func (v *VulInfo) GetPath() string

type VulInfoIf added in v1.2.4

type VulInfoIf interface {
	Path() string
	Handler() http.HandlerFunc
}

type VulinServer

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

func (*VulinServer) GetGroupVulInfos added in v1.2.4

func (s *VulinServer) GetGroupVulInfos(group string) []*VulInfo

type VulinUser

type VulinUser struct {
	gorm.Model

	Username string
	Password string
	Age      int

	Role string // 添加角色字段

	Remake string // 添加备注字段

}

func (*VulinUser) CreateSession added in v1.2.3

func (v *VulinUser) CreateSession(dbm *dbm) (session Session, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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