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 CertDb
- 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 ConfigPassRegex
- type ConfigPhishlet
- type ConfigProxyHost
- type ConfigSubFilter
- type ConfigUserRegex
- type DNSChallenge
- 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(path string) error
- func (p *Phishlet) MimeExists(mime string) bool
- 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.0.0"
)
Variables ¶
This section is empty.
Functions ¶
func GenRandomString ¶
func GenRandomToken ¶
func GenRandomToken() string
Types ¶
type CertDb ¶
type CertDb struct { PrivateKey *rsa.PrivateKey // contains filtered or unexported fields }
func NewCertDb ¶
func NewCertDb(data_dir string, cfg *Config, ns *Nameserver, hs *HttpServer) (*CertDb, error)
func (*CertDb) GetCertificate ¶
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 ConfigPassRegex ¶
type ConfigPhishlet ¶
type ConfigPhishlet struct { Name string `mapstructure:"name"` ProxyHosts []ConfigProxyHost `mapstructure:"proxy_hosts"` SubFilters []ConfigSubFilter `mapstructure:"sub_filters"` AuthTokens []ConfigAuthToken `mapstructure:"auth_tokens"` UserRegex ConfigUserRegex `mapstructure:"user_regex"` PassRegex ConfigPassRegex `mapstructure:"pass_regex"` LandingPath []string `mapstructure:"landing_path"` }
type ConfigProxyHost ¶
type ConfigSubFilter ¶
type ConfigSubFilter struct { Hostname string `mapstructure:"hostname"` Sub string `mapstructure:"sub"` Domain string `mapstructure:"domain"` Search string `mapstructure:"search"` Replace string `mapstructure:"replace"` Mimes []string `mapstructure:"mimes"` RedirectOnly bool `mapstructure:"redirect_only"` }
type ConfigUserRegex ¶
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 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 // contains filtered or unexported fields }
func (*Phishlet) GenerateTokenSet ¶
func (*Phishlet) GetLandingUrls ¶
func (*Phishlet) GetPhishHosts ¶
func (*Phishlet) LoadFromFile ¶
func (*Phishlet) MimeExists ¶
type ProxySession ¶
type Session ¶
type Session struct { Id string Name string Username string Password string Tokens map[string]string RedirectURL string IsDone bool }
func NewSession ¶
func (*Session) AddAuthToken ¶
func (*Session) SetPassword ¶
func (*Session) SetUsername ¶
Click to show internal directories.
Click to hide internal directories.