model

package
v0.0.0-...-11b568d Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CreateHostQuery = "INSERT INTO hosts VALUES(NULL,?,?,?)"
View Source
var CreateHostSql = `` /* 175-byte string literal not displayed */
View Source
var CreateTableSql = `` /* 327-byte string literal not displayed */
View Source
var CreateTypesSql = `` /* 166-byte string literal not displayed */
View Source
var DeleteHostQuery = "DELETE FROM hosts where name == ?;"
View Source
var DeletePayloadQuery = "DELETE FROM payloads where name == ?;"
View Source
var GetHostDataQuery = "SELECT type, data FROM hosts WHERE name == ?;"
View Source
var GetHostNamesCompleterQuery = "SELECT name FROM hosts;"
View Source
var GetHostsQuery = "SELECT * from hosts;"
View Source
var GetPayloadNamesQuery = "SELECT name FROM payloads;"
View Source
var GetPayloadQuery = `` /* 336-byte string literal not displayed */
View Source
var GetPayloadTypeId = "SELECT type_id , COALESCE(content_type, '') as content_type  FROM payload_types WHERE type_name == ?;"
View Source
var GetPayloadTypesCompleterQuery = "SELECT type_name FROM payload_types;"
View Source
var GetPayloadTypesQuery = "SELECT type_name , content_type FROM payload_types;"
View Source
var GetPayloadsQuery = "" /* 145-byte string literal not displayed */
View Source
var InsertPayloadQuery = "INSERT INTO payloads VALUES (NULL,?,?,?,?,?,?,?,?,?);"

Functions

This section is empty.

Types

type CFG

type CFG struct {
	Http struct {
		Enable      string
		Port        int
		Template404 string
	}
	Https struct {
		Enable      string
		Port        int
		Template404 string
		Publickey   string
		Privatekey  string
	}
}

type Host

type Host struct {
	Id    int
	Name  string
	Htype string
	Data  string
}

type Payload

type Payload struct {
	Id             int
	Name           string
	Content_type   string
	Host_blacklist string
	Host_whitelist string
	Data_file      string
	Data_b64       string
	Ptype          string
	Type_id        int
	Guid           string
	Filename       string
}

type PayloadType

type PayloadType struct {
	Type_id       int
	Type_name     string
	Type_template string
	Content_type  string
}

Jump to

Keyboard shortcuts

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