[prev in list] [next in list] [prev in thread] [next in thread] 

List:       snort-sigs
Subject:    Re: [Snort-sigs] [Snort-devel] Issue with snort 3 registered ruleset (still expects SNORT_LUA_PATH)
From:       "Russ Combs \(rucombs\) via Snort-sigs" <snort-sigs () lists ! snort ! org>
Date:       2020-04-26 22:38:54
Message-ID: 27ED4BBC-9644-4BAB-95D2-470CE9B58825 () cisco ! com
[Download RAW message or body]

[Attachment #2 (text/plain)]

->snort-sigs

From: Snort-devel <snort-devel-bounces@lists.snort.org> on behalf of Noah Dietrich \
                <noah_dietrich@86penny.org>
Date: Sunday, April 26, 2020 at 11:22 AM
To: "snort-devel@lists.snort.org" <snort-devel@lists.snort.org>
Subject: [Snort-devel] Issue with snort 3 registered ruleset (still expects \
SNORT_LUA_PATH)

Hello,
While testing the Registered ruleset with snort 3.0.1 b2, I found a bug with the \
latest 3.0 rules:  snortrules-snapshot-3000.tar.gz.

for the snort.lua file included in this ruleset, it still references the old \
SNORT_LUA_PATH.  I found that if you remove the following lines from this file \
require('snort_config')

conf_dir = os.getenv('SNORT_LUA_PATH')

if ( not conf_dir ) then
   conf_dir = '.'
end

dofile(conf_dir .. '/snort_defaults.lua')
dofile(conf_dir .. '/file_magic.lua')

and add these lines (From the latest snort.lua generated by the make process):
include 'snort_defaults.lua'
include 'file_magic.lua'

everything works perfectly.

Noah


[Attachment #3 (text/html)]

<html xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;}
span.EmailStyle18
	{mso-style-type:personal-reply;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">-&gt;snort-sigs<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: \
</span></b><span style="font-size:12.0pt;color:black">Snort-devel \
&lt;snort-devel-bounces@lists.snort.org&gt; on behalf of Noah Dietrich \
&lt;noah_dietrich@86penny.org&gt;<br> <b>Date: </b>Sunday, April 26, 2020 at 11:22 \
AM<br> <b>To: </b>&quot;snort-devel@lists.snort.org&quot; \
&lt;snort-devel@lists.snort.org&gt;<br> <b>Subject: </b>[Snort-devel] Issue with \
snort 3 registered ruleset (still expects SNORT_LUA_PATH)<o:p></o:p></span></p> \
</div> <div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Hello, <o:p></o:p></p>
<div>
<p class="MsoNormal">While testing the Registered ruleset with snort 3.0.1 b2, I \
found a bug with the latest 3.0 rules: \
<b>&nbsp;snortrules-snapshot-3000.tar.gz.</b><br> <br>
for the <b>snort.lua </b>file included in this ruleset, it still references the old
<b>SNORT_LUA_PATH</b>.&nbsp; I found that if you remove the following lines from this \
file<o:p></o:p></p> </div>
<blockquote style="margin-left:30.0pt;margin-right:0in">
<div>
<p class="MsoNormal"><span style="font-family:&quot;Courier \
New&quot;">require('snort_config')</span><o:p></o:p></p> </div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">conf_dir = \
os.getenv('SNORT_LUA_PATH')</span><o:p></o:p></p> </div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">if ( not \
conf_dir ) then</span><o:p></o:p></p> </div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">&nbsp; \
&nbsp;conf_dir = '.'</span><o:p></o:p></p> </div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Courier \
New&quot;">end</span><o:p></o:p></p> </div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Courier \
New&quot;">dofile(conf_dir .. '/snort_defaults.lua')</span><o:p></o:p></p> </div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Courier \
New&quot;">dofile(conf_dir .. '/file_magic.lua'</span>)<o:p></o:p></p> </div>
</blockquote>
<div>
<p class="MsoNormal"><br>
and add these lines (From the latest snort.lua generated by the make \
process):<o:p></o:p></p> </div>
<blockquote style="margin-left:30.0pt;margin-right:0in">
<div>
<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">include \
'snort_defaults.lua'</span><o:p></o:p></p> </div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">include \
'file_magic.lua'</span><o:p></o:p></p> </div>
</blockquote>
<div>
<p class="MsoNormal"><br>
everything works perfectly.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Noah<o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>



_______________________________________________
Snort-sigs mailing list
Snort-sigs@lists.snort.org
https://lists.snort.org/mailman/listinfo/snort-sigs

Please visit http://blog.snort.org for the latest news about Snort!

Please follow these rules: https://snort.org/faq/what-is-the-mailing-list-etiquette

Visit the Snort.org to subscribe to the official Snort ruleset, make sure to stay up \
to date to catch the most <a href=" \
https://snort.org/downloads/#rule-downloads">emerging threats</a>!

--===============2067384890240484466==--



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic