diff options
Diffstat (limited to 'magic/Magdir/sniffer')
-rw-r--r-- | magic/Magdir/sniffer | 356 |
1 files changed, 178 insertions, 178 deletions
diff --git a/magic/Magdir/sniffer b/magic/Magdir/sniffer index a7f6471b110e..25f5b83e3bbc 100644 --- a/magic/Magdir/sniffer +++ b/magic/Magdir/sniffer @@ -1,6 +1,6 @@ #------------------------------------------------------------------------------ -# $File: sniffer,v 1.27 2019/12/08 18:22:24 christos Exp $ +# $File: sniffer,v 1.28 2020/03/13 16:47:29 christos Exp $ # sniffer: file(1) magic for packet capture files # # From: guy@alum.mit.edu (Guy Harris) @@ -87,183 +87,183 @@ >6 beshort x \b.%d # clear that continuation level match >20 clear x ->20 belong 0 (No link-layer encapsulation ->20 belong 1 (Ethernet ->20 belong 2 (3Mb Ethernet ->20 belong 3 (AX.25 ->20 belong 4 (ProNET ->20 belong 5 (CHAOS ->20 belong 6 (Token Ring ->20 belong 7 (BSD ARCNET ->20 belong 8 (SLIP ->20 belong 9 (PPP ->20 belong 10 (FDDI ->20 belong 11 (RFC 1483 ATM ->20 belong 12 (Raw IP ->20 belong 13 (BSD/OS SLIP ->20 belong 14 (BSD/OS PPP ->20 belong 19 (Linux ATM Classical IP ->20 belong 50 (PPP or Cisco HDLC ->20 belong 51 (PPP-over-Ethernet ->20 belong 99 (Symantec Enterprise Firewall ->20 belong 100 (RFC 1483 ATM ->20 belong 101 (Raw IP ->20 belong 102 (BSD/OS SLIP ->20 belong 103 (BSD/OS PPP ->20 belong 104 (BSD/OS Cisco HDLC ->20 belong 105 (802.11 ->20 belong 106 (Linux Classical IP over ATM ->20 belong 107 (Frame Relay ->20 belong 108 (OpenBSD loopback ->20 belong 109 (OpenBSD IPsec encrypted ->20 belong 112 (Cisco HDLC ->20 belong 113 (Linux cooked v1 ->20 belong 114 (LocalTalk ->20 belong 117 (OpenBSD PFLOG ->20 belong 119 (802.11 with Prism header ->20 belong 122 (RFC 2625 IP over Fibre Channel ->20 belong 123 (SunATM ->20 belong 127 (802.11 with radiotap header ->20 belong 129 (Linux ARCNET ->20 belong 130 (Juniper Multi-Link PPP ->20 belong 131 (Juniper Multi-Link Frame Relay ->20 belong 132 (Juniper Encryption Services PIC ->20 belong 133 (Juniper GGSN PIC ->20 belong 134 (Juniper FRF.16 Frame Relay ->20 belong 135 (Juniper ATM2 PIC ->20 belong 136 (Juniper Advanced Services PIC ->20 belong 137 (Juniper ATM1 PIC ->20 belong 138 (Apple IP over IEEE 1394 ->20 belong 139 (SS7 MTP2 with pseudo-header ->20 belong 140 (SS7 MTP2 ->20 belong 141 (SS7 MTP3 ->20 belong 142 (SS7 SCCP ->20 belong 143 (DOCSIS ->20 belong 144 (Linux IrDA ->20 belong 147 (Private use 0 ->20 belong 148 (Private use 1 ->20 belong 149 (Private use 2 ->20 belong 150 (Private use 3 ->20 belong 151 (Private use 4 ->20 belong 152 (Private use 5 ->20 belong 153 (Private use 6 ->20 belong 154 (Private use 7 ->20 belong 155 (Private use 8 ->20 belong 156 (Private use 9 ->20 belong 157 (Private use 10 ->20 belong 158 (Private use 11 ->20 belong 159 (Private use 12 ->20 belong 160 (Private use 13 ->20 belong 161 (Private use 14 ->20 belong 162 (Private use 15 ->20 belong 163 (802.11 with AVS header ->20 belong 164 (Juniper Passive Monitor PIC ->20 belong 165 (BACnet MS/TP ->20 belong 166 (PPPD ->20 belong 167 (Juniper PPPoE ->20 belong 168 (Juniper PPPoE/ATM ->20 belong 169 (GPRS LLC ->20 belong 170 (GPF-T ->20 belong 171 (GPF-F ->20 belong 174 (Juniper PIC Peer ->20 belong 175 (Ethernet with Endace ERF header ->20 belong 176 (Packet-over-SONET with Endace ERF header ->20 belong 177 (Linux LAPD ->20 belong 178 (Juniper Ethernet ->20 belong 179 (Juniper PPP ->20 belong 180 (Juniper Frame Relay ->20 belong 181 (Juniper C-HDLC ->20 belong 182 (FRF.16 Frame Relay ->20 belong 183 (Juniper Voice PIC ->20 belong 184 (Arinc 429 ->20 belong 185 (Arinc 653 Interpartition Communication ->20 belong 186 (USB with FreeBSD header ->20 belong 187 (Bluetooth HCI H4 ->20 belong 188 (802.16 MAC Common Part Sublayer ->20 belong 189 (Linux USB ->20 belong 190 (Controller Area Network (CAN) v. 2.0B ->20 belong 191 (802.15.4 with Linux padding ->20 belong 192 (PPI ->20 belong 193 (802.16 MAC Common Part Sublayer plus radiotap header ->20 belong 194 (Juniper Integrated Service Module ->20 belong 195 (802.15.4 with FCS ->20 belong 196 (SITA ->20 belong 197 (Endace ERF ->20 belong 198 (Ethernet with u10 Networks pseudo-header ->20 belong 199 (IPMB ->20 belong 200 (Juniper Secure Tunnel ->20 belong 201 (Bluetooth HCI H4 with pseudo-header ->20 belong 202 (AX.25 with KISS header ->20 belong 203 (LAPD ->20 belong 204 (PPP with direction pseudo-header ->20 belong 205 (Cisco HDLC with direction pseudo-header ->20 belong 206 (Frame Relay with direction pseudo-header ->20 belong 209 (Linux IPMB ->20 belong 215 (802.15.4 with non-ASK PHY header ->20 belong 216 (Linux evdev events ->20 belong 219 (MPLS with label as link-layer header ->20 belong 220 (Memory-mapped Linux USB ->20 belong 221 (DECT ->20 belong 222 (AOS Space Data Link protocol ->20 belong 223 (Wireless HART ->20 belong 224 (Fibre Channel FC-2 ->20 belong 225 (Fibre Channel FC-2 with frame delimiters ->20 belong 226 (Solaris IPNET ->20 belong 227 (SocketCAN ->20 belong 228 (Raw IPv4 ->20 belong 229 (Raw IPv6 ->20 belong 230 (802.15.4 without FCS ->20 belong 231 (D-Bus messages ->20 belong 232 (Juniper Virtual Server ->20 belong 233 (Juniper SRX E2E ->20 belong 234 (Juniper Fibre Channel ->20 belong 235 (DVB-CI ->20 belong 236 (MUX27010 ->20 belong 237 (STANAG 5066 D_PDUs ->20 belong 238 (Juniper ATM CEMIC ->20 belong 239 (Linux netfilter log messages ->20 belong 240 (Hilscher netAnalyzer ->20 belong 241 (Hilscher netAnalyzer with delimiters ->20 belong 242 (IP-over-Infiniband ->20 belong 243 (MPEG-2 Transport Stream packets ->20 belong 244 (ng4t ng40 ->20 belong 245 (NFC LLCP ->20 belong 246 (Packet filter state syncing ->20 belong 247 (InfiniBand ->20 belong 248 (SCTP ->20 belong 249 (USB with USBPcap header ->20 belong 250 (Schweitzer Engineering Laboratories RTAC packets ->20 belong 251 (Bluetooth Low Energy air interface ->20 belong 252 (Wireshark Upper PDU export ->20 belong 253 (Linux netlink ->20 belong 254 (Bluetooth Linux Monitor ->20 belong 255 (Bluetooth Basic Rate/Enhanced Data Rate baseband packets ->20 belong 256 (Bluetooth Low Energy air interface with pseudo-header ->20 belong 257 (PROFIBUS data link layer ->20 belong 258 (Apple DLT_PKTAP ->20 belong 259 (Ethernet with 802.3 Clause 65 EPON preamble ->20 belong 260 (IPMI trace packets ->20 belong 261 (Z-Wave RF profile R1 and R2 packets ->20 belong 262 (Z-Wave RF profile R3 packets ->20 belong 263 (WattStopper Digital Lighting Mngmt/Legrand Nitoo Open Proto ->20 belong 264 (ISO 14443 messages ->20 belong 265 (IEC 62106 Radio Data System groups ->20 belong 266 (USB with Darwin header ->20 belong 267 (OpenBSD DLT_OPENFLOW ->20 belong 268 (IBM SDLC frames ->20 belong 269 (TI LLN sniffer frames ->20 belong 271 (Linux vsock ->20 belong 272 (Nordic Semiconductor Bluetooth LE sniffer frames ->20 belong 273 (Excentis XRA-31 DOCSIS 3.1 RF sniffer frames ->20 belong 274 (802.3br mPackets ->20 belong 275 (DisplayPort AUX channel monitoring data ->20 belong 276 (Linux cooked v2 ->20 belong 278 (OpenVizsla USB ->20 belong 279 (Elektrobit High Speed Capture and Replay (EBHSCR) ->20 belong 281 (Broadcom tag ->20 belong 282 (Broadcom tag (prepended) ->20 belong 284 (Marvell DSA ->20 belong 285 (Marvell EDSA +>20 belong&0x03FFFFFF 0 (No link-layer encapsulation +>20 belong&0x03FFFFFF 1 (Ethernet +>20 belong&0x03FFFFFF 2 (3Mb Ethernet +>20 belong&0x03FFFFFF 3 (AX.25 +>20 belong&0x03FFFFFF 4 (ProNET +>20 belong&0x03FFFFFF 5 (CHAOS +>20 belong&0x03FFFFFF 6 (Token Ring +>20 belong&0x03FFFFFF 7 (BSD ARCNET +>20 belong&0x03FFFFFF 8 (SLIP +>20 belong&0x03FFFFFF 9 (PPP +>20 belong&0x03FFFFFF 10 (FDDI +>20 belong&0x03FFFFFF 11 (RFC 1483 ATM +>20 belong&0x03FFFFFF 12 (Raw IP +>20 belong&0x03FFFFFF 13 (BSD/OS SLIP +>20 belong&0x03FFFFFF 14 (BSD/OS PPP +>20 belong&0x03FFFFFF 19 (Linux ATM Classical IP +>20 belong&0x03FFFFFF 50 (PPP or Cisco HDLC +>20 belong&0x03FFFFFF 51 (PPP-over-Ethernet +>20 belong&0x03FFFFFF 99 (Symantec Enterprise Firewall +>20 belong&0x03FFFFFF 100 (RFC 1483 ATM +>20 belong&0x03FFFFFF 101 (Raw IP +>20 belong&0x03FFFFFF 102 (BSD/OS SLIP +>20 belong&0x03FFFFFF 103 (BSD/OS PPP +>20 belong&0x03FFFFFF 104 (BSD/OS Cisco HDLC +>20 belong&0x03FFFFFF 105 (802.11 +>20 belong&0x03FFFFFF 106 (Linux Classical IP over ATM +>20 belong&0x03FFFFFF 107 (Frame Relay +>20 belong&0x03FFFFFF 108 (OpenBSD loopback +>20 belong&0x03FFFFFF 109 (OpenBSD IPsec encrypted +>20 belong&0x03FFFFFF 112 (Cisco HDLC +>20 belong&0x03FFFFFF 113 (Linux cooked v1 +>20 belong&0x03FFFFFF 114 (LocalTalk +>20 belong&0x03FFFFFF 117 (OpenBSD PFLOG +>20 belong&0x03FFFFFF 119 (802.11 with Prism header +>20 belong&0x03FFFFFF 122 (RFC 2625 IP over Fibre Channel +>20 belong&0x03FFFFFF 123 (SunATM +>20 belong&0x03FFFFFF 127 (802.11 with radiotap header +>20 belong&0x03FFFFFF 129 (Linux ARCNET +>20 belong&0x03FFFFFF 130 (Juniper Multi-Link PPP +>20 belong&0x03FFFFFF 131 (Juniper Multi-Link Frame Relay +>20 belong&0x03FFFFFF 132 (Juniper Encryption Services PIC +>20 belong&0x03FFFFFF 133 (Juniper GGSN PIC +>20 belong&0x03FFFFFF 134 (Juniper FRF.16 Frame Relay +>20 belong&0x03FFFFFF 135 (Juniper ATM2 PIC +>20 belong&0x03FFFFFF 136 (Juniper Advanced Services PIC +>20 belong&0x03FFFFFF 137 (Juniper ATM1 PIC +>20 belong&0x03FFFFFF 138 (Apple IP over IEEE 1394 +>20 belong&0x03FFFFFF 139 (SS7 MTP2 with pseudo-header +>20 belong&0x03FFFFFF 140 (SS7 MTP2 +>20 belong&0x03FFFFFF 141 (SS7 MTP3 +>20 belong&0x03FFFFFF 142 (SS7 SCCP +>20 belong&0x03FFFFFF 143 (DOCSIS +>20 belong&0x03FFFFFF 144 (Linux IrDA +>20 belong&0x03FFFFFF 147 (Private use 0 +>20 belong&0x03FFFFFF 148 (Private use 1 +>20 belong&0x03FFFFFF 149 (Private use 2 +>20 belong&0x03FFFFFF 150 (Private use 3 +>20 belong&0x03FFFFFF 151 (Private use 4 +>20 belong&0x03FFFFFF 152 (Private use 5 +>20 belong&0x03FFFFFF 153 (Private use 6 +>20 belong&0x03FFFFFF 154 (Private use 7 +>20 belong&0x03FFFFFF 155 (Private use 8 +>20 belong&0x03FFFFFF 156 (Private use 9 +>20 belong&0x03FFFFFF 157 (Private use 10 +>20 belong&0x03FFFFFF 158 (Private use 11 +>20 belong&0x03FFFFFF 159 (Private use 12 +>20 belong&0x03FFFFFF 160 (Private use 13 +>20 belong&0x03FFFFFF 161 (Private use 14 +>20 belong&0x03FFFFFF 162 (Private use 15 +>20 belong&0x03FFFFFF 163 (802.11 with AVS header +>20 belong&0x03FFFFFF 164 (Juniper Passive Monitor PIC +>20 belong&0x03FFFFFF 165 (BACnet MS/TP +>20 belong&0x03FFFFFF 166 (PPPD +>20 belong&0x03FFFFFF 167 (Juniper PPPoE +>20 belong&0x03FFFFFF 168 (Juniper PPPoE/ATM +>20 belong&0x03FFFFFF 169 (GPRS LLC +>20 belong&0x03FFFFFF 170 (GPF-T +>20 belong&0x03FFFFFF 171 (GPF-F +>20 belong&0x03FFFFFF 174 (Juniper PIC Peer +>20 belong&0x03FFFFFF 175 (Ethernet with Endace ERF header +>20 belong&0x03FFFFFF 176 (Packet-over-SONET with Endace ERF header +>20 belong&0x03FFFFFF 177 (Linux LAPD +>20 belong&0x03FFFFFF 178 (Juniper Ethernet +>20 belong&0x03FFFFFF 179 (Juniper PPP +>20 belong&0x03FFFFFF 180 (Juniper Frame Relay +>20 belong&0x03FFFFFF 181 (Juniper C-HDLC +>20 belong&0x03FFFFFF 182 (FRF.16 Frame Relay +>20 belong&0x03FFFFFF 183 (Juniper Voice PIC +>20 belong&0x03FFFFFF 184 (Arinc 429 +>20 belong&0x03FFFFFF 185 (Arinc 653 Interpartition Communication +>20 belong&0x03FFFFFF 186 (USB with FreeBSD header +>20 belong&0x03FFFFFF 187 (Bluetooth HCI H4 +>20 belong&0x03FFFFFF 188 (802.16 MAC Common Part Sublayer +>20 belong&0x03FFFFFF 189 (Linux USB +>20 belong&0x03FFFFFF 190 (Controller Area Network (CAN) v. 2.0B +>20 belong&0x03FFFFFF 191 (802.15.4 with Linux padding +>20 belong&0x03FFFFFF 192 (PPI +>20 belong&0x03FFFFFF 193 (802.16 MAC Common Part Sublayer plus radiotap header +>20 belong&0x03FFFFFF 194 (Juniper Integrated Service Module +>20 belong&0x03FFFFFF 195 (802.15.4 with FCS +>20 belong&0x03FFFFFF 196 (SITA +>20 belong&0x03FFFFFF 197 (Endace ERF +>20 belong&0x03FFFFFF 198 (Ethernet with u10 Networks pseudo-header +>20 belong&0x03FFFFFF 199 (IPMB +>20 belong&0x03FFFFFF 200 (Juniper Secure Tunnel +>20 belong&0x03FFFFFF 201 (Bluetooth HCI H4 with pseudo-header +>20 belong&0x03FFFFFF 202 (AX.25 with KISS header +>20 belong&0x03FFFFFF 203 (LAPD +>20 belong&0x03FFFFFF 204 (PPP with direction pseudo-header +>20 belong&0x03FFFFFF 205 (Cisco HDLC with direction pseudo-header +>20 belong&0x03FFFFFF 206 (Frame Relay with direction pseudo-header +>20 belong&0x03FFFFFF 209 (Linux IPMB +>20 belong&0x03FFFFFF 215 (802.15.4 with non-ASK PHY header +>20 belong&0x03FFFFFF 216 (Linux evdev events +>20 belong&0x03FFFFFF 219 (MPLS with label as link-layer header +>20 belong&0x03FFFFFF 220 (Memory-mapped Linux USB +>20 belong&0x03FFFFFF 221 (DECT +>20 belong&0x03FFFFFF 222 (AOS Space Data Link protocol +>20 belong&0x03FFFFFF 223 (Wireless HART +>20 belong&0x03FFFFFF 224 (Fibre Channel FC-2 +>20 belong&0x03FFFFFF 225 (Fibre Channel FC-2 with frame delimiters +>20 belong&0x03FFFFFF 226 (Solaris IPNET +>20 belong&0x03FFFFFF 227 (SocketCAN +>20 belong&0x03FFFFFF 228 (Raw IPv4 +>20 belong&0x03FFFFFF 229 (Raw IPv6 +>20 belong&0x03FFFFFF 230 (802.15.4 without FCS +>20 belong&0x03FFFFFF 231 (D-Bus messages +>20 belong&0x03FFFFFF 232 (Juniper Virtual Server +>20 belong&0x03FFFFFF 233 (Juniper SRX E2E +>20 belong&0x03FFFFFF 234 (Juniper Fibre Channel +>20 belong&0x03FFFFFF 235 (DVB-CI +>20 belong&0x03FFFFFF 236 (MUX27010 +>20 belong&0x03FFFFFF 237 (STANAG 5066 D_PDUs +>20 belong&0x03FFFFFF 238 (Juniper ATM CEMIC +>20 belong&0x03FFFFFF 239 (Linux netfilter log messages +>20 belong&0x03FFFFFF 240 (Hilscher netAnalyzer +>20 belong&0x03FFFFFF 241 (Hilscher netAnalyzer with delimiters +>20 belong&0x03FFFFFF 242 (IP-over-Infiniband +>20 belong&0x03FFFFFF 243 (MPEG-2 Transport Stream packets +>20 belong&0x03FFFFFF 244 (ng4t ng40 +>20 belong&0x03FFFFFF 245 (NFC LLCP +>20 belong&0x03FFFFFF 246 (Packet filter state syncing +>20 belong&0x03FFFFFF 247 (InfiniBand +>20 belong&0x03FFFFFF 248 (SCTP +>20 belong&0x03FFFFFF 249 (USB with USBPcap header +>20 belong&0x03FFFFFF 250 (Schweitzer Engineering Laboratories RTAC packets +>20 belong&0x03FFFFFF 251 (Bluetooth Low Energy air interface +>20 belong&0x03FFFFFF 252 (Wireshark Upper PDU export +>20 belong&0x03FFFFFF 253 (Linux netlink +>20 belong&0x03FFFFFF 254 (Bluetooth Linux Monitor +>20 belong&0x03FFFFFF 255 (Bluetooth Basic Rate/Enhanced Data Rate baseband packets +>20 belong&0x03FFFFFF 256 (Bluetooth Low Energy air interface with pseudo-header +>20 belong&0x03FFFFFF 257 (PROFIBUS data link layer +>20 belong&0x03FFFFFF 258 (Apple DLT_PKTAP +>20 belong&0x03FFFFFF 259 (Ethernet with 802.3 Clause 65 EPON preamble +>20 belong&0x03FFFFFF 260 (IPMI trace packets +>20 belong&0x03FFFFFF 261 (Z-Wave RF profile R1 and R2 packets +>20 belong&0x03FFFFFF 262 (Z-Wave RF profile R3 packets +>20 belong&0x03FFFFFF 263 (WattStopper Digital Lighting Mngmt/Legrand Nitoo Open Proto +>20 belong&0x03FFFFFF 264 (ISO 14443 messages +>20 belong&0x03FFFFFF 265 (IEC 62106 Radio Data System groups +>20 belong&0x03FFFFFF 266 (USB with Darwin header +>20 belong&0x03FFFFFF 267 (OpenBSD DLT_OPENFLOW +>20 belong&0x03FFFFFF 268 (IBM SDLC frames +>20 belong&0x03FFFFFF 269 (TI LLN sniffer frames +>20 belong&0x03FFFFFF 271 (Linux vsock +>20 belong&0x03FFFFFF 272 (Nordic Semiconductor Bluetooth LE sniffer frames +>20 belong&0x03FFFFFF 273 (Excentis XRA-31 DOCSIS 3.1 RF sniffer frames +>20 belong&0x03FFFFFF 274 (802.3br mPackets +>20 belong&0x03FFFFFF 275 (DisplayPort AUX channel monitoring data +>20 belong&0x03FFFFFF 276 (Linux cooked v2 +>20 belong&0x03FFFFFF 278 (OpenVizsla USB +>20 belong&0x03FFFFFF 279 (Elektrobit High Speed Capture and Replay (EBHSCR) +>20 belong&0x03FFFFFF 281 (Broadcom tag +>20 belong&0x03FFFFFF 282 (Broadcom tag (prepended) +>20 belong&0x03FFFFFF 284 (Marvell DSA +>20 belong&0x03FFFFFF 285 (Marvell EDSA # print default match >20 default x >>20 belong x (linktype#%u |