consts

package
v1.2.2-sp6 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	YAK_PROJECT_DATA_DB_NAME_RECOVERED   = "default-yakit.db"
	YAK_PROFILE_PLUGIN_DB_NAME_RECOVERED = "yakit-profile-plugin.db"
)
View Source
const SecretSalt = "sdfasdfasdfasdfjo[qwrjrioeqjopewjop23u790534u689u9R$%^&%&* &*()+"

Variables

View Source
var (
	YAK_BRIDGE_REMOTE_REVERSE_ADDR = "YAK_BRIDGE_REMOTE_REVERSE_ADDR"
	YAK_BRIDGE_LOCAL_REVERSE_ADDR  = "YAK_BRIDGE_LOCAL_REVERSE_ADDR"
	YAK_BRIDGE_ADDR                = "YAK_BRIDGE_ADDR"
	YAK_BRIDGE_SECRET              = "YAK_BRIDGE_SECRET"
	YAK_DNSLOG_BRIDGE_ADDR         = "YAK_DNSLOG_BRIDGE_ADDR"
	YAK_DNSLOG_BRIDGE_PASSWORD     = "YAK_DNSLOG_BRIDGE_PASSWORD"
	// 这个是用于绑定 runtime id 到 Risk 上的方式
	YAK_RUNTIME_ID   = "YAK_RUNTIME_ID"
	YAKIT_PLUGIN_ID  = "YAKIT_PLUGIN_ID"
	DefaultUserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36"

	YAK_PROJECT_DATA_DB_NAME   = "default-yakit.db"
	YAK_PROFILE_PLUGIN_DB_NAME = "yakit-profile-plugin.db"
	YAK_VERSION                = "dev"
	YAK_ONLINE_BASEURL         = "https://www.yaklang.com"
	YAK_ONLINE_BASEURL_PROXY   = ""

	CONST_YAK_DEFAULT_PROJECT_DATABASE_NAME = "YAK_DEFAULT_PROJECT_DATABASE_NAME"
	CONST_YAK_DEFAULT_PROFILE_DATABASE_NAME = "YAK_DEFAULT_PROFILE_DATABASE_NAME"
	CONST_YAK_EXTRA_DNS_SERVERS             = "YAK_EXTRA_DNS_SERVERS"
	CONST_YAK_OVERRIDE_DNS_SERVERS          = "YAK_OVERRIDE_DNS_SERVERS"
	CONST_YAK_SAVE_HTTPFLOW                 = "YAK_SAVE_HTTPFLOW"
)

Functions

func GetCVEDatabaseGzipPath

func GetCVEDatabaseGzipPath() string

func GetCVEDatabasePath

func GetCVEDatabasePath() string

func GetCVEDescriptionDatabaseGzipPath

func GetCVEDescriptionDatabaseGzipPath() string

func GetCVEDescriptionDatabasePath

func GetCVEDescriptionDatabasePath() string

func GetCurrentYakitPluginID

func GetCurrentYakitPluginID() string

func GetDefaultBaseHomeDir

func GetDefaultBaseHomeDir() string

func GetDefaultPublicReverseServer

func GetDefaultPublicReverseServer() string

func GetDefaultPublicReverseServerPassword

func GetDefaultPublicReverseServerPassword() string

func GetDefaultSaveHTTPFlowFromEnv

func GetDefaultSaveHTTPFlowFromEnv() bool

func GetDefaultYakitBaseDir

func GetDefaultYakitBaseDir() string

func GetDefaultYakitBaseTempDir

func GetDefaultYakitBaseTempDir() string

func GetDefaultYakitPluginDatabase

func GetDefaultYakitPluginDatabase(base string) string

func GetDefaultYakitProjectDatabase

func GetDefaultYakitProjectDatabase(base string) string

func GetDefaultYakitProjectsDir

func GetDefaultYakitProjectsDir() string

func GetExtraDNSServers

func GetExtraDNSServers() []string

func GetFfmpegPath

func GetFfmpegPath() string

func GetGormCVEDatabase

func GetGormCVEDatabase() *gorm.DB

func GetGormCVEDescriptionDatabase

func GetGormCVEDescriptionDatabase() *gorm.DB

func GetGormProfileDatabase

func GetGormProfileDatabase() *gorm.DB

func GetGormProjectDatabase

func GetGormProjectDatabase() *gorm.DB

func GetNucleiTemplatesDir

func GetNucleiTemplatesDir() string

func GetOnlineBaseUrl

func GetOnlineBaseUrl() string

func GetOnlineBaseUrlProxy

func GetOnlineBaseUrlProxy() string

func GetPalmVersion

func GetPalmVersion() string

func GetProfileDatabaseNameFromEnv

func GetProfileDatabaseNameFromEnv() string

func GetProjectDatabaseNameFromEnv

func GetProjectDatabaseNameFromEnv() string

func GetVulinboxPath added in v1.2.3

func GetVulinboxPath() string

func GetYakVersion

func GetYakVersion() string

func InitializeCVEDatabase

func InitializeCVEDatabase() (*gorm.DB, error)

func InitializeCVEDescriptionDatabase

func InitializeCVEDescriptionDatabase() (*gorm.DB, error)

func InitilizeDatabase

func InitilizeDatabase(projectDatabase string, profileDBName string)

func RefreshDNSServer

func RefreshDNSServer()

func SetDefaultPublicReverseServer

func SetDefaultPublicReverseServer(addr string)

func SetDefaultPublicReverseServerPassword

func SetDefaultPublicReverseServerPassword(addr string)

func SetDefaultYakitProfileDatabaseName

func SetDefaultYakitProfileDatabaseName(i string)

func SetDefaultYakitProjectDatabaseName

func SetDefaultYakitProjectDatabaseName(i string)

func SetGormCVEDatabase

func SetGormCVEDatabase(db *gorm.DB)

func SetGormProjectDatabase

func SetGormProjectDatabase(d *gorm.DB)

func SetOnlineBaseUrl

func SetOnlineBaseUrl(u string)

func SetOnlineBaseUrlProxy

func SetOnlineBaseUrlProxy(u string)

func SetPalmVersion

func SetPalmVersion(t string)

func SetYakVersion

func SetYakVersion(v string)

func ShouldOverrideDNSDefaultServers

func ShouldOverrideDNSDefaultServers() bool

func TempFile

func TempFile(pattern string) (*os.File, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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