Skip to content

Instantly share code, notes, and snippets.

@mcupak
Created October 9, 2017 06:25
Show Gist options
  • Select an option

  • Save mcupak/684f9a23fc4e8d68ebb28c1f838ba07e to your computer and use it in GitHub Desktop.

Select an option

Save mcupak/684f9a23fc4e8d68ebb28c1f838ba07e to your computer and use it in GitHub Desktop.
Testing data source via tcpdump.
$ tcpdump -vv -X host 1.1.1.1
tcpdump: data link type PKTAP
tcpdump: listening on pktap, link-type PKTAP (Apple DLT_PKTAP), capture size 262144 bytes
23:31:22.697824 IP (tos 0x2,ECT(0), ttl 64, id 56259, offset 0, flags [DF], proto TCP (6), length 89)
host.61391 > 1.1.1.1.bc.googleusercontent.com.mysql: Flags [P.], cksum 0x042f (correct),
seq 1486677046:1486677083, ack 1535448375, win 4096, options [nop,nop,TS val 964209410 ecr 23504386],
length 37
0x0000: 0026 444e c879 acbc 32c9 f89b 0800 4502 .&DN.y..2.....E.
0x0010: 0059 dbc3 4000 4006 5ad4 c0a8 014d 689a .Y..@.@.Z....Mh.
0x0020: d975 efcf 0cea 589c e436 5b85 1537 8018 .u....X..6[..7..
0x0030: 1000 042f 0000 0101 080a 3978 ab02 0166 .../......9x...f
0x0040: a602 1703 0100 2089 3816 7e9e 2262 1811 ........8.~."b..
0x0050: 2cfe 9a18 444a 2e41 4fb2 1f7c 2137 d63c ,...DJ.AO..|!7.<
0x0060: e08c bef3 bab5 04 .......
23:31:22.697935 IP (tos 0x2,ECT(0), ttl 64, id 14471, offset 0, flags [DF], proto TCP (6), length 89)
host.61391 > 1.1.1.1.bc.googleusercontent.com.mysql: Flags [P.], cksum 0xd036 (correct),
seq 37:74, ack 1, win 4096, options [nop,nop,TS val 964209410 ecr 23504386],
length 37
0x0000: 0026 444e c879 acbc 32c9 f89b 0800 4502 .&DN.y..2.....E.
0x0010: 0059 3887 4000 4006 fe10 c0a8 014d 689a .Y8.@.@......Mh.
0x0020: d975 efcf 0cea 589c e45b 5b85 1537 8018 .u....X..[[..7..
0x0030: 1000 d036 0000 0101 080a 3978 ab02 0166 ...6......9x...f
0x0040: a602 1703 0100 2027 01e9 d138 ad18 e2ac .......'...8....
0x0050: 504b df4e 2368 4c61 eeaf 9741 5b3e 9e77 PK.N#hLa...A[>.w
0x0060: f944 84e1 cfbe 54 .D....T
23:31:22.698109 IP (tos 0x2,ECT(0), ttl 64, id 60299, offset 0, flags [DF], proto TCP (6), length 89)
host.61391 > 1.1.1.1.bc.googleusercontent.com.mysql: Flags [P.], cksum 0xba9e (correct),
seq 74:111, ack 1, win 4096, options [nop,nop,TS val 964209410 ecr 23504386],
length 37
0x0000: 0026 444e c879 acbc 32c9 f89b 0800 4502 .&DN.y..2.....E.
0x0010: 0059 eb8b 4000 4006 4b0c c0a8 014d 689a .Y..@.@.K....Mh.
0x0020: d975 efcf 0cea 589c e480 5b85 1537 8018 .u....X...[..7..
0x0030: 1000 ba9e 0000 0101 080a 3978 ab02 0166 ..........9x...f
0x0040: a602 1503 0100 200b 8f02 1d8a 78af 0b26 ............x..&
0x0050: eaaa f0dd 21c1 7506 614e fac6 6cf1 22c8 ....!.u.aN..l.".
0x0060: 89da d7d6 0b34 40 .....4@
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment