Project-Riddle/libraries/libBreeder.cpp

59 lines
1.7 KiB
C++

/**
* - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * -
*
* Name : Project Riddle
* Author : Andrea Bontempi
* Version : 0.1 aplha
* Description : Modular Network Sniffer
*
* - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * -
*
* This file is part of the project Riddle.
*
* The project Riddle is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* The project Riddle is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this project. If not, see <http://www.gnu.org/licenses/>.
*
* - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * -
*/
#include <string>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/ini_parser.hpp>
#include "libBreeder.h"
void configInitialization()
{
boost::property_tree::ptree root;
boost::property_tree::ptree global;
global.put( "threshold", "90" );
global.put( "protocols", "http" );
root.push_front(
boost::property_tree::ptree::value_type( "global", global )
);
boost::property_tree::ptree http;
http.put( "description", "..." );
http.put( "regexp", "..." );
http.put( "ports", "80 8080" );
root.push_back(
boost::property_tree::ptree::value_type( "http", http )
);
write_ini( "breeder.conf", root );
}