Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to capture and identify TLS #1144

Open
hktalent opened this issue Nov 14, 2023 · 0 comments
Open

Unable to capture and identify TLS #1144

hktalent opened this issue Nov 14, 2023 · 0 comments

Comments

@hktalent
Copy link

macos
$ uname -a
Darwin VUnderline51pwn.local 23.0.0 Darwin Kernel Version 23.0.0: Fri Sep 15 14:42:42 PDT 2023; root:xnu-10002.1.13~1/RELEASE_X86_64 x86_64

$ go version
go version go1.21.3 darwin/amd64

handle, err = pcap.OpenLive("en0", 1024, false, pcap.BlockForever)
	if err != nil {
		log.Println(err)
		return
	}
	defer handle.Close()
func CheckTls(packet gopacket.Packet) {
	if layer := packet.Layer(layers.LayerTypeTLS); nil != layer {
		if d, ok := layer.(*layers.TLS); ok {
			var hello = ClientHello{}
			if err := util1.Json.Unmarshal(d.Payload(), &hello); nil == err {
				log.Printf("%v\n", hello)
			}
		}
	}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant