Documentation ¶
Index ¶
- Variables
- func AddNewSecret(url string)
- func AddNewSubdomain(url string)
- func AddUrlVisited(url string)
- func CreateAuthority(certPath, keyPath string) error
- func ExecSearch() error
- func FileExists(filename string) bool
- func Find(slice []string, val string) (int, bool)
- func FolderExists(filename string) bool
- func GetHTTprotocol(url string) (protocol string, err error)
- func IsNewSecret(url string) bool
- func IsNewSubdomain(url string) bool
- func IsUrlVisited(url string) bool
- func ParseProxyResponse(js JavaScript)
- func ReadCertificateDisk(certFile, keyFile string) error
- func ReadFile(filePath string) (content []string, err error)
- func ReadFileIntoBytes(filePath string) (content []byte, err error)
- func SaveResults(fileLocation string, newContent []string) error
- func StartProxy(port string, upsteamProxySet bool) (err error)
- func TimeTrack(start time.Time, name string)
- type ConfigSignature
- type JavaScript
- type PatternSignature
- type Signature
- type SimpleSignature
- type UrlAddr
- type WebPage
Constants ¶
This section is empty.
Variables ¶
var ( InputURLs []string Threads int InputFile string OutputFile string SecretsOutputFile string Greedy bool Debug bool = false Crawl bool FindSecrets bool = false Sig string Silent bool SSL bool = false LocalPort int UpsteamProxy string Command string )
var Blacklisted_extensions []string
var Certificate string
var Key string
var PrintSecrets bool = false
var SSHFolder string
var Scope []string
var Signatures []Signature
var X509pair tls.Certificate
Functions ¶
func CreateAuthority ¶
createCertificateAuthority creates a new certificate authority
func ExecSearch ¶
func ExecSearch() error
func FileExists ¶
fileExists returns a bool if the file exists or not
func Find ¶
Find searches a []string for a substring and return it's position in the array and a bool for if it's in the array
func FolderExists ¶
folderExists returns a bool if the folder exists or not
func GetHTTprotocol ¶
GetHTTprotocol parses a given URL to get it's protocol e.g http:// or https://
func ParseProxyResponse ¶
func ParseProxyResponse(js JavaScript)
Process requests, print them to console and to file
func ReadCertificateDisk ¶
readCertificateDisk reads a certificate and key file from disk
func ReadFileIntoBytes ¶
func SaveResults ¶
SaveResults saves the content to the spcified file
func StartProxy ¶
start the proxy server
Types ¶
type ConfigSignature ¶
type ConfigSignature struct { Signatures []struct { Part string `yaml:"part"` Match string `yaml:"match,omitempty"` Name string `yaml:"name"` Regex string `yaml:"regex,omitempty"` Comment string `yaml:"comment,omitempty"` } `yaml:"signatures"` }
var ConfigSigs ConfigSignature
func (*ConfigSignature) GetSignatures ¶
func (config *ConfigSignature) GetSignatures() ([]Signature, error)
func (*ConfigSignature) ParseConfig ¶
func (config *ConfigSignature) ParseConfig(fileName string) error
type JavaScript ¶
type JavaScript struct { UrlAddr Content string //Content of the JS file // contains filtered or unexported fields }
func (*JavaScript) GetSecrets ¶
func (js *JavaScript) GetSecrets() error
GetSecrets uses regex to find secrets in the content of JS files
func (*JavaScript) GetSubDomains ¶
func (js *JavaScript) GetSubDomains() error
GetSubDomains uses regex to find subdomains in the content of JS files
type PatternSignature ¶
type PatternSignature struct {
// contains filtered or unexported fields
}
func (*PatternSignature) Match ¶
func (s *PatternSignature) Match(js *JavaScript) (secrets []string)
func (*PatternSignature) Name ¶
func (s *PatternSignature) Name() string
type Signature ¶
type Signature interface { Name() string Match(js *JavaScript) []string }
type SimpleSignature ¶
type SimpleSignature struct {
// contains filtered or unexported fields
}
func (*SimpleSignature) Match ¶
func (s *SimpleSignature) Match(js *JavaScript) (secrets []string)
func (*SimpleSignature) Name ¶
func (s *SimpleSignature) Name() string
type UrlAddr ¶
type UrlAddr struct {
// contains filtered or unexported fields
}
func (*UrlAddr) GetContent ¶
GetContent retrieves the content of urls - #### MAYBE CHECK FOR redirects and follow them????
func (*UrlAddr) GetRootDomain ¶
Get the Top Level Domain of the URL
type WebPage ¶
type WebPage struct { UrlAddr Content string //Contant of the webpage JSFiles []JavaScript }
func (*WebPage) GetJSLinks ¶
func (wp *WebPage) GetJSLinks() (JSFile []JavaScript, err error)
GetJSLinks retrieves the links to JS files from the content of the url