Documentation ¶
Index ¶
- Constants
- Variables
- 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
- func GetDurationString(t_now time.Time, t_expire time.Time) (ret string)
- func ParseDurationString(s string) (t_dur time.Duration, err error)
- func ReadFromFile(path string) ([]byte, error)
- func SaveToFile(b []byte, fpath string, perm fs.FileMode) error
- type Alignment
- type Blacklist
- type BlacklistConfig
- type BlockIP
- type BodyAuthToken
- type CertDb
- type CertificatesConfig
- type Config
- func (c *Config) AddLure(site string, l *Lure)
- func (c *Config) AddPhishlet(site string, pl *Phishlet)
- func (c *Config) AddSubPhishlet(site string, parent_site string, customParams map[string]string) error
- func (c *Config) CleanUp()
- func (c *Config) DeleteLure(index int) error
- func (c *Config) DeleteLures(index []int) []int
- func (c *Config) DeleteSubPhishlet(site string) error
- func (c *Config) EnableProxy(enabled bool)
- func (c *Config) GetActiveHostnames(site string) []string
- func (c *Config) GetBaseDomain() string
- func (c *Config) GetBlacklistMode() string
- func (c *Config) GetDnsPort() int
- func (c *Config) GetEnabledSites() []string
- func (c *Config) GetHttpsPort() int
- 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) GetRedirectorsDir() string
- func (c *Config) GetServerBindIP() string
- func (c *Config) GetServerExternalIP() string
- func (c *Config) GetSiteDomain(site string) (string, bool)
- func (c *Config) GetSiteUnauthUrl(site string) (string, bool)
- 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) LoadSubPhishlets()
- func (c *Config) PhishletConfig(site string) *PhishletConfig
- func (c *Config) ResetAllSites()
- func (c *Config) SavePhishlets()
- func (c *Config) SaveSubPhishlets()
- func (c *Config) SetBaseDomain(domain string)
- func (c *Config) SetBlacklistMode(mode string)
- func (c *Config) SetDnsPort(port int)
- func (c *Config) SetHttpsPort(port int)
- 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) SetRedirectorsDir(path string)
- func (c *Config) SetServerBindIP(ip_addr string)
- func (c *Config) SetServerExternalIP(ip_addr 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, hostname string) bool
- func (c *Config) SetSiteUnauthUrl(site string, _url string) bool
- func (c *Config) SetUnauthUrl(_url string)
- func (c *Config) VerifyPhishlets()
- type ConfigAuthToken
- type ConfigCredentials
- type ConfigForcePost
- type ConfigForcePostForce
- type ConfigForcePostSearch
- type ConfigIntercept
- type ConfigJsInject
- type ConfigLogin
- type ConfigParam
- type ConfigPhishlet
- type ConfigPostField
- type ConfigProxyHost
- type ConfigSubFilter
- type CookieAuthToken
- type ForcePost
- type ForcePostForce
- type ForcePostSearch
- type GeneralConfig
- 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 HttpAuthToken
- type HttpProxy
- type HttpServer
- type Intercept
- type JsInject
- type LoginUrl
- type Lure
- type Nameserver
- type Phishlet
- func (p *Phishlet) Clear()
- func (p *Phishlet) GenerateTokenSet(tokens map[string]string) map[string]map[string]string
- func (p *Phishlet) GetLoginUrl() string
- func (p *Phishlet) GetLureUrl(path string) (string, error)
- func (p *Phishlet) GetPhishHosts(use_wildcards bool) []string
- func (p *Phishlet) GetScriptInject(hostname string, path string, params *map[string]string) (string, string, error)
- func (p *Phishlet) GetScriptInjectById(id string, params *map[string]string) (string, error)
- func (p *Phishlet) LoadFromFile(site string, path string, customParams *map[string]string) error
- func (p *Phishlet) MimeExists(mime string) bool
- type PhishletConfig
- type PhishletVersion
- type PostField
- type ProxyConfig
- type ProxyHost
- type ProxySession
- type Session
- type SubFilter
- type SubPhishlet
- type Terminal
Constants ¶
View Source
const ( CFG_GENERAL = "general" CFG_CERTIFICATES = "certificates" CFG_LURES = "lures" CFG_PROXY = "proxy" CFG_PHISHLETS = "phishlets" CFG_BLACKLIST = "blacklist" CFG_SUBPHISHLETS = "subphishlets" )
View Source
const ( CONVERT_TO_ORIGINAL_URLS = 0 CONVERT_TO_PHISHING_URLS = 1 )
View Source
const ( // borrowed from Modlishka project (https://github.com/drk1wi/Modlishka) MATCH_URL_REGEXP = `` /* 965-byte string literal not displayed */ MATCH_URL_REGEXP_WITHOUT_SCHEME = `` /* 926-byte string literal not displayed */ )
View Source
const ( AlignLeft = Alignment(0) AlignCenter = Alignment(1) AlignRight = Alignment(2) )
View Source
const ( DEFAULT_PROMPT = ": " LAYER_TOP = 1 )
View Source
const DEFAULT_UNAUTH_URL = "https://www.youtube.com/watch?v=dQw4w9WgXcQ" // Rick'roll
View Source
const DYNAMIC_REDIRECT_JS = `` /* 742-byte string literal not displayed */
View Source
const (
HOME_DIR = ".evilginx"
)
View Source
const (
VERSION = "3.2.0"
)
Variables ¶
View Source
var AUTH_TOKEN_TYPES = []string{"cookie", "body", "http"}
View Source
var BLACKLIST_MODES = []string{"all", "unauth", "noadd", "off"}
Functions ¶
func AsDescription ¶
func GenRandomAlphanumString ¶
func GenRandomString ¶
func GenRandomToken ¶
func GenRandomToken() string
func ReadFromFile ¶
Types ¶
type Blacklist ¶
type Blacklist struct {
// contains filtered or unexported fields
}
func NewBlacklist ¶
func (*Blacklist) IsBlacklisted ¶
func (*Blacklist) SetVerbose ¶
type BlacklistConfig ¶
type BlacklistConfig struct {
Mode string `mapstructure:"mode" json:"mode" yaml:"mode"`
}
type BodyAuthToken ¶
type BodyAuthToken struct {
// contains filtered or unexported fields
}
type CertificatesConfig ¶
type CertificatesConfig struct { }
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) AddPhishlet ¶
func (*Config) AddSubPhishlet ¶
func (*Config) DeleteLure ¶
func (*Config) DeleteLures ¶
func (*Config) DeleteSubPhishlet ¶
func (*Config) EnableProxy ¶
func (*Config) GetActiveHostnames ¶
func (*Config) GetBaseDomain ¶
func (*Config) GetBlacklistMode ¶
func (*Config) GetDnsPort ¶
func (*Config) GetEnabledSites ¶
func (*Config) GetHttpsPort ¶
func (*Config) GetLureByPath ¶
func (*Config) GetPhishletNames ¶
func (*Config) GetRedirectorsDir ¶
func (*Config) GetServerBindIP ¶
func (*Config) GetServerExternalIP ¶
func (*Config) IsActiveHostname ¶
func (*Config) IsLureHostnameValid ¶
func (*Config) IsSiteEnabled ¶
func (*Config) IsSiteHidden ¶
func (*Config) LoadSubPhishlets ¶
func (c *Config) LoadSubPhishlets()
func (*Config) PhishletConfig ¶
func (c *Config) PhishletConfig(site string) *PhishletConfig
func (*Config) ResetAllSites ¶
func (c *Config) ResetAllSites()
func (*Config) SavePhishlets ¶
func (c *Config) SavePhishlets()
func (*Config) SaveSubPhishlets ¶
func (c *Config) SaveSubPhishlets()
func (*Config) SetBaseDomain ¶
func (*Config) SetBlacklistMode ¶
func (*Config) SetDnsPort ¶
func (*Config) SetHttpsPort ¶
func (*Config) SetProxyAddress ¶
func (*Config) SetProxyPassword ¶
func (*Config) SetProxyPort ¶
func (*Config) SetProxyType ¶
func (*Config) SetProxyUsername ¶
func (*Config) SetRedirectorsDir ¶
func (*Config) SetServerBindIP ¶
func (*Config) SetServerExternalIP ¶
func (*Config) SetServerIP ¶
func (*Config) SetSiteDisabled ¶
func (*Config) SetSiteEnabled ¶
func (*Config) SetSiteHostname ¶
func (*Config) SetUnauthUrl ¶
func (*Config) VerifyPhishlets ¶
func (c *Config) VerifyPhishlets()
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 ConfigIntercept ¶
type ConfigJsInject ¶
type ConfigLogin ¶
type ConfigParam ¶
type ConfigPhishlet ¶
type ConfigPhishlet struct { Name string `mapstructure:"name"` RedirectUrl string `mapstructure:"redirect_url"` Params *[]ConfigParam `mapstructure:"params"` 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"` LoginItem *ConfigLogin `mapstructure:"login"` JsInject *[]ConfigJsInject `mapstructure:"js_inject"` Intercept *[]ConfigIntercept `mapstructure:"intercept"` }
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"` WithParams *[]string `mapstructure:"with_params"` }
type CookieAuthToken ¶
type CookieAuthToken struct {
// contains filtered or unexported fields
}
type ForcePostForce ¶
type ForcePostForce struct {
// contains filtered or unexported fields
}
type ForcePostSearch ¶
type ForcePostSearch struct {
// contains filtered or unexported fields
}
type GeneralConfig ¶
type GeneralConfig struct { Domain string `mapstructure:"domain" json:"domain" yaml:"domain"` OldIpv4 string `mapstructure:"ipv4" json:"ipv4" yaml:"ipv4"` ExternalIpv4 string `mapstructure:"external_ipv4" json:"external_ipv4" yaml:"external_ipv4"` BindIpv4 string `mapstructure:"bind_ipv4" json:"bind_ipv4" yaml:"bind_ipv4"` UnauthUrl string `mapstructure:"unauth_url" json:"unauth_url" yaml:"unauth_url"` HttpsPort int `mapstructure:"https_port" json:"https_port" yaml:"https_port"` DnsPort int `mapstructure:"dns_port" json:"dns_port" yaml:"dns_port"` }
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 HttpAuthToken ¶
type HttpAuthToken struct {
// contains filtered or unexported fields
}
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 Lure ¶
type Lure struct { Id string `mapstructure:"id" json:"id" yaml:"id"` Hostname string `mapstructure:"hostname" json:"hostname" yaml:"hostname"` Path string `mapstructure:"path" json:"path" yaml:"path"` RedirectUrl string `mapstructure:"redirect_url" json:"redirect_url" yaml:"redirect_url"` Phishlet string `mapstructure:"phishlet" json:"phishlet" yaml:"phishlet"` Redirector string `mapstructure:"redirector" json:"redirector" yaml:"redirector"` UserAgentFilter string `mapstructure:"ua_filter" json:"ua_filter" yaml:"ua_filter"` Info string `mapstructure:"info" json:"info" yaml:"info"` OgTitle string `mapstructure:"og_title" json:"og_title" yaml:"og_title"` OgDescription string `mapstructure:"og_desc" json:"og_desc" yaml:"og_desc"` OgImageUrl string `mapstructure:"og_image" json:"og_image" yaml:"og_image"` OgUrl string `mapstructure:"og_url" json:"og_url" yaml:"og_url"` PausedUntil int64 `mapstructure:"paused" json:"paused" yaml:"paused"` }
type Nameserver ¶
type Nameserver struct {
// contains filtered or unexported fields
}
func NewNameserver ¶
func NewNameserver(cfg *Config) (*Nameserver, error)
func (*Nameserver) Reset ¶
func (o *Nameserver) Reset()
func (*Nameserver) Start ¶
func (o *Nameserver) Start()
type Phishlet ¶
type Phishlet struct { Name string ParentName string Path string Author string Version PhishletVersion RedirectUrl string // contains filtered or unexported fields }
func NewPhishlet ¶
func (*Phishlet) GenerateTokenSet ¶
func (*Phishlet) GetLoginUrl ¶
func (*Phishlet) GetPhishHosts ¶
func (*Phishlet) GetScriptInject ¶
func (*Phishlet) GetScriptInjectById ¶
func (*Phishlet) LoadFromFile ¶
func (*Phishlet) MimeExists ¶
type PhishletConfig ¶
type PhishletConfig struct { Hostname string `mapstructure:"hostname" json:"hostname" yaml:"hostname"` UnauthUrl string `mapstructure:"unauth_url" json:"unauth_url" yaml:"unauth_url"` Enabled bool `mapstructure:"enabled" json:"enabled" yaml:"enabled"` Visible bool `mapstructure:"visible" json:"visible" yaml:"visible"` }
type PhishletVersion ¶
type PhishletVersion struct {
// contains filtered or unexported fields
}
type ProxyConfig ¶
type ProxyConfig struct { Type string `mapstructure:"type" json:"type" yaml:"type"` Address string `mapstructure:"address" json:"address" yaml:"address"` Port int `mapstructure:"port" json:"port" yaml:"port"` Username string `mapstructure:"username" json:"username" yaml:"username"` Password string `mapstructure:"password" json:"password" yaml:"password"` Enabled bool `mapstructure:"enabled" json:"enabled" yaml:"enabled"` }
type ProxySession ¶
type Session ¶
type Session struct { Id string Name string Username string Password string Custom map[string]string Params map[string]string BodyTokens map[string]string HttpTokens map[string]string CookieTokens map[string]map[string]*database.CookieToken RedirectURL string IsDone bool IsAuthUrl bool IsForwarded bool ProgressIndex int RedirectCount int PhishLure *Lure RedirectorName string LureDirPath string DoneSignal chan struct{} }
func NewSession ¶
func (*Session) AllCookieAuthTokensCaptured ¶
func (s *Session) AllCookieAuthTokensCaptured(cookieAuthTokens map[string][]*CookieAuthToken) bool
func (*Session) SetPassword ¶
func (*Session) SetUsername ¶
type SubPhishlet ¶
type Terminal ¶
type Terminal struct {
// contains filtered or unexported fields
}
func NewTerminal ¶
Click to show internal directories.
Click to hide internal directories.