支持表文件加密。

This commit is contained in:
zhengchao
2017-06-09 20:46:28 +08:00
parent e0cc61d7a7
commit 37a94ea838
10 changed files with 183 additions and 13 deletions

View File

@@ -462,10 +462,11 @@ int main(int argc,char* argv[])
int g_iThreadNum=4;
const char* table_info_path="./table_info.conf";
const char* json_path="./maat_json.json";
const char* ful_cfg_dir="./rule/full/index";
const char* inc_cfg_dir="./rule/inc/index";
const char* ful_cfg_dir="./rule/full/index/";
const char* inc_cfg_dir="./rule/inc/index/";
const char* log_file="./test.log";
const char* stat_file="./scan_staus.log";
const char* decrypt_key="mesa2017wy";
int scan_detail=0;
scan_status_t mid=NULL;
int wait_second=4;
@@ -473,6 +474,7 @@ int main(int argc,char* argv[])
feather=Maat_feather(g_iThreadNum, table_info_path, logger);
Maat_set_feather_opt(feather,MAAT_OPT_INSTANCE_NAME,"demo", strlen("demo")+1);
Maat_set_feather_opt(feather,MAAT_OPT_DECRYPT_KEY,decrypt_key, strlen(decrypt_key)+1);
if(argc>1&&0==strcmp(argv[1],"update"))
{

View File

@@ -0,0 +1,2 @@
<EFBFBD><EFBFBD>{<7B><><EFBFBD>1<EFBFBD>T <58><D2B7><EFBFBD>F<EFBFBD> <20>\y<Z<><06><><EFBFBD>=j<>žZ<C29E>譟R:,<2C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><05><><EFBFBD>?s<>~<7E><>7I<37>+M<><4D>B<1D>N<18>U<EFBFBD><55><EFBFBD><EFBFBD><EFBFBD>l<EFBFBD><6C><EFBFBD>mI<>+<2B>X<EFBFBD>,<2C><>oX
<EFBFBD>/<2F>H<EFBFBD>r<><72><EFBFBD>$9<>

View File

@@ -4,7 +4,7 @@ TEST_PLUGIN_TABLE 3 ./rule/full/TEST_PLUGIN_TABLE.local
HTTP_REGION 1 ./rule/full/HTTP_REGION.local
IP_CONFIG 2 ./rule/full/IP_CONFIG.local
CONTENT_SIZE 2 ./rule/full/CONTENT_SIZE.local
HTTP_URL 5 ./rule/full/HTTP_URL.local
HTTP_URL 5 ./rule/full/HTTP_URL.local.encrypt aes-128-cbc
HTTP_HOST 1 ./rule/full/HTTP_HOST.local
QD_ENTRY_INFO 3 ./rule/full/QD_ENTRY_INFO.local
FILE_DIGEST 1 ./rule/full/FILE_DIGEST.local