<?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 REX for HTML in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/REX-for-HTML/m-p/35068#M6342</link>
    <description>&lt;P&gt;I have HTML like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;pluginName&amp;gt;Microsoft Windows SMB Shares Unprivileged Access&amp;lt;/pluginName&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I can get the Plugin name using REX like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex "(?i)&amp;lt;PluginName&amp;gt;(?P&amp;lt;Vunerability_Name&amp;gt;[^&amp;lt;]+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In the _raw event there are more than one PluginName per event so I can use this command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex max_match=100 "(?i)&amp;lt;PluginName&amp;gt;(?P&amp;lt;Vunerability_Name&amp;gt;[^&amp;lt;]+)" |
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My question is How do I write this to the props.conf File.  I tried this and it didn't work&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EXTRACT-Vunerability_Name = max_match=100 (?i)&amp;lt;PluginName&amp;gt;(?P&amp;lt;Vunerability_Name&amp;gt;[^&amp;lt;]+)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 14 Dec 2011 16:25:41 GMT</pubDate>
    <dc:creator>hartfoml</dc:creator>
    <dc:date>2011-12-14T16:25:41Z</dc:date>
    <item>
      <title>REX for HTML</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/REX-for-HTML/m-p/35068#M6342</link>
      <description>&lt;P&gt;I have HTML like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;pluginName&amp;gt;Microsoft Windows SMB Shares Unprivileged Access&amp;lt;/pluginName&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I can get the Plugin name using REX like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex "(?i)&amp;lt;PluginName&amp;gt;(?P&amp;lt;Vunerability_Name&amp;gt;[^&amp;lt;]+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In the _raw event there are more than one PluginName per event so I can use this command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex max_match=100 "(?i)&amp;lt;PluginName&amp;gt;(?P&amp;lt;Vunerability_Name&amp;gt;[^&amp;lt;]+)" |
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My question is How do I write this to the props.conf File.  I tried this and it didn't work&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EXTRACT-Vunerability_Name = max_match=100 (?i)&amp;lt;PluginName&amp;gt;(?P&amp;lt;Vunerability_Name&amp;gt;[^&amp;lt;]+)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Dec 2011 16:25:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/REX-for-HTML/m-p/35068#M6342</guid>
      <dc:creator>hartfoml</dc:creator>
      <dc:date>2011-12-14T16:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: REX for HTML</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/REX-for-HTML/m-p/35069#M6343</link>
      <description>&lt;P&gt;Instead of using the &lt;CODE&gt;max_match=100&lt;/CODE&gt; can you try using "&lt;CODE&gt;(?im)&lt;/CODE&gt;"...&lt;/P&gt;

&lt;P&gt;So you could test your rex command using...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex max_match=100 "(?im)&amp;lt;PluginName&amp;gt;(?P&amp;lt;Vunerability_Name&amp;gt;[^&amp;lt;]+)" |
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and you props should be...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EXTRACT-Vunerability_Name = (?im)&amp;lt;PluginName&amp;gt;(?P&amp;lt;Vunerability_Name&amp;gt;[^&amp;lt;]+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I believe this will work.&lt;/P&gt;

&lt;P&gt;If it answers your question can you mark the answer as accepted to help the community.&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;MHibbin&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2011 16:36:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/REX-for-HTML/m-p/35069#M6343</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2011-12-14T16:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: REX for HTML</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/REX-for-HTML/m-p/35070#M6344</link>
      <description>&lt;P&gt;The REX test worked but the EXTRACT did not.&lt;/P&gt;

&lt;P&gt;When I took out the max_match=100 from the rex command I did not find all the matches in the events.&lt;/P&gt;

&lt;P&gt;I will post a larger sample of the event data.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2011 17:20:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/REX-for-HTML/m-p/35070#M6344</guid>
      <dc:creator>hartfoml</dc:creator>
      <dc:date>2011-12-14T17:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: REX for HTML</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/REX-for-HTML/m-p/35071#M6345</link>
      <description>&lt;P&gt;I can not correctly post the sample&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;ReportItem&amp;gt;
&amp;lt;port&amp;gt;www (443/tcp)&amp;lt;/port&amp;gt;&amp;lt;severity&amp;gt;2&amp;lt;/severity&amp;gt;
&amp;lt;pluginID&amp;gt;51192&amp;lt;/pluginID&amp;gt;
&amp;lt;pluginName&amp;gt;SSL Certificate signed with an unknown Certificate Authority&amp;lt;/pluginName&amp;gt;
&amp;lt;data&amp;gt;Synopsis :\n\nThe SSL certificate for this service is signed by an unknown\ncertificate authority.\n\nDescription :\n\nThe X.509 certificate of the remote host is not signed by a known\npublic 
certificate authority.  If the remote host is a public host in\nproduction, this nullifies the use of SSL as anyone could establish a\nman in the middle attack against the remote host.\n\nSolution :\n
\nPurchase or generate a proper certificate for this service.\n\nRisk factor :\n\nMedium / CVSS Base Score : 6.4\n(CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:N)\n\n\nPlugin output :\n*** ERROR: Unknown root
CA in the chain:\nCountry: US\nCommon Name: 192.168.125.253\n\n\n\nCertificate chain:\n|-Country: US\n|-Common Name: 192.168.125.253\n|\n\n\n&amp;lt;/data&amp;gt;&amp;lt;/ReportItem&amp;gt;
&amp;lt;ReportItem&amp;gt;
&amp;lt;port&amp;gt;www (443/tcp)&amp;lt;/port&amp;gt;&amp;lt;severity&amp;gt;2&amp;lt;/severity&amp;gt;
&amp;lt;pluginID&amp;gt;26928&amp;lt;/pluginID&amp;gt;
&amp;lt;pluginName&amp;gt;SSL Weak Cipher Suites Supported&amp;lt;/pluginName&amp;gt;
&amp;lt;data&amp;gt;Synopsis :\n\nThe remote service supports the use of weak SSL ciphers.\n\nDescription :\n\nThe remote host supports the use of SSL ciphers that offer either weak\nencryption or no encryption at 
all.\n\nNote: This is considerably easier to exploit if the attacker is on the\nsame physical network.\n\nSee also :\n\nhttp://www.openssl.org/docs/apps/ciphers.html\n\nSolution :\n\nReconfigure the 
affected application if possible to avoid use of weak\nciphers.\n\nRisk factor :\n\nMedium / CVSS Base Score : 4.3\n(CVSS2#AV:N/AC:M/Au:N/C:P/I:N/A:N)\n\n\nPlugin output :\nHere is the list of weak 
SSL ciphers supported by the remote server :\n\n  Low Strength Ciphers (&amp;amp;lt; 56-bit key)\n    SSLv3\n      EXP-EDH-RSA-DES-CBC-SHA    Kx=DH(512)    Au=RSA     Enc=DES(40)        Mac=SHA1   
export     \n      EXP-DES-CBC-SHA            Kx=RSA(512)   Au=RSA     Enc=DES(40)        Mac=SHA1   export     \n      EXP-RC2-CBC-MD5            Kx=RSA(512)   Au=RSA     Enc=RC2(40)        
Mac=MD5    export     \n      EXP-RC4-MD5                Kx=RSA(512)   Au=RSA     Enc=RC4(40)        Mac=MD5    export     \n    TLSv1\n      EXP-EDH-RSA-DES-CBC-SHA    Kx=DH(512)    Au=RSA 
Enc=DES(40)        Mac=SHA1   export     \n      EXP-DES-CBC-SHA            Kx=RSA(512)   Au=RSA     Enc=DES(40)        Mac=SHA1   export     \n      EXP-RC2-CBC-MD5            Kx=RSA(512)   
Enc=DES(40)        Mac=SHA1   export     \n      EXP-DES-CBC-SHA            Kx=RSA(512)   Au=RSA     Enc=DES(40)        Mac=SHA1   export     \n      EXP-RC2-CBC-MD5            Kx=RSA(512)   
ciphername}\n  Kx={key exchange}\n  Au={authentication}\n  Enc={symmetric encryption method}\n  Mac={message authentication code}\n  {export flag}\n\n\nOther references : 
CWE:327,CWE:326,CWE:753,CWE:803,CWE:720\n&amp;lt;/data&amp;gt;&amp;lt;/ReportItem&amp;gt;
&amp;lt;ReportItem&amp;gt;
&amp;lt;port&amp;gt;www (443/tcp)&amp;lt;/port&amp;gt;&amp;lt;severity&amp;gt;2&amp;lt;/severity&amp;gt;
&amp;lt;pluginID&amp;gt;42873&amp;lt;/pluginID&amp;gt;
&amp;lt;pluginName&amp;gt;SSL Medium Strength Cipher Suites Supported&amp;lt;/pluginName&amp;gt;
&amp;lt;data&amp;gt;Synopsis :\n\nThe remote service supports the use of medium strength SSL ciphers.\n\nDescription :\n\nThe remote host supports the use of SSL ciphers that offer medium\nstrength encryption, 
which we currently regard as those with key \nlengths at least 56 bits and less than 112 bits.\n\nNote: This is considerably easier to exploit if the attacker is on the\nsame physical network.\n\nSolution :\n
\nReconfigure the affected application if possible to avoid use of\nmedium strength ciphers.\n\nRisk factor :\n\nMedium / CVSS Base Score : 4.3\n(CVSS2#AV:N/AC:M/Au:N/C:P/I:N/A:N)\n\n\nPlugin 
output :\nHere is the list of medium strength SSL ciphers supported by the remote server :\n\n  Medium Strength Ciphers (&amp;amp;gt;= 56-bit and &amp;amp;lt; 112-bit key)\n    SSLv3\n      EDH-RSA-DES-CBC-SHA        
Kx=DH         Au=RSA     Enc=DES(56)        Mac=SHA1   \n      DES-CBC-SHA                Kx=RSA        Au=RSA     Enc=DES(56)        Mac=SHA1   \n    TLSv1\n      EDH-RSA-DES-CBC-SHA        
Kx=DH         Au=RSA     Enc=DES(56)        Mac=SHA1   \n      DES-CBC-SHA                Kx=RSA        Au=RSA     Enc=DES(56)        Mac=SHA1   \n\nThe fields above are :\n\n  {OpenSSL 
ciphername}\n  Kx={key exchange}\n  Au={authentication}\n  Enc={symmetric encryption method}\n  Mac={message authentication code}\n  {export flag}\n\n\n&amp;lt;/data&amp;gt;&amp;lt;/ReportItem&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Dec 2011 17:29:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/REX-for-HTML/m-p/35071#M6345</guid>
      <dc:creator>hartfoml</dc:creator>
      <dc:date>2011-12-14T17:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: REX for HTML</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/REX-for-HTML/m-p/35072#M6346</link>
      <description>&lt;P&gt;This does not show anything, can you not edit your answer and add the text in `` (backticks)&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2011 17:31:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/REX-for-HTML/m-p/35072#M6346</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2011-12-14T17:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: REX for HTML</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/REX-for-HTML/m-p/35073#M6347</link>
      <description>&lt;P&gt;As you can see by the sample &lt;/P&gt;

&lt;P&gt;&lt;PLUGINNAME&gt; shows up three times in the same event&lt;/PLUGINNAME&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2011 17:43:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/REX-for-HTML/m-p/35073#M6347</guid>
      <dc:creator>hartfoml</dc:creator>
      <dc:date>2011-12-14T17:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: REX for HTML</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/REX-for-HTML/m-p/35074#M6348</link>
      <description>&lt;P&gt;Using the max_match= I get all three but not with the (?im)&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2011 17:46:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/REX-for-HTML/m-p/35074#M6348</guid>
      <dc:creator>hartfoml</dc:creator>
      <dc:date>2011-12-14T17:46:59Z</dc:date>
    </item>
  </channel>
</rss>

