mirror of
https://github.com/bettercap/bettercap
synced 2025-08-22 14:24:38 -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
|
||||
found := false
|
||||
for sub, repl := range subdomains {
|
||||
what := fmt.Sprintf("://%s", sub)
|
||||
with := fmt.Sprintf("://%s", repl)
|
||||
what := fmt.Sprintf("://%s.", sub)
|
||||
with := fmt.Sprintf("://%s.", repl)
|
||||
if strings.Contains(url, what) {
|
||||
url = strings.Replace(url, what, with, 1)
|
||||
found = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue