<?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: RegEx - Pattern Match in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/regex-pattern-match/m-p/39937#M942</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;I'm trying to create the pattern to reset the connection if the connection comes from Internet Explorer.&lt;/P&gt;&lt;P&gt;I took PCAP with wireshark and user-agent shows as : "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko" (there is \r\n at the end but I think its wireshark? )&lt;/P&gt;&lt;P&gt;Nevertheless&lt;/P&gt;&lt;P&gt;I copied my text to RegExr; and did my regular expression to match.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;.*Mozilla\/5\.0\s\(Windows\sNT\s6\.1\;\sWOW64\;\sTrident\/7\.0\;\srv\:11\.0\)\slike\sGecko&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it highlights the text, meaning It is a valid expression, Palo Alto takes it, and while I was troubleshooting I even got some hits but internet explorer works as normal.&lt;/P&gt;&lt;P&gt;Can you tell if this is even possible? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 08 Mar 2015 03:01:03 GMT</pubDate>
    <dc:creator>Mariusz.pianka</dc:creator>
    <dc:date>2015-03-08T03:01:03Z</dc:date>
    <item>
      <title>RegEx - Pattern Match</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/regex-pattern-match/m-p/39932#M937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm attempting to build a pattern match for a custom vulnerability.&amp;nbsp; Here are the criteria:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;File is always a random 24 character file with a '.exe' extension&lt;/LI&gt;&lt;LI&gt;First three characters are always 'e54'&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had the following regex built, but the PA doesn't like it for some reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(e54([a-zA-Z0-9]{21})\.exe)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It gives me some invalid character internal error.&amp;nbsp; Any thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 12:29:44 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/regex-pattern-match/m-p/39932#M937</guid>
      <dc:creator>mrsold</dc:creator>
      <dc:date>2014-10-24T12:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: RegEx - Pattern Match</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/regex-pattern-match/m-p/39933#M938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;SPAN class="GINGER_SOFTWARE_mark"&gt;mrsold&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3b3b3b; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;A Pattern must be at least 7 bytes. &lt;/SPAN&gt;In the entire pattern there must exist at least one 7 byte string that has fixed values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://live.paloaltonetworks.com/docs/DOC-1499"&gt;Regular expression syntax for patterns in custom app signatures&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 12:33:22 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/regex-pattern-match/m-p/39933#M938</guid>
      <dc:creator>HULK</dc:creator>
      <dc:date>2014-10-24T12:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: RegEx - Pattern Match</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/regex-pattern-match/m-p/39934#M939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P&gt;HULK wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Hello &lt;SPAN class="GINGER_SOFTWARE_mark"&gt;mrsold&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #3b3b3b; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;A Pattern must be at least 7 bytes. &lt;/SPAN&gt;In the entire pattern there must exist at least one 7 byte string that has fixed values.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;A _jive_internal="true" data-containerid="2010" data-containertype="14" data-objectid="1499" data-objecttype="102" href="https://live.paloaltonetworks.com/docs/DOC-1499"&gt;Regular expression syntax for patterns in custom app signatures&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;Thanks Hulk.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I counting wrong?&amp;nbsp; I thought that string I posted is at least 7 bytes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 16:18:08 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/regex-pattern-match/m-p/39934#M939</guid>
      <dc:creator>mrsold</dc:creator>
      <dc:date>2014-10-24T16:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: RegEx - Pattern Match</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/regex-pattern-match/m-p/39935#M940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;SPAN class="GINGER_SOFTWARE_mark"&gt;mrsold&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There should be a continuous 7 byte string.&lt;/P&gt;&lt;P style="padding-left: 30px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3b3b3b;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Examples&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3b3b3b;"&gt;-&amp;gt; &lt;SPAN class="GINGER_SOFTWARE_mark"&gt;pattern&lt;/SPAN&gt; -&amp;gt; a -&amp;gt; &lt;SPAN class="GINGER_SOFTWARE_mark"&gt;regex&lt;/SPAN&gt; '&lt;SPAN class="GINGER_SOFTWARE_mark"&gt;abc&lt;/SPAN&gt;&lt;SPAN class="GINGER_SOFTWARE_mark"&gt;[&lt;/SPAN&gt;&lt;SPAN class="GINGER_SOFTWARE_mark"&gt;abc&lt;/SPAN&gt;&lt;SPAN class="GINGER_SOFTWARE_mark"&gt;]&lt;/SPAN&gt;{3&lt;SPAN class="GINGER_SOFTWARE_mark"&gt;}&lt;/SPAN&gt;&lt;SPAN class="GINGER_SOFTWARE_mark"&gt;abc&lt;/SPAN&gt;&lt;SPAN class="GINGER_SOFTWARE_mark"&gt;.&lt;/SPAN&gt;*abc' is invalid.&lt;/P&gt;&lt;P style="padding-left: 30px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3b3b3b;"&gt;-&amp;gt;&amp;nbsp; '&lt;SPAN class="GINGER_SOFTWARE_mark"&gt;abc&lt;/SPAN&gt;&lt;SPAN class="GINGER_SOFTWARE_mark"&gt;.&lt;/SPAN&gt;{3&lt;SPAN class="GINGER_SOFTWARE_mark"&gt;}&lt;/SPAN&gt;&lt;SPAN class="GINGER_SOFTWARE_mark"&gt;abcdefg&lt;/SPAN&gt;&lt;SPAN class="GINGER_SOFTWARE_mark"&gt;.&lt;/SPAN&gt;*abc' ----is valid &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 7 byte&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt; &lt;SPAN class="GINGER_SOFTWARE_mark"&gt;foo&lt;/SPAN&gt;&lt;SPAN class="GINGER_SOFTWARE_mark"&gt;.&lt;/SPAN&gt;*bar&lt;SPAN class="GINGER_SOFTWARE_mark"&gt;.&lt;/SPAN&gt;*foobarfoo&amp;nbsp;&amp;nbsp; (invalid)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt;&amp;nbsp; &lt;SPAN class="GINGER_SOFTWARE_mark"&gt;foo&lt;/SPAN&gt;&lt;SPAN class="GINGER_SOFTWARE_mark"&gt;.&lt;/SPAN&gt;*fooba&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (valid)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 16:24:30 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/regex-pattern-match/m-p/39935#M940</guid>
      <dc:creator>HULK</dc:creator>
      <dc:date>2014-10-24T16:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: RegEx - Pattern Match</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/regex-pattern-match/m-p/39936#M941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P&gt;HULK wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Hello &lt;SPAN class="GINGER_SOFTWARE_mark"&gt;mrsold&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;There should be a continuous 7 byte string.&lt;/P&gt;
&lt;P style="padding-left: 30px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3b3b3b;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Examples&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3b3b3b;"&gt;-&amp;gt; &lt;SPAN class="GINGER_SOFTWARE_mark"&gt;pattern&lt;/SPAN&gt; -&amp;gt; a -&amp;gt; &lt;SPAN class="GINGER_SOFTWARE_mark"&gt;regex&lt;/SPAN&gt; '&lt;SPAN class="GINGER_SOFTWARE_mark"&gt;abc&lt;/SPAN&gt;&lt;SPAN class="GINGER_SOFTWARE_mark"&gt;[&lt;/SPAN&gt;&lt;SPAN class="GINGER_SOFTWARE_mark"&gt;abc&lt;/SPAN&gt;&lt;SPAN class="GINGER_SOFTWARE_mark"&gt;]&lt;/SPAN&gt;{3&lt;SPAN class="GINGER_SOFTWARE_mark"&gt;}&lt;/SPAN&gt;&lt;SPAN class="GINGER_SOFTWARE_mark"&gt;abc&lt;/SPAN&gt;&lt;SPAN class="GINGER_SOFTWARE_mark"&gt;.&lt;/SPAN&gt;*abc' is invalid.&lt;/P&gt;
&lt;P style="padding-left: 30px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3b3b3b;"&gt;-&amp;gt;&amp;nbsp; '&lt;SPAN class="GINGER_SOFTWARE_mark"&gt;abc&lt;/SPAN&gt;&lt;SPAN class="GINGER_SOFTWARE_mark"&gt;.&lt;/SPAN&gt;{3&lt;SPAN class="GINGER_SOFTWARE_mark"&gt;}&lt;/SPAN&gt;&lt;SPAN class="GINGER_SOFTWARE_mark"&gt;abcdefg&lt;/SPAN&gt;&lt;SPAN class="GINGER_SOFTWARE_mark"&gt;.&lt;/SPAN&gt;*abc' ----is valid &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 7 byte&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt; &lt;SPAN class="GINGER_SOFTWARE_mark"&gt;foo&lt;/SPAN&gt;&lt;SPAN class="GINGER_SOFTWARE_mark"&gt;.&lt;/SPAN&gt;*bar&lt;SPAN class="GINGER_SOFTWARE_mark"&gt;.&lt;/SPAN&gt;*foobarfoo&amp;nbsp;&amp;nbsp; (invalid)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt;&amp;nbsp; &lt;SPAN class="GINGER_SOFTWARE_mark"&gt;foo&lt;/SPAN&gt;&lt;SPAN class="GINGER_SOFTWARE_mark"&gt;.&lt;/SPAN&gt;*fooba&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (valid)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ah yes, the continuous is a very important part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 16:45:28 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/regex-pattern-match/m-p/39936#M941</guid>
      <dc:creator>mrsold</dc:creator>
      <dc:date>2014-10-24T16:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: RegEx - Pattern Match</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/regex-pattern-match/m-p/39937#M942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;I'm trying to create the pattern to reset the connection if the connection comes from Internet Explorer.&lt;/P&gt;&lt;P&gt;I took PCAP with wireshark and user-agent shows as : "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko" (there is \r\n at the end but I think its wireshark? )&lt;/P&gt;&lt;P&gt;Nevertheless&lt;/P&gt;&lt;P&gt;I copied my text to RegExr; and did my regular expression to match.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;.*Mozilla\/5\.0\s\(Windows\sNT\s6\.1\;\sWOW64\;\sTrident\/7\.0\;\srv\:11\.0\)\slike\sGecko&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it highlights the text, meaning It is a valid expression, Palo Alto takes it, and while I was troubleshooting I even got some hits but internet explorer works as normal.&lt;/P&gt;&lt;P&gt;Can you tell if this is even possible? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Mar 2015 03:01:03 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/regex-pattern-match/m-p/39937#M942</guid>
      <dc:creator>Mariusz.pianka</dc:creator>
      <dc:date>2015-03-08T03:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: RegEx - Pattern Match</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/regex-pattern-match/m-p/250837#M1863</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know this is an old thread but anyone knows why this particular string is not accepted as a pattern for SNI with ssl client hello as context? It keeps telling me it has to be at least 7 byte long.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.gsop.avxeur.com" target="_blank"&gt;www.gsop.avxeur.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;gsop.avxeur.com&lt;/P&gt;&lt;P&gt;avx.eur.com&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the above cannot go through..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i randomly try youtube.com, singtel.com, asiaone.com, all is ok.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope somone can help! Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 03:27:34 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/regex-pattern-match/m-p/250837#M1863</guid>
      <dc:creator>Alvan_Lee</dc:creator>
      <dc:date>2019-02-22T03:27:34Z</dc:date>
    </item>
  </channel>
</rss>

