mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 13:33:21 -07:00
new: basic ipv6 support
This commit is contained in:
parent
d0b5c34763
commit
bef4c6abaa
8 changed files with 115 additions and 35 deletions
|
@ -55,6 +55,11 @@ func httpGrabber(mod *SynScanner, ip string, port int) string {
|
|||
}
|
||||
}
|
||||
|
||||
// https://stackoverflow.com/questions/12260003/connect-returns-invalid-argument-with-ipv6-address
|
||||
if strings.Contains(ip, ":") {
|
||||
ip = fmt.Sprintf("[%s%%25%s]", ip, mod.Session.Interface.Name())
|
||||
}
|
||||
|
||||
url := fmt.Sprintf("%s://%s:%d/", schema, ip, port)
|
||||
resp, err := client.Get(url)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue