models

package
v0.0.0-...-243e0b6 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collab

type Collab struct {
	Model
	Secret            string `gorm:"type:varchar(255);"`
	InteractionString string `gorm:"type:varchar(255);"`
	Type              string `gorm:"type:varchar(255);default:'burp'"`
}

Collab store all collab server

type Configuration

type Configuration struct {
	Model
	Name  string `gorm:"type:varchar(255);"`
	Value string `gorm:"type:varchar(255);"`
}

Configuration used to store some config for entire tools

type Dummy

type Dummy struct {
	Model

	Name string `gorm:"type:varchar(30);"`
	Desc string `gorm:"type:varchar(30);"`
}

Dummy just testing table

type Model

type Model struct {
	ID        uint       `gorm:"primary_key" json:"id"`
	CreatedAt time.Time  `json:"created_at,omitempty"`
	UpdatedAt time.Time  `json:"updated_at,omitempty"`
	DeletedAt *time.Time `sql:"index" json:"deleted_at,omitempty"`
}

Model is base table

type OutOfBand

type OutOfBand struct {
	Model
	Secret            string `gorm:"type:varchar(255);"`
	InteractionString string `gorm:"type:varchar(255);"`
	Protocol          string `gorm:"type:varchar(255);"`
	ClientIP          string `gorm:"type:varchar(255);"`
	Time              string `gorm:"type:varchar(255);"`
	Data              string `gorm:"type:longtext;"`
	Type              string `gorm:"type:varchar(255);default:'burp'"`
}

OutOfBand table to store all OOB data

type Record

type Record struct {
	Model
	ReqURL    string `gorm:"type:longtext;"`
	ReqMethod string `gorm:"type:varchar(30);"`
	ReqBody   string `gorm:"type:longtext;"`
	ReqRaw    string `gorm:"type:longtext;"`

	StatusCode  int     `gorm:"type:int;"`
	ResBody     string  `gorm:"type:longtext;"`
	ResTime     float64 `gorm:"type:float64;"`
	ResLength   int     `gorm:"type:int;"`
	ResRaw      string  `gorm:"type:longtext;"`
	Issues      string  `gorm:"type:varchar(100);"`
	Risk        string  `gorm:"type:varchar(100);"`
	ExtraOutput string  `gorm:"type:longtext;"`
	ScanID      string  `gorm:"type:longtext;"`

	RawFile string `gorm:"type:longtext"`
}

Record define record table in db

type ReqLog

type ReqLog struct {
	Model
	Req               string `gorm:"type:longtext;"`
	Res               string `gorm:"type:longtext;"`
	ScanID            string `gorm:"type:longtext;"`
	InteractionString string `gorm:"type:varchar(255);"`
	Secret            string `gorm:"type:varchar(255);"`
	Data              string `gorm:"type:longtext;"`
	Count             int    `gorm:"type:int;"`
}

ReqLog table to store request have OOB payload

type Scans

type Scans struct {
	Model
	ScanID      string `gorm:"type:varchar(255);"`
	ScanName    string `gorm:"type:varchar(255);"`
	SignatureID string `gorm:"type:varchar(255);"`
	Input       string `gorm:"type:longtext;default:''"`
	OutputDir   string `gorm:"type:longtext;"`
	Mode        string `gorm:"type:varchar(255);default:'scan'"`
	Level       int    `gorm:"type:int;default:'1'"`
	Source      string `gorm:"type:longtext;default:''"`
}

Scans store scan log

type Signature

type Signature struct {
	Model
	SignID   string `gorm:"type:varchar(100);unique_index"`
	Name     string `gorm:"type:varchar(100);default:'single'"`
	Category string `gorm:"type:varchar(100);default:'general'"`
	Risk     string `gorm:"type:varchar(100);default:'Info'"`
	Tech     string `gorm:"type:varchar(100);default:'general'"`
	OS       string `gorm:"type:varchar(100);default:'general'"`
	AsbPath  string `gorm:"type:longtext;default:''"`

	Type string `gorm:"type:varchar(30);not null;default:'single'"`
}

Signature mapping signature to a db

type User

type User struct {
	Model
	Username string `gorm:"type:varchar(255);"`
	Password string `gorm:"type:varchar(255);"`
	Email    string `gorm:"type:varchar(255);"`
	Secret   string `gorm:"type:varchar(255);"`
	Token    string `gorm:"type:varchar(255);"`
}

User define user table in db

Jump to

Keyboard shortcuts

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