We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://github.com/knownsec/ksubdomain/blob/master/core/device.go 68行改为:
if dns.QR { continue } for _, v := range dns.Questions { if string(v.Name) == domain { ethLayer := packet.Layer(layers.LayerTypeEthernet) if ethLayer != nil { eth := ethLayer.(*layers.Ethernet) signal <- EthTable{SrcIp: data[drviceName].SrcIp, SrcIpV6: data[drviceName].SrcIpV6, Device: drviceName, SrcMac: eth.SrcMAC, DstMac: eth.DstMAC} // 网关mac 和 本地mac return } } }
这样可以保证 net.LookupHost所走的系统dns,发出dns请求后没有收到dns回包也可以获取网卡
The text was updated successfully, but these errors were encountered:
No branches or pull requests
https://github.com/knownsec/ksubdomain/blob/master/core/device.go
68行改为:
这样可以保证 net.LookupHost所走的系统dns,发出dns请求后没有收到dns回包也可以获取网卡
The text was updated successfully, but these errors were encountered: