<div dir="ltr"><div>It is good to hear that others would find this feature useful. So I am trying to use extract byte that would represent the size of the payload and then using LUA to calculate the size of the payload. If both value match then that would generate an alert. </div><div><br></div><div>I was planning to submit a feature request if it didn't exist. <br></div></div><br><div class="gmail_quote"><div class="gmail_attr" dir="ltr">On Thu, Mar 7, 2019 at 6:09 PM b smith <<a href="mailto:x62smith@gmail.com">x62smith@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="auto">As far as I know there isn't a way to do it but I'm looking into submitting a feature request for byte_extract as well as other variables to pass to Lua.  I've got a couple use cases for it. Just got to put things together. <div dir="auto"><br></div><div dir="auto">What are you trying to do that requires passing a value to Lua?</div></div><br><div class="gmail_quote"><div class="gmail_attr" dir="ltr">On Thu, Mar 7, 2019, 2:14 PM Clark Kent <<a href="mailto:ctyk3322@gmail.com" target="_blank">ctyk3322@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr"><div>Hello, </div><div><br></div><div>I was curious if there was a way to use byte extract and pass that value into a LUA script?<br></div></div>
_______________________________________________<br>
Suricata IDS Users mailing list: <a href="mailto:oisf-users@openinfosecfoundation.org" target="_blank" rel="noreferrer">oisf-users@openinfosecfoundation.org</a><br>
Site: <a href="http://suricata-ids.org" target="_blank" rel="noreferrer noreferrer">http://suricata-ids.org</a> | Support: <a href="http://suricata-ids.org/support/" target="_blank" rel="noreferrer noreferrer">http://suricata-ids.org/support/</a><br>
List: <a href="https://lists.openinfosecfoundation.org/mailman/listinfo/oisf-users" target="_blank" rel="noreferrer noreferrer">https://lists.openinfosecfoundation.org/mailman/listinfo/oisf-users</a><br>
<br>
Conference: <a href="https://suricon.net" target="_blank" rel="noreferrer noreferrer">https://suricon.net</a><br>
Trainings: <a href="https://suricata-ids.org/training/" target="_blank" rel="noreferrer noreferrer">https://suricata-ids.org/training/</a></blockquote></div>
</blockquote></div>