mirror of
https://github.com/bettercap/bettercap
synced 2025-08-21 22:13:18 -07:00
Allow uppercase in sni domain name.
This commit is contained in:
parent
0ca092ba01
commit
028cb39dea
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ import (
|
|||
)
|
||||
|
||||
// poor man's TLS Client Hello with SNI extension parser :P
|
||||
var sniRe = regexp.MustCompile("\x00\x00.{4}\x00.{2}([a-z0-9]+([\\-\\.]{1}[a-z0-9]+)*\\.[a-z]{2,6})\x00")
|
||||
var sniRe = regexp.MustCompile("\x00\x00.{4}\x00.{2}([a-z0-9A-Z]+([\\-.]{1}[a-z0-9A-Z]+)*\\.[a-zA-Z]{2,6})\x00")
|
||||
|
||||
func sniParser(ip *layers.IPv4, pkt gopacket.Packet, tcp *layers.TCP) bool {
|
||||
data := tcp.Payload
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue