cmd

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "P1finger",
	Short: "一款红队行动下的重点资产指纹识别工具",
	Long: `
	██████╗  ██╗███████╗██╗███╗   ██╗ ██████╗ ███████╗██████╗ 
	██╔══██╗███║██╔════╝██║████╗  ██║██╔════╝ ██╔════╝██╔══██╗
	██████╔╝╚██║█████╗  ██║██╔██╗ ██║██║  ███╗█████╗  ██████╔╝
	██╔═══╝  ██║██╔══╝  ██║██║╚██╗██║██║   ██║██╔══╝  ██╔══██╗
	██║      ██║██║     ██║██║ ╚████║╚██████╔╝███████╗██║  ██║
	╚═╝      ╚═╝╚═╝     ╚═╝╚═╝  ╚═══╝ ╚═════╝ ╚══════╝╚═╝  ╚═
 
        一款红队行动下的重点资产指纹识别工具, Powered by P001water
`,
	PersistentPreRun: func(cmd *cobra.Command, args []string) {

		filePath := filepath.Join(vars.ExecDir, "p1fingerConf.yaml")
		err := vars.LoadAppConf(filePath, &vars.AppConf)
		if err != nil {
			gologger.Error().Msgf("%v", err)
			return
		}
	},
}

Functions

func CheckUpdate

func CheckUpdate() error

func Execute

func Execute()

Types

This section is empty.

Directories

Path Synopsis
P1finger

Jump to

Keyboard shortcuts

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