---------------------------------------------------------------------------
-- talos test tweaks
--- use with --talos or --tweaks talos -Q -q
+-- use with --talos or --tweaks talos
---------------------------------------------------------------------------
+function file_exists(name)
+ local f=io.open(name,'r')
+ if f~=nil then
+ io.close(f)
+ return true
+ else
+ return false
+ end
+end
+
daq =
{
modules =
},
{
name = 'dump',
- variables = { 'output = none' }
+ variables = { 'output=none' }
},
},
+ snaplen = 65535
}
normalizer = { tcp = { ips = true } }
-ips.include = 'local.rules'
+snort = { }
+snort['-Q'] = true
+
+if file_exists('local.rules') then
+ snort['-R'] = 'local.rules'
+end
+alert_talos = { }
alerts = { alert_with_interface_name = true }
profiler =
{ "--pcap-dir", Parameter::PT_STRING, nullptr, nullptr,
"<dir> a directory to recurse to look for pcaps - read mode is implied" },
- { "--pcap-filter", Parameter::PT_STRING, nullptr, nullptr,
+ { "--pcap-filter", Parameter::PT_STRING, nullptr, "*.*cap*",
"<filter> filter to apply when getting pcaps from file or directory" },
{ "--pcap-loop", Parameter::PT_INT, "0:max32", nullptr,
"read rules from stdin until EOF or a line starting with END is read", },
{ "--talos", Parameter::PT_IMPLIED, nullptr, nullptr,
- "enable Talos inline rule test mode (same as --tweaks talos -Q -q)", },
+ "enable Talos tweak (same as --tweaks talos)", },
{ "--treat-drop-as-alert", Parameter::PT_IMPLIED, nullptr, nullptr,
"converts drop, block, and reset rules into alert rules when loaded" },
sc->stdin_rules = true;
else if ( v.is("--talos") )
- {
sc->set_tweaks("talos");
- sc->run_flags |= RUN_FLAG__INLINE;
- sc->set_alert_mode("talos");
- }
+
else if ( v.is("--treat-drop-as-alert") )
sc->set_treat_drop_as_alert(true);
std::vector<struct Trough::PcapReadObject> Trough::pcap_object_list;
std::vector<std::string> Trough::pcap_queue;
-std::string Trough::pcap_filter;
+std::string Trough::pcap_filter = "*.*cap*";
std::vector<std::string>::const_iterator Trough::pcap_queue_iter;
unsigned Trough::pcap_loop_count = 0;