database

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB

DB global DB variable

Functions

func CleanCollab

func CleanCollab()

CleanCollab clean all collab

func CleanRecords

func CleanRecords()

CleanRecords clean all record

func CleanScans

func CleanScans()

CleanScans clean all scan

func CleanSigns

func CleanSigns()

CleanSigns clean all signature

func CreateUser

func CreateUser(username string, password string)

CreateUser used to create new user

func GenHash

func GenHash(text string) string

GenHash generate SHA1 hash

func GetCollab

func GetCollab() string

GetCollab get random collab to test

func GetDefaultBurpCollab

func GetDefaultBurpCollab() string

GetDefaultBurpCollab update default sign

func GetDefaultBurpRes

func GetDefaultBurpRes() string

GetDefaultBurpRes update default sign

func GetDefaultSign

func GetDefaultSign() string

GetDefaultSign update default sign

func GetOOB

func GetOOB(InteractionString string) string

GetOOB check oob log with interactString

func GetSecretbyCollab

func GetSecretbyCollab(InteractionString string) string

GetSecretbyCollab get secret by interactString

func GetTS

func GetTS() string

GetTS get current timestamp and return a string

func GetUnPollReq

func GetUnPollReq() []models.ReqLog

GetUnPollReq get request that unpoll

func ImportBurpCollab

func ImportBurpCollab(burpcollab string) string

ImportBurpCollab used to init some default config

func ImportBurpCollabResponse

func ImportBurpCollabResponse(burpcollab string, data string) string

ImportBurpCollabResponse used to init some default config

func ImportCollab

func ImportCollab(secret string, InteractionString string)

ImportCollab import burp collab with it's secret

func ImportOutOfBand

func ImportOutOfBand(data string)

ImportOutOfBand import polling result to DB

func ImportRecord

func ImportRecord(rec libs.Record)

ImportRecord import record to db

func ImportReqLog

func ImportReqLog(rec libs.Record, analyzeString string)

ImportReqLog import polling result to DB

func ImportSign

func ImportSign(signPath string) error

ImportSign import signature to DB

func InitConfigSign

func InitConfigSign()

InitConfigSign used to init some default config

func InitDB

func InitDB(DBPath string) (*gorm.DB, error)

InitDB init DB connection

func NewDNSBin

func NewDNSBin() string

NewDNSBin create new dnsbin

func NewScan

func NewScan(options libs.Options, mode string, signs []string) string

NewScan select signature to gen request

func ParseSignature

func ParseSignature(signFile string) (sign libs.Signature, err error)

ParseSign parsing YAML signature file

func SelectSign

func SelectSign(signName string) []string

SelectSign select signature to gen request

func SelectUser

func SelectUser(username string) string

SelectUser get password of one user to compare

func UpdateDefaultBurpCollab

func UpdateDefaultBurpCollab(collab string)

UpdateDefaultBurpCollab update default burp collab

func UpdateDefaultSign

func UpdateDefaultSign(sign string)

UpdateDefaultSign update default sign

func UpdateUser

func UpdateUser(username string, password string)

UpdateUser update default sign

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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