<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: tcpdump command for showing the payload size? in General Topics</title>
    <link>https://community.checkpoint.com/t5/General-Topics/tcpdump-command-for-showing-the-payload-size/m-p/96003#M18910</link>
    <description>&lt;P&gt;i have one more doubt on the partial output as shown below-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;13:36:34.498560 IP 10.8.196.189.52598 &amp;gt; 10.7.1.204.citriximaclient: P 910749231:910749234(3) ack 2310723696 win 528&lt;BR /&gt;13:36:34.498596 IP 10.8.196.189.52598 &amp;gt; 10.7.1.204.citriximaclient: P 0:3(3) ack 1 win 528&lt;BR /&gt;13:36:34.508614 IP 10.7.1.204.citriximaclient &amp;gt; 10.8.196.189.52598: P 1:4(3) ack 3 win 512&lt;BR /&gt;13:36:34.508659 IP 10.7.1.204.citriximaclient &amp;gt; 10.8.196.189.52598: P 1:4(3) ack 3 win 512&lt;BR /&gt;13:36:34.508660 IP 10.7.1.204.citriximaclient &amp;gt; 10.8.196.189.52598: P 1:4(3) ack 3 win 512&lt;/P&gt;&lt;P&gt;how do we know that the payload size is between 2 and 4 bytes? is it the P 1:4[3]? is that what shows the payload size? but what does that mean? the 3 in the brackets is the payload size?&lt;/P&gt;</description>
    <pubDate>Thu, 03 Sep 2020 19:35:42 GMT</pubDate>
    <dc:creator>kb1</dc:creator>
    <dc:date>2020-09-03T19:35:42Z</dc:date>
    <item>
      <title>tcpdump command for showing the payload size?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/tcpdump-command-for-showing-the-payload-size/m-p/96001#M18908</link>
      <description>&lt;P&gt;So i tried searching for results on google and this is what i found-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;tcpdump -n -s0 -p -i eth0 'ip and tcp and (((ip[2:2] - ((ip[0]&amp;amp;0xf)&amp;lt;&amp;lt;2)) - ((tcp[12]&amp;amp;0xf0)&amp;gt;&amp;gt;2)) &amp;gt;= 4) and (((ip[2:2] - ((ip[0]&amp;amp;0xf)&amp;lt;&amp;lt;2)) - ((tcp[12]&amp;amp;0xf0)&amp;gt;&amp;gt;2)) &amp;lt;= 6)'&lt;/PRE&gt;&lt;P&gt;The above is used to find payload size between 4 and 6 bytes for any ip on eth0, i did try out the command and it looks like the checkpoint cli is accepting the command, my question is what if i want to enter a specific ip? Where do i type that in the above command and how would it look?&lt;/P&gt;&lt;P&gt;Thanks and regards in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 18:28:18 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/tcpdump-command-for-showing-the-payload-size/m-p/96001#M18908</guid>
      <dc:creator>kb1</dc:creator>
      <dc:date>2020-09-03T18:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: tcpdump command for showing the payload size?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/tcpdump-command-for-showing-the-payload-size/m-p/96002#M18909</link>
      <description>&lt;P&gt;While I'm not certain of the validity of the rest of the filter, you would simply add a 'and host &amp;lt;ip&amp;gt;' to the end or add a 'host &amp;lt;ip&amp;gt; and' at the beginning of it.&lt;/P&gt;
&lt;PRE&gt;tcpdump -n -s0 -p -i eth0 host 1.1.1.1 and 'ip and tcp and (((ip[2:2] - ((ip[0]&amp;amp;0xf)&amp;lt;&amp;lt;2)) - ((tcp[12]&amp;amp;0xf0)&amp;gt;&amp;gt;2)) &amp;gt;= 4) and (((ip[2:2] - ((ip[0]&amp;amp;0xf)&amp;lt;&amp;lt;2)) - ((tcp[12]&amp;amp;0xf0)&amp;gt;&amp;gt;2)) &amp;lt;= 6)'&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;or &lt;/P&gt;
&lt;PRE&gt;tcpdump -n -s0 -p -i eth0 'ip and tcp and (((ip[2:2] - ((ip[0]&amp;amp;0xf)&amp;lt;&amp;lt;2)) - ((tcp[12]&amp;amp;0xf0)&amp;gt;&amp;gt;2)) &amp;gt;= 4) and (((ip[2:2] - ((ip[0]&amp;amp;0xf)&amp;lt;&amp;lt;2)) - ((tcp[12]&amp;amp;0xf0)&amp;gt;&amp;gt;2)) &amp;lt;= 6)' and host 1.1.1.1&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 18:49:38 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/tcpdump-command-for-showing-the-payload-size/m-p/96002#M18909</guid>
      <dc:creator>masher</dc:creator>
      <dc:date>2020-09-03T18:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: tcpdump command for showing the payload size?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/tcpdump-command-for-showing-the-payload-size/m-p/96003#M18910</link>
      <description>&lt;P&gt;i have one more doubt on the partial output as shown below-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;13:36:34.498560 IP 10.8.196.189.52598 &amp;gt; 10.7.1.204.citriximaclient: P 910749231:910749234(3) ack 2310723696 win 528&lt;BR /&gt;13:36:34.498596 IP 10.8.196.189.52598 &amp;gt; 10.7.1.204.citriximaclient: P 0:3(3) ack 1 win 528&lt;BR /&gt;13:36:34.508614 IP 10.7.1.204.citriximaclient &amp;gt; 10.8.196.189.52598: P 1:4(3) ack 3 win 512&lt;BR /&gt;13:36:34.508659 IP 10.7.1.204.citriximaclient &amp;gt; 10.8.196.189.52598: P 1:4(3) ack 3 win 512&lt;BR /&gt;13:36:34.508660 IP 10.7.1.204.citriximaclient &amp;gt; 10.8.196.189.52598: P 1:4(3) ack 3 win 512&lt;/P&gt;&lt;P&gt;how do we know that the payload size is between 2 and 4 bytes? is it the P 1:4[3]? is that what shows the payload size? but what does that mean? the 3 in the brackets is the payload size?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 19:35:42 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/tcpdump-command-for-showing-the-payload-size/m-p/96003#M18910</guid>
      <dc:creator>kb1</dc:creator>
      <dc:date>2020-09-03T19:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: tcpdump command for showing the payload size?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/tcpdump-command-for-showing-the-payload-size/m-p/96006#M18911</link>
      <description>&lt;P&gt;add a -w &amp;lt;filename&amp;gt;&amp;nbsp; before the filter and have it write to a file, move that file over to a pc and open it with wireshark, that will give you the answer on that question.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 20:48:24 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/tcpdump-command-for-showing-the-payload-size/m-p/96006#M18911</guid>
      <dc:creator>Maarten_Sjouw</dc:creator>
      <dc:date>2020-09-03T20:48:24Z</dc:date>
    </item>
  </channel>
</rss>

