PktTool is a lightweight utility that can:
- scan for packet drivers in memory
- show their statistics
- sniff for packets on the network and display their contents
PktTool does not require the usual setup for mTCP - it works directly
with loaded packet drivers. This allows you to use it as a diagnostic
tool for packet drivers no matter what TCP/IP software you use.

Scanning for packet drivers |

Showing statistics for a loaded
packet driver |
Sample output from the packet sniffer mode showing UDP over IPv4 and
IPv6, ICMP, and an older IEEE 802.3 packet generated by my router:
mTCP pkttool by M Brutman (mbbrutman@gmail.com) (C)opyright 2008-2015
Version: Jul 2 2015
Details for driver at software interrupt: 0x60
Name: NE2000
Entry point: 0192:03CE
Version: 11 Class: 1 Type: 54
Interface Number: 0
Function flag: 2 (basic and extended functions)
Current receive mode: packets for this MAC and broadcast packets
MAC address: AC:DE:48:88:99:AA
Listening for incoming packets. Press [ESC] to quit.
13:33:36.79 To: 01:80:C2:00:00:00 From: 30:85:A9:68:E6:60 Len: 60 Type:
0026
0000 01 80 C2 00 00 00 30 85 A9 68 E6 60 00 26 42 42
......0..h.`.&BB
0010 03 00 00 00 00 00 80 00 30 85 A9 68 E6 60 00 00
........0..h.`..
0020 00 00 80 00 30 85 A9 68 E6 60 80 01 00 00 14 00
....0..h.`......
0030 02 00 00 00 00 00 00 00 02 DB 21
F6
..........!.
13:33:38.38 To: 33:33:00:00:00:0C From: 00:21:9B:29:79:BE Len: 208
Type: 86DD
IPv6: From: FE80:0000:0000:0000:FD79:90D5:2FD7:832E
To:
FD79:90D5:2FD7:832E:FF02:0000:0000:0000
Len: 154 Type: (17) UDP
0000 33 33 00 00 00 0C 00 21 9B 29 79 BE 86 DD 60 00
33.....!.)y...`.
0010 00 00 00 9A 11 01 FE 80 00 00 00 00 00 00 FD 79
...............y
0020 90 D5 2F D7 83 2E FF 02 00 00 00 00 00 00 00 00
../.............
0030 00 00 00 00 00 0C DB E8 07 6C 00 9A 7A 21 4D 2D
.........l..z!M-
0040 53 45 41 52 43 48 20 2A 20 48 54 54 50 2F 31 2E
SEARCH * HTTP/1.
0050 31 0D 0A 48 6F 73 74 3A 5B 46 46 30 32 3A 3A 43
1..Host:[FF02::C
0060 5D 3A 31 39 30 30 0D 0A 53 54 3A 75 72 6E 3A 4D
]:1900..ST:urn:M
0070 69 63 72 6F 73 6F 66 74 20 57 69 6E 64 6F 77 73
icrosoft Windows
0080 20 50 65 65 72 20 4E 61 6D 65 20 52 65 73 6F
6C Peer Name Resol
0090 75 74 69 6F 6E 20 50 72 6F 74 6F 63 6F 6C 3A 20
ution Protocol:
00A0 56 34 3A 49 50 56 36 3A 4C 69 6E 6B 4C 6F 63 61
V4:IPV6:LinkLoca
00B0 6C 0D 0A 4D 61 6E 3A 22 73 73 64 70 3A 64 69 73
l..Man:"ssdp:dis
00C0 63 6F 76 65 72 22 0D 0A 4D 58 3A 33 0D 0A 0D 0A
cover"..MX:3....
13:33:47.11 To: 30:85:A9:68:E6:60 From: 00:21:9B:29:79:BE Len: 75 Type:
0800
IPv4: From: 192.168.2.100 To: 8.8.4.4 Len: 61 Type: (17) UDP
0000 30 85 A9 68 E6 60 00 21 9B 29 79 BE 08 00 45 00
0..h.`.!.)y...E.
0010 00 3D 0A 7D 00 00 80 11 61 1B C0 A8 02 64 08 08
.=.}....a....d..
0020 04 04 C3 20 00 35 00 29 E2 E1 49 D9 01 00 00 01
... .5.)..I.....
0030 00 00 00 00 00 00 03 77 77 77 07 62 72 75 74 6D
.......www.brutm
0040 61 6E 03 63 6F 6D 00 00 01 00
01
an.com.....
13:33:47.17 To: 00:21:9B:29:79:BE From: 30:85:A9:68:E6:60 Len: 91 Type:
0800
IPv4: From: 8.8.4.4 To: 192.168.2.100 Len: 77 Type: (17) UDP
0000 00 21 9B 29 79 BE 30 85 A9 68 E6 60 08 00 45 00
.!.)y.0..h.`..E.
0010 00 4D C4 29 00 00 2E 11 F9 5E 08 08 04 04 C0 A8
.M.).....^......
0020 02 64 00 35 C3 20 00 39 DE 81 49 D9 81 80 00 01
.d.5. .9..I.....
0030 00 01 00 00 00 00 03 77 77 77 07 62 72 75 74 6D
.......www.brutm
0040 61 6E 03 63 6F 6D 00 00 01 00 01 C0 0C 00 01 00
an.com..........
0050 01 00 00 0E 0F 00 04 D0 49 20
18
........I .
13:33:47.17 To: 30:85:A9:68:E6:60 From: 00:21:9B:29:79:BE Len: 74 Type:
0800
IPv4: From: 192.168.2.100 To: 208.73.32.24 Len: 60 Type: (1) ICMP
0000 30 85 A9 68 E6 60 00 21 9B 29 79 BE 08 00 45 00
0..h.`.!.)y...E.
0010 00 3C 0A 7E 00 00 80 01 7C D5 C0 A8 02 64 D0 49
.<.~....|....d.I
0020 20 18 08 00 4D 5A 00 01 00 01 61 62 63 64 65
66 ...MZ....abcdef
0030 67 68 69 6A 6B 6C 6D 6E 6F 70 71 72 73 74 75 76
ghijklmnopqrstuv
0040 77 61 62 63 64 65 66 67 68
69
wabcdefghi
Download
PktTool is included with the other mTCP based
applications. They can be
downloaded from the main
mTCP page
here.
Created July 5th, 2015
(C)opyright Michael B. Brutman, mbbrutman at gmail.com