From c1f7271a171bf9711ff2dd3d87dd6e1a850576f7 Mon Sep 17 00:00:00 2001 From: luis Date: Tue, 24 May 2011 14:46:59 +0000 Subject: [PATCH] The content of the TCP options for OS detection is represented in octal, which is not the most useful base to work with. This patch adds (as a comment) the hexadecimal representation of those TCP options. --- osscan2.cc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/osscan2.cc b/osscan2.cc index d6d1773f1..8dfe7a920 100644 --- a/osscan2.cc +++ b/osscan2.cc @@ -137,6 +137,21 @@ extern NmapOps o; * option 6: WScale (10), Nop, MSS (1460), SackP, Nop, Nop * option 7-11: WScale (10), Nop, MSS (265), T(0xFFFFFFFF,0x0), SackP * option 12: WScale (15), Nop, MSS (265), T(0xFFFFFFFF,0x0), SackP + * + * For convenience, here is the content of TCP options, represented in hexadecimal. + * 0='\x03\x03\n\x01\x02\x04\x05\xb4\x08\n\xff\xff\xff\xff\x00\x00\x00\x00\x04\x02' + * 1='\x02\x04\x05x\x03\x03\x00\x04\x02\x08\n\xff\xff\xff\xff\x00\x00\x00\x00\x00' + * 2='\x08\n\xff\xff\xff\xff\x00\x00\x00\x00\x01\x01\x03\x03\x05\x01\x02\x04\x02\x80' + * 3='\x04\x02\x08\n\xff\xff\xff\xff\x00\x00\x00\x00\x03\x03\n\x00' + * 4='\x02\x04\x02\x18\x04\x02\x08\n\xff\xff\xff\xff\x00\x00\x00\x00\x03\x03\n\x00' + * 5='\x02\x04\x01\t\x04\x02\x08\n\xff\xff\xff\xff\x00\x00\x00\x00' + * 6='\x03\x03\n\x01\x02\x04\x05\xb4\x04\x02\x01\x01' + * 7='\x03\x03\n\x01\x02\x04\x01\t\x08\n\xff\xff\xff\xff\x00\x00\x00\x00\x04\x02' + * 8='\x03\x03\n\x01\x02\x04\x01\t\x08\n\xff\xff\xff\xff\x00\x00\x00\x00\x04\x02' + * 9='\x03\x03\n\x01\x02\x04\x01\t\x08\n\xff\xff\xff\xff\x00\x00\x00\x00\x04\x02' + * 10='\x03\x03\n\x01\x02\x04\x01\t\x08\n\xff\xff\xff\xff\x00\x00\x00\x00\x04\x02' + * 11='\x03\x03\n\x01\x02\x04\x01\t\x08\n\xff\xff\xff\xff\x00\x00\x00\x00\x04\x02' + * 12='\x03\x03\x0f\x01\x02\x04\x01\t\x08\n\xff\xff\xff\xff\x00\x00\x00\x00\x04\x02' */ static struct { u8* val;