breeder ++
This commit is contained in:
parent
9020807749
commit
4b7cfb88fe
2 changed files with 5 additions and 5 deletions
|
@ -77,12 +77,12 @@ int main ( int argc, char **argv ) {
|
|||
|
||||
a_flux = libDump::decodeHexText ( flow->getFirstCharStream() );
|
||||
b_flux = libDump::decodeHexText ( flow->getSecondCharStream() );
|
||||
|
||||
//boost::regex reg ("HTTP.*", boost::regex_constants::icase, boost::regex_constants::perl);
|
||||
|
||||
// if(boost::regex_search(a_flux, reg, boost::regex_constants::format_perl) || boost::regex_search(b_flux, reg, boost::regex_constants::format_perl)) {
|
||||
boost::regex regexp ( ".*" ); // TODO
|
||||
|
||||
if ( boost::regex_match ( a_flux, regexp ) || boost::regex_match ( b_flux, regexp ) ) {
|
||||
cout << flow->exportFlow() << endl;
|
||||
// }
|
||||
}
|
||||
|
||||
delete flow;
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ add_executable(riddle ${RIDDLE_SRCS})
|
|||
add_executable(pursuer ${PURSUER_SRCS})
|
||||
add_executable(breeder ${BREEDER_SRCS})
|
||||
|
||||
set(BOOST_LIBS program_options system)
|
||||
set(BOOST_LIBS program_options system regex)
|
||||
find_package(Boost COMPONENTS ${BOOST_LIBS} REQUIRED)
|
||||
|
||||
find_library(LIBPCAP pcap)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue