Versions in this module Expand all Collapse all v0 v0.1.3 Jan 5, 2023 v0.1.2 Jan 5, 2023 Changes in this version + const AlignCenter + const AlignLeft + const AlignRight + const BLACKLIST_MODE_FULL + const BLACKLIST_MODE_OFF + const BLACKLIST_MODE_UNAUTH + const CFG_BASE_DOMAIN + const CFG_BLACKLIST_MODE + const CFG_LURES + const CFG_PROXY_ADDRESS + const CFG_PROXY_ENABLED + const CFG_PROXY_PASSWORD + const CFG_PROXY_PORT + const CFG_PROXY_TYPE + const CFG_PROXY_USERNAME + const CFG_REDIRECT_PARAM + const CFG_REDIRECT_URL + const CFG_SERVER_IP + const CFG_SITES_ENABLED + const CFG_SITES_HIDDEN + const CFG_SITE_DOMAINS + const CFG_VERIFICATION_PARAM + const CFG_VERIFICATION_TOKEN + const CONVERT_TO_ORIGINAL_URLS + const CONVERT_TO_PHISHING_URLS + const DEFAULT_PROMPT + const DEFAULT_REDIRECT_URL + const HOSTS_DIR + const LAYER_TOP + const MATCH_URL_REGEXP + const MATCH_URL_REGEXP_WITHOUT_SCHEME + const VERSION + func AsDescription(keys []string, vals []string) string + 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 GenRandomAlphanumString(n int) string + func GenRandomString(n int) string + func GenRandomToken() string + type Alignment int + type AuthToken struct + type Blacklist struct + func NewBlacklist(path string) (*Blacklist, error) + func (bl *Blacklist) AddIP(ip string) error + func (bl *Blacklist) IsBlacklisted(ip string) bool + type BlockIP struct + type CertDb struct + CACert tls.Certificate + PrivateKey *rsa.PrivateKey + func NewCertDb(data_dir string, cfg *Config, ns *Nameserver, hs *HttpServer) (*CertDb, error) + func (d *CertDb) GetHostnameCertificate(hostname string) (*tls.Certificate, error) + func (d *CertDb) GetPhishletCertificate(site_name string, base_domain string) (*tls.Certificate, error) + func (d *CertDb) Reset() + func (d *CertDb) SetupHostnameCertificate(hostname string) error + func (d *CertDb) SetupPhishletCertificate(site_name string, domains []string) error + func (d *CertDb) SignCertificateForHost(host string, phish_host string, port int) (cert *tls.Certificate, err error) + type CertUser struct + Email string + Registration *registration.Resource + func (u CertUser) GetEmail() string + func (u CertUser) GetPrivateKey() crypto.PrivateKey + func (u CertUser) GetRegistration() *registration.Resource + type Config struct + func NewConfig(cfg_dir string, path string) (*Config, error) + func (c *Config) AddLure(site string, l *Lure) + func (c *Config) AddPhishlet(site string, pl *Phishlet) + func (c *Config) DeleteLure(index int) error + func (c *Config) DeleteLures(index []int) []int + func (c *Config) EnableProxy(enabled bool) + func (c *Config) GetAllDomains() []string + func (c *Config) GetBaseDomain() string + func (c *Config) GetBlacklistMode() string + func (c *Config) GetEnabledSites() []string + func (c *Config) GetLure(index int) (*Lure, error) + func (c *Config) GetLureByPath(site string, path string) (*Lure, error) + 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) GetTemplatesDir() string + func (c *Config) IsActiveHostname(host string) bool + func (c *Config) IsLureHostnameValid(hostname 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) SetBlacklistMode(mode string) + func (c *Config) SetLure(index int, l *Lure) error + func (c *Config) SetProxyAddress(address string) + func (c *Config) SetProxyPassword(password string) + func (c *Config) SetProxyPort(port int) + func (c *Config) SetProxyType(ptype string) + func (c *Config) SetProxyUsername(username 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) SetTemplatesDir(path string) + func (c *Config) SetVerificationParam(param string) + func (c *Config) SetVerificationToken(token string) + type ConfigAuthToken struct + Domain string + Keys []string + type ConfigCredentials struct + Custom *[]ConfigPostField + Password *ConfigPostField + Username *ConfigPostField + type ConfigForcePost struct + Force *[]ConfigForcePostForce + Path *string + Search *[]ConfigForcePostSearch + Type *string + type ConfigForcePostForce struct + Key *string + Value *string + type ConfigForcePostSearch struct + Key *string + Search *string + type ConfigJsInject struct + Script *string + TriggerDomains *[]string + TriggerParams []string + TriggerPaths *[]string + type ConfigLogin struct + Domain *string + Path *string + type ConfigPhishlet struct + AuthTokens *[]ConfigAuthToken + AuthUrls []string + Credentials *ConfigCredentials + ForcePosts *[]ConfigForcePost + JsInject *[]ConfigJsInject + LandingPath *[]string + LoginItem *ConfigLogin + Name string + ProxyHosts *[]ConfigProxyHost + SubFilters *[]ConfigSubFilter + type ConfigPostField struct + Key *string + Search *string + Type string + type ConfigProxyHost struct + AutoFilter *bool + Domain *string + IsLanding bool + OrigSub *string + PhishSub *string + Session bool + type ConfigSubFilter struct + Domain *string + Hostname *string + Mimes *[]string + RedirectOnly bool + Replace *string + Search *string + Sub *string + WithParams *[]string + type ForcePost struct + type ForcePostForce struct + type ForcePostSearch struct + type HTTPChallenge struct + func (ch HTTPChallenge) CleanUp(domain, token, keyAuth string) error + func (ch HTTPChallenge) Present(domain, token, keyAuth string) error + type Help struct + func NewHelp() (*Help, error) + 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 struct + Proxy *goproxy.ProxyHttpServer + Server *http.Server + func NewHttpProxy(hostname string, port int, cfg *Config, crt_db *CertDb, db *database.Database, ...) (*HttpProxy, error) + func (p *HttpProxy) Start() error + func (p *HttpProxy) TLSConfigFromCA() func(host string, ctx *goproxy.ProxyCtx) (*tls.Config, error) + type HttpServer struct + func NewHttpServer() (*HttpServer, error) + func (s *HttpServer) AddACMEToken(token string, keyAuth string) + func (s *HttpServer) ClearACMETokens() + func (s *HttpServer) Start() + type JsInject struct + type LoginUrl struct + type Lure struct + Hostname string + Info string + OgDescription string + OgImageUrl string + OgTitle string + OgUrl string + Path string + Phishlet string + RedirectUrl string + Template string + UserAgentFilter string + type Nameserver struct + func NewNameserver(cfg *Config) (*Nameserver, error) + func (n *Nameserver) AddTXT(fqdn string, value string, ttl int) + func (n *Nameserver) ClearTXT() + func (n *Nameserver) Reset() + func (n *Nameserver) Start() + type Phishlet struct + Author string + Name string + Site string + Version PhishletVersion + func NewPhishlet(site string, path string, cfg *Config) (*Phishlet, error) + func (p *Phishlet) Clear() + func (p *Phishlet) GenerateTokenSet(tokens map[string]string) map[string]map[string]string + func (p *Phishlet) GetLandingUrls(redirect_url string, inc_token bool) ([]string, error) + func (p *Phishlet) GetLoginUrl() string + func (p *Phishlet) GetLureUrl(path string) (string, error) + func (p *Phishlet) GetPhishHosts() []string + func (p *Phishlet) GetScriptInject(hostname string, path string, params *map[string]string) (string, error) + func (p *Phishlet) LoadFromFile(site string, path string) error + func (p *Phishlet) MimeExists(mime string) bool + type PhishletVersion struct + type PostField struct + type ProxyHost struct + type ProxySession struct + Created bool + Index int + PhishDomain string + SessionId string + type Session struct + Custom map[string]string + Id string + IsAuthUrl bool + IsDone bool + IsForwarded bool + Name string + Params map[string]string + Password string + PhishLure *Lure + RedirectCount int + RedirectURL string + Tokens map[string]map[string]*database.Token + Username string + func NewSession(name string) (*Session, error) + func (s *Session) AddAuthToken(domain string, key string, value string, path string, http_only bool, ...) bool + func (s *Session) SetCustom(name string, value string) + func (s *Session) SetPassword(password string) + func (s *Session) SetUsername(username string) + type SubFilter struct + type TXTField struct + type Terminal struct + func NewTerminal(p *HttpProxy, cfg *Config, crt_db *CertDb, db *database.Database, ...) (*Terminal, error) + func (t *Terminal) Close() + func (t *Terminal) DoWork() + type Whitelist struct + func NewWhitelist(path string, dbPath string) (*Whitelist, error, *geoip2.Reader) + func (wl *Whitelist) AddCountry(c string) + func (wl *Whitelist) DeleteCountry(c string) + func (wl *Whitelist) IsIPFromWhitelistedCountry(ip string, db *geoip2.Reader) bool + func (wl *Whitelist) WriteToFile()