Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigDel = &cobra.Command{ Use: "del", Short: "删除访问密钥 (Delete access key)", Long: `删除访问密钥 (Delete access key)`, Run: func(cmd *cobra.Command, args []string) { cmdutil.ConfigDel() }, }
View Source
var ConfigLs = &cobra.Command{ Use: "ls", Short: "列出已配置过的访问密钥 (List configured access key)", Long: `列出已配置过的访问密钥 (List configured access key)`, Run: func(cmd *cobra.Command, args []string) { cmdutil.ConfigLs(selectAll) }, }
View Source
var ConfigMf = &cobra.Command{ Use: "mf", Short: "修改已配置过的访问密钥 (Modify configured access key)", Long: `修改已配置过的访问密钥 (Modify configured access key)`, Run: func(cmd *cobra.Command, args []string) { cmdutil.ConfigMf() }, }
View Source
var ConfigQuery = &cobra.Command{ Use: "query", Short: "查询访问凭证所属厂商 (Querying the provider to which the Access Key belongs)", Long: `查询访问凭证所属厂商 (Querying the provider to which the Access Key belongs)`, Run: func(cmd *cobra.Command, args []string) { provider := cmdutil.IdentifyProvider(queryAccessKeyId, querySecretAccessKey, querySessionToken) fmt.Println() if provider.EN == "" { log.Infoln("暂无法判断该访问凭证所归属的云厂商 (Unable to determine the cloud provider associated with the given access key.)") } else { log.Infof("当前访问凭证可能属于%s (The current access key may belong to %s.)", provider.CN, provider.EN) } }, }
View Source
var ConfigScan = &cobra.Command{ Use: "scan", Short: "扫描本地访问密钥 (Scan for local access keys)", Long: `扫描本地访问密钥 (Scan for local access keys)`, Run: func(cmd *cobra.Command, args []string) { cmdutil.ScanAccessKey(selectAll) }, }
View Source
var ConfigSw = &cobra.Command{ Use: "sw", Short: "切换访问密钥 (Switch access key)", Long: `切换访问密钥 (Switch access key)`, Run: func(cmd *cobra.Command, args []string) { cmdutil.ConfigSw() }, }
View Source
var RootCmd = &cobra.Command{ Use: "cf", Short: "cf is a cloud exploitation framework, designed for testing the security of cloud environments.", Long: ` ▄████ ▐████▄ ██▀ ▀██ ██████╗ ███████╗ ▀▀ ▀▀ ██╔════╝ ██╔════╝ ▀▀▀▀▀▀▀▀▀▀ ██║ █████╗ ▄▄ ▄▄ ██║ ██╔══╝ ██▄ ▄██ ╚██████╗ ██║ ▀████ ▐████▀ ╚═════╝ ╚═╝ github.com/teamssix/cf cf 是一个云环境利用框架,本工具仅可用于合法合规用途。 cf is a cloud exploitation framework, designed for testing the security of cloud environments. `, PersistentPreRun: func(cmd *cobra.Command, args []string) { util.Init(logLevel) }, }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.