Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &cobra.Command{ Use: "srctleaks", Short: "GitHub Public Repo OSINT", Long: `Checks for a public organization based upon company name arg and clones all repos then runs gitleaks on them to check for secrets. Also runs through a number of GitHub Dorks to check for leaked secrets throughout the GitHub universe. Example Commands: gorecon srctleaks -c SpyVsSpyEnterprises -d made-up-spy-domain.com --github-token ${GITHUB_TOKEN} -o path/to/output/dir gorecon srctleaks -c SpyVsSpyEnterprises -d made-up-spy-domain.com --github-token ${GITHUB_TOKEN} -o path/to/output/dir --check-all-org-users gorecon srctleaks --config config.yaml gorecon srctleaks --config config.yaml --check-all-org-users `, Run: func(cmd *cobra.Command, args []string) { var err error opts := Options{} if err = opts.LoadFromCommand(cmd); err != nil { localio.LogFatalf("Could not load Command Opts: %v", err) } if err = os.MkdirAll(opts.srctleaksOptions.Output, 0750); err != nil { gologger.Fatal().Msgf("Error creating directory: %s\n", err) } if err = srctleaks.Run(&opts.srctleaksOptions); err != nil { localio.LogFatalf("Could not run srctleaks.Run(): %v", err) } }, }
Command represents the srctleaks command
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.