Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CarbonCmd = &cobra.Command{ Use: "carbon", Short: "Carbon - Infrastructure automation for offensive operations.", Long: `Infrastructure automation for offensive operations. - ℹ️ Checkout the latest docs [here](https://analog-substance.github.io/carbon/) - 😢 Have a problem? [Create an Issue](https://github.com/analog-substance/carbon/issues/new?title=Something%20is%20broken) - ❤️ Enjoying Carbon? [Star the Repo](https://github.com/analog-substance/carbon) ## Purpose Carbon's primary purpose is to provide a consistent execution environment to facilitate offensive security assessments. ## Dependencies - Packer to build images. - Terraform to provision infrastructure. - Golang project structure. ## Supported Providers - AWS - QEMU (Local) - VirtualBox (Local) - vSphere (in progress) - Multipass (Local) There are plans to bring support to the following: - GCP - Azure - VMware (Local) - QEMU (Remote) `, PersistentPreRunE: func(cmd *cobra.Command, args []string) error { if debug { common.LogLevel(slog.LevelDebug) } log.Debug("debug mode", "debug", debug) carbonConfigFile := &common.CarbonConfigFile{} err := viper.Unmarshal(carbonConfigFile) if err != nil { log.Debug("failed to unmarshal viper config to carbon config struct") } carbonObj = carbon.New(carbonConfigFile.Carbon) updateConfigHelp() return nil }, }
CarbonCmd represents the base command when called without any subcommands
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func ListingDir ¶ added in v0.2.0
func ListingDir(dir string)
Types ¶
This section is empty.
Source Files ¶
- carbon.go
- config.go
- dev.go
- dev_cloud.go
- dev_fs.go
- dev_fs_cat.go
- dev_platforms.go
- image.go
- image_boostrap.go
- image_build.go
- image_destroy.go
- image_list.go
- project.go
- project_add_machine.go
- project_apply.go
- project_list.go
- project_new.go
- vm.go
- vm_destroy.go
- vm_launch.go
- vm_list.go
- vm_restart.go
- vm_ssh.go
- vm_start.go
- vm_stop.go
- vm_vnc.go
Click to show internal directories.
Click to hide internal directories.