mirror of
https://github.com/bettercap/bettercap
synced 2025-08-22 22:34:22 -07:00
Subdomains end with a dot
... or I'm just a brain in a van and choose to believe so
This commit is contained in:
parent
b349b16430
commit
e740af2d50
1 changed files with 2 additions and 2 deletions
|
@ -240,8 +240,8 @@ func (s *SSLStripper) processURL(url string) string {
|
||||||
// search for a known subdomain and replace it
|
// search for a known subdomain and replace it
|
||||||
found := false
|
found := false
|
||||||
for sub, repl := range subdomains {
|
for sub, repl := range subdomains {
|
||||||
what := fmt.Sprintf("://%s", sub)
|
what := fmt.Sprintf("://%s.", sub)
|
||||||
with := fmt.Sprintf("://%s", repl)
|
with := fmt.Sprintf("://%s.", repl)
|
||||||
if strings.Contains(url, what) {
|
if strings.Contains(url, what) {
|
||||||
url = strings.Replace(url, what, with, 1)
|
url = strings.Replace(url, what, with, 1)
|
||||||
found = true
|
found = true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue