Versions in this module Expand all Collapse all v2 v2.24.1 Jun 22, 2019 v2.21.1 Mar 27, 2019 Changes in this version + func Dot11ParseEAPOL(packet gopacket.Packet, dot11 *layers.Dot11) (ok bool, key *layers.EAPOLKey, apMac net.HardwareAddr, staMac net.HardwareAddr) + func NewDot11AssociationRequest(sta net.HardwareAddr, apBSSID net.HardwareAddr, apESSID string, seq uint16) (error, []byte) + func NewDot11Auth(sta net.HardwareAddr, apBSSID net.HardwareAddr, seq uint16) (error, []byte) type Queue + func (q *Queue) MarshalJSON() ([]byte, error) v2.13.1 Jan 29, 2019 Changes in this version + const TeamViewerPort + func Dot11ParseWPS(packet gopacket.Packet, dot11 *layers.Dot11) (ok bool, bssid net.HardwareAddr, info map[string]string) + type TeamViewerPacket struct + Command string + CommandCode uint8 + Magic uint16 + Version string + func ParseTeamViewer(data []byte) *TeamViewerPacket v2.11.1 Jan 7, 2019 Changes in this version + const MDNSPort + const NBNSMinRespSize + const NBNSPort + const UPNPPort + const WSDPort + var MDNSDestIP = net.ParseIP("224.0.0.251") + var MDNSDestMac = net.HardwareAddr + var MySQLFirstResponseOK = []byte + var MySQLGreeting = []byte + var MySQLSecondResponseOK = []byte + var NBNSRequest = []byte + var UPNPDestIP = net.ParseIP("239.255.255.250") + var UPNPDestMac = net.HardwareAddr + var UPNPDiscoveryPayload = []byte(...) + var WSDDestIP = net.ParseIP("239.255.255.250") + var WSDDiscoveryPayload = []byte(...) + func MDNSGetMeta(pkt gopacket.Packet) map[string]string + func MySQLGetFile(infile string) []byte + func NBNSGetMeta(pkt gopacket.Packet) map[string]string + func NewMDNSProbe(from net.IP, from_hw net.HardwareAddr) (error, []byte) + func UPNPGetMeta(pkt gopacket.Packet) map[string]string type Activity + Meta map[string]string type DHCPv6Layer + func (l *DHCPv6Layer) LayerType() gopacket.LayerType v2.3.1 Mar 23, 2018 Changes in this version + func Dot11Info(id layers.Dot11InformationElementID, info []byte) *layers.Dot11InformationElement + func Dot11InformationElementIDDSSetDecode(buf []byte) (channel int, err error) + func Dot11ParseDSSet(packet gopacket.Packet) (bool, int) + func NewDot11Beacon(conf Dot11ApConfig, seq uint16) (error, []byte) + type Dot11ApConfig struct + BSSID net.HardwareAddr + Channel int + Encryption bool + SSID string type Queue + func (q *Queue) TrackError() + func (q *Queue) TrackPacket(size uint64) + func (q *Queue) TrackSent(size uint64) v2.0.0 Feb 27, 2018 Changes in this version + const DHCP6OptClientFQDN + const DHCP6OptDNSDomains + const DHCP6OptDNSServers + const IPv6Prefix + const Krb5AsRequestType + const Krb5CryptDesCbcMd4 + const Krb5CryptDescCbcMd5 + const Krb5CryptRc4Hmac + const Krb5Krb5PrincipalNameType + const NTLM_BUFFER_LEN_OFFSET + const NTLM_BUFFER_MAXLEN_OFFSET + const NTLM_BUFFER_OFFSET_OFFSET + const NTLM_BUFFER_SIZE + const NTLM_SIG_OFFSET + const NTLM_TYPE1_DATA_OFFSET + const NTLM_TYPE1_DOMAIN_OFFSET + const NTLM_TYPE1_FLAGS_OFFSET + const NTLM_TYPE1_MINSIZE + const NTLM_TYPE1_WORKSTN_OFFSET + const NTLM_TYPE2_CHALLENGE_OFFSET + const NTLM_TYPE2_CONTEXT_OFFSET + const NTLM_TYPE2_DATA_OFFSET + const NTLM_TYPE2_FLAGS_OFFSET + const NTLM_TYPE2_MINSIZE + const NTLM_TYPE2_TARGETINFO_OFFSET + const NTLM_TYPE2_TARGET_OFFSET + const NTLM_TYPE3_DATA_OFFSET + const NTLM_TYPE3_DOMAIN_OFFSET + const NTLM_TYPE3_FLAGS_OFFSET + const NTLM_TYPE3_LMRESP_OFFSET + const NTLM_TYPE3_MINSIZE + const NTLM_TYPE3_NTRESP_OFFSET + const NTLM_TYPE3_SESSIONKEY_OFFSET + const NTLM_TYPE3_USER_OFFSET + const NTLM_TYPE3_WORKSTN_OFFSET + const NTLM_TYPE_OFFSET + const NtlmV1 + const NtlmV2 + var ErrNoCID = errors.New("Unexpected DHCPv6 packet, could not find client id.") + var ErrNoCipher = errors.New("No encryption type or cipher found") + var ErrNoCrypt = errors.New("No crypt alg found") + var ErrReqData = errors.New("Failed to extract pnData from as-req") + var Krb5AsReqParam = "application,explicit,tag:10" + var SerializationOptions = gopacket.SerializeOptions + func DHCP6EncodeList(elements []string) (encoded []byte) + func DHCP6For(what dhcp6.MessageType, to dhcp6.Packet, duid []byte) (err error, p dhcp6.Packet) + func Dot11IsDataFor(dot11 *layers.Dot11, station net.HardwareAddr) bool + func Dot11Parse(packet gopacket.Packet) (ok bool, radiotap *layers.RadioTap, dot11 *layers.Dot11) + func Dot11ParseEncryption(packet gopacket.Packet, dot11 *layers.Dot11) (bool, string, string, string) + func Dot11ParseIDSSID(packet gopacket.Packet) (bool, string) + func NewARP(from net.IP, from_hw net.HardwareAddr, to net.IP, req uint16) (layers.Ethernet, layers.ARP) + func NewARPReply(from net.IP, from_hw net.HardwareAddr, to net.IP, to_hw net.HardwareAddr) (error, []byte) + func NewARPRequest(from net.IP, from_hw net.HardwareAddr, to net.IP) (error, []byte) + func NewARPTo(from net.IP, from_hw net.HardwareAddr, to net.IP, to_hw net.HardwareAddr, ...) (layers.Ethernet, layers.ARP) + func NewDot11Deauth(a1 net.HardwareAddr, a2 net.HardwareAddr, a3 net.HardwareAddr, seq uint16) (error, []byte) + func NewTCPSyn(from net.IP, from_hw net.HardwareAddr, to net.IP, to_hw net.HardwareAddr, ...) (error, []byte) + func NewUDPProbe(from net.IP, from_hw net.HardwareAddr, to net.IP, port int) (error, []byte) + func Serialize(layers ...gopacket.SerializableLayer) (error, []byte) + type Activity struct + IP net.IP + MAC net.HardwareAddr + Source bool + type AuthSuite struct + OUI []byte + Type Dot11AuthType + type AuthSuiteSelector struct + Count uint16 + Suites []AuthSuite + type CipherSuite struct + OUI []byte + Type Dot11CipherType + type CipherSuiteSelector struct + Count uint16 + Suites []CipherSuite + type DHCPv6Layer struct + Raw []byte + func (l DHCPv6Layer) SerializeTo(b gopacket.SerializeBuffer, opts gopacket.SerializeOptions) error + type Dot11AuthType uint8 + const Dot11AuthMgt + const Dot11AuthPsk + func (a Dot11AuthType) String() string + type Dot11CipherType uint8 + const Dot11CipherCcmp + const Dot11CipherTkip + const Dot11CipherWep + const Dot11CipherWep104 + const Dot11CipherWrap + func (a Dot11CipherType) String() string + type Krb5Address struct + AddrType int + Krb5Address []byte + type Krb5EncryptedData struct + Cipher []byte + Etype int + Kvno int + type Krb5PnData struct + Krb5PnDataType int + Krb5PnDataValue []byte + type Krb5PrincipalName struct + NameString []string + NameType int + type Krb5ReqBody struct + AdditionalKrb5Tickets []Krb5Ticket + Cname Krb5PrincipalName + EncAuthData Krb5EncryptedData + Etype []int + From time.Time + KDCOptions asn1.BitString + Krb5Addresses []Krb5Address + Nonce int + Realm string + Rtime time.Time + Sname Krb5PrincipalName + Till time.Time + type Krb5Request struct + Krb5PnData []Krb5PnData + MsgType int + Pvno int + ReqBody Krb5ReqBody + func (kdc Krb5Request) String() (string, error) + type Krb5Ticket struct + EncPart Krb5EncryptedData + Realm string + Sname Krb5PrincipalName + TktVno int + type NTLMChallengeResponse struct + Challenge string + Response string + func (sr *NTLMChallengeResponse) Parsed() (NTLMChallengeResponseParsed, error) + func (sr *NTLMChallengeResponse) ParsedNtLMv2() (NTLMChallengeResponseParsed, error) + func (sr NTLMChallengeResponse) ParsedNtLMv1() (NTLMChallengeResponseParsed, error) + type NTLMChallengeResponseParsed struct + Domain string + LmHash string + NtHashOne string + NtHashTwo string + ServerChallenge string + Type int + User string + func (data NTLMChallengeResponseParsed) LcString() string + type NTLMResponseHeader struct + DomainLen uint16 + DomainMax uint16 + DomainOffset uint16 + HostLen uint16 + HostMax uint16 + HostOffset uint16 + LmLen uint16 + LmMax uint16 + LmOffset uint16 + NtLen uint16 + NtMax uint16 + NtOffset uint16 + Sig string + Type uint32 + UserLen uint16 + UserMax uint16 + UserOffset uint16 + type NTLMState struct + Pairs []NTLMChallengeResponse + Responses map[uint32]string + func NewNTLMState() *NTLMState + func (s *NTLMState) AddClientResponse(seq uint32, value string, cb func(data NTLMChallengeResponseParsed)) + func (s *NTLMState) AddServerResponse(key uint32, value string) + type PacketCallback func(pkt gopacket.Packet) + type Queue struct + Activities chan Activity + Protos map[string]uint64 + Stats Stats + Traffic map[string]*Traffic + func NewQueue(iface *network.Endpoint) (q *Queue, err error) + func (q *Queue) OnPacket(cb PacketCallback) + func (q *Queue) Send(raw []byte) error + func (q *Queue) Stop() + type RSNInfo struct + AuthKey AuthSuiteSelector + Group CipherSuite + Pairwise CipherSuiteSelector + Version uint16 + func Dot11InformationElementRSNInfoDecode(info []byte) (RSNInfo, error) + type Stats struct + Errors uint64 + PktReceived uint64 + Received uint64 + Sent uint64 + type Traffic struct + Received uint64 + Sent uint64 + type VendorInfo struct + AuthKey AuthSuiteSelector + Multicast CipherSuite + Unicast CipherSuiteSelector + WPAVersion uint16 + func Dot11InformationElementVendorInfoDecode(vendorInfo []byte) (VendorInfo, error)