Documentation ¶
Index ¶
- Constants
- func AsRows(keys []string, vals []string) string
- func AsTable(columns []string, rows [][]string) string
- func Banner()
- func CreateDir(path string, perm os.FileMode) error
- func GenRandomString(n int) string
- func GenRandomToken() string
- type Alignment
- type AuthToken
- type CertDb
- func (d *CertDb) GetCertificate(site_name string, base_domain string) (*tls.Certificate, error)
- func (d *CertDb) Reset()
- func (d *CertDb) SetupCertificate(site_name string, domains []string) error
- func (d *CertDb) SignCertificateForHost(host string, phish_host string, port int) (cert *tls.Certificate, err error)
- type CertUser
- type Config
- func (c *Config) AddPhishlet(site string, pl *Phishlet)
- func (c *Config) GetAllDomains() []string
- func (c *Config) GetBaseDomain() string
- func (c *Config) GetEnabledSites() []string
- func (c *Config) GetPhishlet(site string) (*Phishlet, error)
- func (c *Config) GetPhishletNames() []string
- func (c *Config) GetServerIP() string
- func (c *Config) GetSiteDomain(site string) (string, bool)
- func (c *Config) IsActiveHostname(host string) bool
- func (c *Config) IsSiteEnabled(site string) bool
- func (c *Config) IsSiteHidden(site string) bool
- func (c *Config) ResetAllSites()
- func (c *Config) SetBaseDomain(domain string)
- func (c *Config) SetRedirectParam(param string)
- func (c *Config) SetRedirectUrl(url string)
- func (c *Config) SetServerIP(ip_addr string)
- func (c *Config) SetSiteDisabled(site string) error
- func (c *Config) SetSiteEnabled(site string) error
- func (c *Config) SetSiteHidden(site string, hide bool) error
- func (c *Config) SetSiteHostname(site string, domain string) bool
- func (c *Config) SetVerificationParam(param string)
- func (c *Config) SetVerificationToken(token string)
- type ConfigAuthToken
- type ConfigCredentials
- type ConfigForcePost
- type ConfigForcePostForce
- type ConfigForcePostSearch
- type ConfigPhishlet
- type ConfigPostField
- type ConfigProxyHost
- type ConfigSubFilter
- type DNSChallenge
- type ForcePost
- type ForcePostForce
- type ForcePostSearch
- type HTTPChallenge
- type Help
- func (h *Help) AddCommand(cmd string, category string, cmd_help string, info string, layer int, ...)
- func (h *Help) AddSubCommand(cmd string, sub_cmds []string, sub_disp string, cmd_help string)
- func (h *Help) GetCommands() []string
- func (h *Help) GetPrefixCommands(layer int) []string
- func (h *Help) GetPrefixCompleter(layer int) *readline.PrefixCompleter
- func (h *Help) Print(layer int)
- func (h *Help) PrintBrief(cmd string) error
- type HttpProxy
- type HttpServer
- type Nameserver
- type Phishlet
- func (p *Phishlet) Clear()
- func (p *Phishlet) GenerateTokenSet(tokens map[string]string) map[string]map[string]string
- func (p *Phishlet) GetLandingUrls(redirect_url string) ([]string, error)
- func (p *Phishlet) GetPhishHosts() []string
- func (p *Phishlet) LoadFromFile(site string, path string) error
- func (p *Phishlet) MimeExists(mime string) bool
- type PhishletVersion
- type PostField
- type ProxyHost
- type ProxySession
- type Session
- type SubFilter
- type TXTField
- type Terminal
Constants ¶
View Source
const ( CFG_SITE_DOMAINS = "site_domains" CFG_BASE_DOMAIN = "server" CFG_SERVER_IP = "ip" CFG_SITES_ENABLED = "sites_enabled" CFG_SITES_HIDDEN = "sites_hidden" CFG_REDIRECT_PARAM = "redirect_key" CFG_VERIFICATION_PARAM = "verification_key" CFG_VERIFICATION_TOKEN = "verification_token" CFG_REDIRECT_URL = "redirect_url" )
View Source
const ( AlignLeft = Alignment(0) AlignCenter = Alignment(1) AlignRight = Alignment(2) )
View Source
const ( DEFAULT_PROMPT = ": " LAYER_TOP = 1 )
View Source
const DEFAULT_REDIRECT_URL = "https://www.youtube.com/watch?v=dQw4w9WgXcQ" // Rick'roll
View Source
const (
VERSION = "2.2.2"
)
Variables ¶
This section is empty.
Functions ¶
func GenRandomString ¶
func GenRandomToken ¶
func GenRandomToken() string
Types ¶
type CertDb ¶
type CertDb struct { PrivateKey *rsa.PrivateKey CACert tls.Certificate // contains filtered or unexported fields }
func NewCertDb ¶
func NewCertDb(data_dir string, cfg *Config, ns *Nameserver, hs *HttpServer) (*CertDb, error)
func (*CertDb) GetCertificate ¶
func (*CertDb) SetupCertificate ¶
func (*CertDb) SignCertificateForHost ¶
type CertUser ¶
type CertUser struct { Email string Registration *acme.RegistrationResource // contains filtered or unexported fields }
func (CertUser) GetPrivateKey ¶
func (u CertUser) GetPrivateKey() crypto.PrivateKey
func (CertUser) GetRegistration ¶
func (u CertUser) GetRegistration() *acme.RegistrationResource
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) AddPhishlet ¶
func (*Config) GetAllDomains ¶
func (*Config) GetBaseDomain ¶
func (*Config) GetEnabledSites ¶
func (*Config) GetPhishletNames ¶
func (*Config) GetServerIP ¶
func (*Config) IsActiveHostname ¶
func (*Config) IsSiteEnabled ¶
func (*Config) IsSiteHidden ¶
func (*Config) ResetAllSites ¶
func (c *Config) ResetAllSites()
func (*Config) SetBaseDomain ¶
func (*Config) SetRedirectParam ¶
func (*Config) SetRedirectUrl ¶
func (*Config) SetServerIP ¶
func (*Config) SetSiteDisabled ¶
func (*Config) SetSiteEnabled ¶
func (*Config) SetVerificationParam ¶
func (*Config) SetVerificationToken ¶
type ConfigAuthToken ¶
type ConfigCredentials ¶
type ConfigCredentials struct { Username *ConfigPostField `mapstructure:"username"` Password *ConfigPostField `mapstructure:"password"` Custom *[]ConfigPostField `mapstructure:"custom"` }
type ConfigForcePost ¶
type ConfigForcePost struct { Path *string `mapstructure:"path"` Search *[]ConfigForcePostSearch `mapstructure:"search"` Force *[]ConfigForcePostForce `mapstructure:"force"` Type *string `mapstructure:"type"` }
type ConfigForcePostForce ¶
type ConfigForcePostSearch ¶
type ConfigPhishlet ¶
type ConfigPhishlet struct { Name string `mapstructure:"name"` ProxyHosts *[]ConfigProxyHost `mapstructure:"proxy_hosts"` SubFilters *[]ConfigSubFilter `mapstructure:"sub_filters"` AuthTokens *[]ConfigAuthToken `mapstructure:"auth_tokens"` AuthUrls []string `mapstructure:"auth_urls"` Credentials *ConfigCredentials `mapstructure:"credentials"` ForcePosts *[]ConfigForcePost `mapstructure:"force_post"` LandingPath *[]string `mapstructure:"landing_path"` }
type ConfigPostField ¶
type ConfigProxyHost ¶
type ConfigSubFilter ¶
type ConfigSubFilter struct { Hostname *string `mapstructure:"triggers_on"` Sub *string `mapstructure:"orig_sub"` Domain *string `mapstructure:"domain"` Search *string `mapstructure:"search"` Replace *string `mapstructure:"replace"` Mimes *[]string `mapstructure:"mimes"` RedirectOnly bool `mapstructure:"redirect_only"` }
type DNSChallenge ¶
type DNSChallenge struct {
// contains filtered or unexported fields
}
func (DNSChallenge) CleanUp ¶
func (ch DNSChallenge) CleanUp(domain, token, keyAuth string) error
func (DNSChallenge) Present ¶
func (ch DNSChallenge) Present(domain, token, keyAuth string) error
type ForcePostForce ¶
type ForcePostForce struct {
// contains filtered or unexported fields
}
type ForcePostSearch ¶
type ForcePostSearch struct {
// contains filtered or unexported fields
}
type HTTPChallenge ¶
type HTTPChallenge struct {
// contains filtered or unexported fields
}
func (HTTPChallenge) CleanUp ¶
func (ch HTTPChallenge) CleanUp(domain, token, keyAuth string) error
func (HTTPChallenge) Present ¶
func (ch HTTPChallenge) Present(domain, token, keyAuth string) error
type Help ¶
type Help struct {
// contains filtered or unexported fields
}
func (*Help) AddCommand ¶
func (*Help) AddSubCommand ¶
func (*Help) GetCommands ¶
func (*Help) GetPrefixCommands ¶
func (*Help) GetPrefixCompleter ¶
func (h *Help) GetPrefixCompleter(layer int) *readline.PrefixCompleter
func (*Help) PrintBrief ¶
type HttpProxy ¶
type HttpProxy struct { Server *http.Server Proxy *goproxy.ProxyHttpServer // contains filtered or unexported fields }
func NewHttpProxy ¶
type HttpServer ¶
type HttpServer struct {
// contains filtered or unexported fields
}
func NewHttpServer ¶
func NewHttpServer() (*HttpServer, error)
func (*HttpServer) AddACMEToken ¶
func (s *HttpServer) AddACMEToken(token string, keyAuth string)
func (*HttpServer) ClearACMETokens ¶
func (s *HttpServer) ClearACMETokens()
func (*HttpServer) Start ¶
func (s *HttpServer) Start()
type Nameserver ¶
type Nameserver struct {
// contains filtered or unexported fields
}
func NewNameserver ¶
func NewNameserver(cfg *Config) (*Nameserver, error)
func (*Nameserver) ClearTXT ¶
func (n *Nameserver) ClearTXT()
func (*Nameserver) Reset ¶
func (n *Nameserver) Reset()
func (*Nameserver) Start ¶
func (n *Nameserver) Start()
type Phishlet ¶
type Phishlet struct { Site string Name string Author string Version PhishletVersion // contains filtered or unexported fields }
func (*Phishlet) GenerateTokenSet ¶
func (*Phishlet) GetLandingUrls ¶
func (*Phishlet) GetPhishHosts ¶
func (*Phishlet) MimeExists ¶
type PhishletVersion ¶
type PhishletVersion struct {
// contains filtered or unexported fields
}
type ProxySession ¶
type Session ¶
type Session struct { Id string Name string Username string Password string Custom map[string]string Tokens map[string]map[string]*database.Token RedirectURL string IsDone bool IsAuthUrl bool }
func NewSession ¶
func (*Session) AddAuthToken ¶
func (*Session) SetPassword ¶
func (*Session) SetUsername ¶
type Terminal ¶
type Terminal struct {
// contains filtered or unexported fields
}
func NewTerminal ¶
Click to show internal directories.
Click to hide internal directories.