<?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: IPS Regular expression character [?] in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/ips-regular-expression-character/m-p/464133#M91540</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks - I had been distracted and chased other issues.  This explanation certainly is helpful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Oct 2005 01:18:36 GMT</pubDate>
    <dc:creator>kurtpatzer</dc:creator>
    <dc:date>2005-10-20T01:18:36Z</dc:date>
    <item>
      <title>IPS Regular expression character [?]</title>
      <link>https://community.cisco.com/t5/network-security/ips-regular-expression-character/m-p/464129#M91536</link>
      <description>&lt;P&gt;I understand the use of the ? character in a regex to match on 0 or 1 occurances of the previous character.  But, I don't understand what it means when it is in braces.  Some examples:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sig 3200 RegEx ends with [? \r\n\t], it appears that there is a space after the ?.  This seems to be matching on any white space (space, carriage return, newline or tab).  But why is the ? important at the beginning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe a simpler example: signature 3232 looks for the string finger.pl in a case insensitive fashion, but the regEx ends in [?].  Whta is the purpose of the ? in braces?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;KEP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Mar 2019 09:40:28 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ips-regular-expression-character/m-p/464129#M91536</guid>
      <dc:creator>kurtpatzer</dc:creator>
      <dc:date>2019-03-10T09:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: IPS Regular expression character [?]</title>
      <link>https://community.cisco.com/t5/network-security/ips-regular-expression-character/m-p/464130#M91537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When a "?" is in brackets, which signifies a character class, it means a match on the "?" character itself. Operators have no special meaning inside character classes, this includes "+,*,?,{,}" etc...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2005 21:12:37 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ips-regular-expression-character/m-p/464130#M91537</guid>
      <dc:creator>bkubesh</dc:creator>
      <dc:date>2005-10-03T21:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: IPS Regular expression character [?]</title>
      <link>https://community.cisco.com/t5/network-security/ips-regular-expression-character/m-p/464131#M91538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the clarification. That makes perfect sense &amp;amp; I've seen it used before.  I just did some testing with a few regex signatures that have the ? (often among other characters) &amp;amp; it does work this way.  So, now I think my question is how is a ? interpreted by an http daemon - it seems to be that some signatures look for the ? specifically, while others look for it or a number of other white space like characters (space, new line, tab, etc).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2005 00:19:37 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ips-regular-expression-character/m-p/464131#M91538</guid>
      <dc:creator>kurtpatzer</dc:creator>
      <dc:date>2005-10-06T00:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: IPS Regular expression character [?]</title>
      <link>https://community.cisco.com/t5/network-security/ips-regular-expression-character/m-p/464132#M91539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When a '?' is passed as part of a URL, it signifies arguments to be passed to the resource being accessed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, the URL &lt;A class="jive-link-custom" href="http://some.domain.com/search.cgi?cromulent" target="_blank"&gt;http://some.domain.com/search.cgi?cromulent&lt;/A&gt; would be interpreted as someone passing the argument 'cromulent' to a CGI script called 'search.cgi' running on a web server using the name 'some.domain.com'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This same technique has been used during some URL parsing attacks, format string attacks and other techniques where by a real resource on a server is accessed via a specifically crafted URL. (Remember &lt;A class="jive-link-custom" href="http://some.domain.com/../../winnt/system32/cmd.exe?dir+c" target="_blank"&gt;http://some.domain.com/../../winnt/system32/cmd.exe?dir+c&lt;/A&gt;: and all its Unicode and hex obfuscated cousins?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Alex Arndt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2005 11:59:04 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ips-regular-expression-character/m-p/464132#M91539</guid>
      <dc:creator>a.arndt</dc:creator>
      <dc:date>2005-10-07T11:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: IPS Regular expression character [?]</title>
      <link>https://community.cisco.com/t5/network-security/ips-regular-expression-character/m-p/464133#M91540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks - I had been distracted and chased other issues.  This explanation certainly is helpful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2005 01:18:36 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ips-regular-expression-character/m-p/464133#M91540</guid>
      <dc:creator>kurtpatzer</dc:creator>
      <dc:date>2005-10-20T01:18:36Z</dc:date>
    </item>
  </channel>
</rss>

