Documentation ¶
Index ¶
- Constants
- Variables
- func AllThirdPartyApplicationConfig() []*ypb.ThirdPartyApplicationConfig
- func ClearThirdPartyApplicationConfig()
- func ConvertCompatibleConfig(config *ypb.ThirdPartyApplicationConfig)
- func CreateCVEDatabase(path string, patch ...bool) (*gorm.DB, error)
- func CreateCVEDescriptionDatabase(path string) (*gorm.DB, error)
- func CreateProfileDatabase(path string) (*gorm.DB, error)
- func CreateProjectDatabase(path string) (*gorm.DB, error)
- func CreateVulinboxDatabase(path string) (*gorm.DB, error)
- func DebugProfileDatabase()
- func DebugProjectDatabase()
- func DeleteDatabaseFile(path string) error
- func GetAIPrimaryType() string
- func GetAuthTypeList(authType string) []string
- func GetCVEDatabaseGzipPath() string
- func GetCVEDatabasePath() string
- func GetCVEDescriptionDatabaseGzipPath() string
- func GetCVEDescriptionDatabasePath() string
- func GetCommonThirdPartyApplicationConfig(t string) (*ypb.ThirdPartyApplicationConfig, error)
- func GetCurrentYakitPluginID() string
- func GetDefaultBaseHomeDir() string
- func GetDefaultPublicReverseServer() string
- func GetDefaultPublicReverseServerPassword() string
- func GetDefaultSSADataBase() string
- func GetDefaultSaveHTTPFlowFromEnv() bool
- func GetDefaultYakitBaseDir() string
- func GetDefaultYakitBaseTempDir() string
- func GetDefaultYakitEngineDir() string
- func GetDefaultYakitPayloadsDir() string
- func GetDefaultYakitPluginDatabase(base string) string
- func GetDefaultYakitProjectDatabase(base string) string
- func GetDefaultYakitProjectsDir() string
- func GetExtraDNSServers() []string
- func GetFfmpegPath() string
- func GetGlobalHTTPAuthInfo(host, authType string) *ypb.AuthInfo
- func GetGormCVEDatabase() *gorm.DB
- func GetGormCVEDescriptionDatabase() *gorm.DB
- func GetGormDefaultSSADataBase() *gorm.DB
- func GetGormProfileDatabase() *gorm.DB
- func GetGormProjectDatabase() *gorm.DB
- func GetNucleiTemplatesDir() string
- func GetOnlineBaseUrl() string
- func GetOnlineBaseUrlProxy() string
- func GetPalmVersion() string
- func GetProfileDatabaseNameFromEnv() string
- func GetProjectDatabaseNameFromEnv() string
- func GetRegistryYakitHome()
- func GetSSAProjectDBNameDefault() string
- func GetThirdPartyApplicationConfig(t string, cfg any) error
- func GetVulinboxPath() string
- func GetYakVersion() string
- func InitializeCVEDatabase() (*gorm.DB, error)
- func InitializeCVEDescriptionDatabase() (*gorm.DB, error)
- func InitializeYakitDatabase(projectDatabase string, profileDBName string)
- func SetAIPrimaryType(t string)
- func SetDefaultPublicReverseServer(addr string)
- func SetDefaultPublicReverseServerPassword(addr string)
- func SetDefaultYakitProfileDatabaseName(i string)
- func SetDefaultYakitProjectDatabaseName(i string)
- func SetGlobalHTTPAuthInfo(info []*ypb.AuthInfo)
- func SetGormCVEDatabase(db *gorm.DB)
- func SetGormProjectDatabase(d *gorm.DB)
- func SetOnlineBaseUrl(u string)
- func SetOnlineBaseUrlProxy(u string)
- func SetPalmVersion(t string)
- func SetSSADataBaseName(name string)
- func SetYakVersion(v string)
- func TempFile(pattern string) (*os.File, error)
- func TempFileFast(datas ...any) string
- func UpdateThirdPartyApplicationConfig(config *ypb.ThirdPartyApplicationConfig)
- type Language
Constants ¶
View Source
const ( SQLiteExtend = "sqlite3_extended" SQLite = "sqlite3" DEFAULT_DRIVER = SQLite )
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" // 全局网络配置 GLOBAL_NETWORK_CONFIG = "GLOBAL_NETWORK_CONFIG" GLOBAL_NETWORK_CONFIG_INIT = "GLOBAL_NETWORK_CONFIG_INIT" // default http flow save config GLOBAL_HTTP_FLOW_SAVE = utils.NewBool(true) OnceYakitHome = new(sync.Once) GLOBAL_DB_SAVE_SYNC = utils.NewBool(false) )
View Source
var RegisterDriverOnce = new(sync.Once)
View Source
var (
YAK_SSA_PROJECT_DB_NAME = ""
)
Functions ¶
func AllThirdPartyApplicationConfig ¶ added in v1.2.9
func AllThirdPartyApplicationConfig() []*ypb.ThirdPartyApplicationConfig
AllThirdPartyApplicationConfig has deprecated
func ClearThirdPartyApplicationConfig ¶ added in v1.3.1
func ClearThirdPartyApplicationConfig()
func ConvertCompatibleConfig ¶
func ConvertCompatibleConfig(config *ypb.ThirdPartyApplicationConfig)
func CreateCVEDatabase ¶ added in v1.3.3
func CreateCVEDescriptionDatabase ¶ added in v1.3.3
func CreateProfileDatabase ¶ added in v1.3.3
func CreateProjectDatabase ¶ added in v1.3.3
func CreateVulinboxDatabase ¶ added in v1.3.3
func DebugProfileDatabase ¶ added in v1.3.3
func DebugProfileDatabase()
func DebugProjectDatabase ¶ added in v1.3.3
func DebugProjectDatabase()
func DeleteDatabaseFile ¶ added in v1.3.3
func GetAIPrimaryType ¶ added in v1.3.2
func GetAIPrimaryType() string
GetAIPrimaryType returns the primary type of AI
func GetAuthTypeList ¶ added in v1.2.9
func GetCVEDatabaseGzipPath ¶
func GetCVEDatabaseGzipPath() string
func GetCVEDatabasePath ¶
func GetCVEDatabasePath() string
func GetCVEDescriptionDatabaseGzipPath ¶
func GetCVEDescriptionDatabaseGzipPath() string
func GetCVEDescriptionDatabasePath ¶
func GetCVEDescriptionDatabasePath() string
func GetCommonThirdPartyApplicationConfig ¶
func GetCommonThirdPartyApplicationConfig(t string) (*ypb.ThirdPartyApplicationConfig, error)
func GetCurrentYakitPluginID ¶
func GetCurrentYakitPluginID() string
func GetDefaultBaseHomeDir ¶
func GetDefaultBaseHomeDir() string
func GetDefaultPublicReverseServer ¶
func GetDefaultPublicReverseServer() string
func GetDefaultPublicReverseServerPassword ¶
func GetDefaultPublicReverseServerPassword() string
func GetDefaultSSADataBase ¶ added in v1.3.3
func GetDefaultSSADataBase() string
func GetDefaultSaveHTTPFlowFromEnv ¶
func GetDefaultSaveHTTPFlowFromEnv() bool
func GetDefaultYakitBaseDir ¶
func GetDefaultYakitBaseDir() string
func GetDefaultYakitBaseTempDir ¶
func GetDefaultYakitBaseTempDir() string
func GetDefaultYakitEngineDir ¶
func GetDefaultYakitEngineDir() string
func GetDefaultYakitPayloadsDir ¶ added in v1.2.9
func GetDefaultYakitPayloadsDir() string
func GetDefaultYakitProjectsDir ¶
func GetDefaultYakitProjectsDir() string
func GetExtraDNSServers ¶
func GetExtraDNSServers() []string
func GetFfmpegPath ¶
func GetFfmpegPath() string
func GetGlobalHTTPAuthInfo ¶ added in v1.2.9
func GetGormCVEDatabase ¶
func GetGormDefaultSSADataBase ¶ added in v1.3.3
func GetGormProfileDatabase ¶
func GetGormProjectDatabase ¶
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 GetRegistryYakitHome ¶ added in v1.3.1
func GetRegistryYakitHome()
func GetSSAProjectDBNameDefault ¶ added in v1.3.3
func GetSSAProjectDBNameDefault() string
func GetThirdPartyApplicationConfig ¶ added in v1.2.9
GetThirdPartyApplicationConfig first argument is the type of third party application, second argument is the config struct pointer, this function will fill the config struct with the third party application config
func GetVulinboxPath ¶ added in v1.2.3
func GetVulinboxPath() string
func GetYakVersion ¶
func GetYakVersion() string
func InitializeCVEDatabase ¶
func InitializeYakitDatabase ¶ added in v1.3.3
func SetAIPrimaryType ¶ added in v1.3.2
func SetAIPrimaryType(t string)
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 SetGlobalHTTPAuthInfo ¶ added in v1.2.9
func SetGormCVEDatabase ¶
func SetGormProjectDatabase ¶
func SetOnlineBaseUrl ¶
func SetOnlineBaseUrl(u string)
func SetOnlineBaseUrlProxy ¶
func SetOnlineBaseUrlProxy(u string)
func SetPalmVersion ¶
func SetPalmVersion(t string)
func SetSSADataBaseName ¶ added in v1.3.3
func SetSSADataBaseName(name string)
func SetYakVersion ¶
func SetYakVersion(v string)
func TempFileFast ¶ added in v1.2.6
func UpdateThirdPartyApplicationConfig ¶ added in v1.2.9
func UpdateThirdPartyApplicationConfig(config *ypb.ThirdPartyApplicationConfig)
Types ¶
Click to show internal directories.
Click to hide internal directories.