srctleaks

package
v2.7.2 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: MIT Imports: 5 Imported by: 0

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

type Options

type Options struct {
	// contains filtered or unexported fields
}

func (*Options) LoadFromCommand

func (opts *Options) LoadFromCommand(cmd *cobra.Command) error

Jump to

Keyboard shortcuts

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