meta->string deal my problem,thanks a lot!
Wesley Shields 于2021年5月24日周一 下午8:39写道:
> metas is a pointer to a YR_META structure (
> https://github.com/VirusTotal/yara/blob/master/libyara/include/yara/types.h#L225).
> You can see how yara handles it when printing metadata about a rule here:
> https
metas is a pointer to a YR_META structure
(https://github.com/VirusTotal/yara/blob/master/libyara/include/yara/types.h#L225).
You can see how yara handles it when printing metadata about a rule here:
https://github.com/VirusTotal/yara/blob/master/cli/yara.c#L1004
-- WXS
> On May 22, 2021, at 4
exampe:
rule test_file
{
meta:
author = "test"
description = "test mete display"
date = "20210522"
condition:
true
}
use
yr_rule_metas_foreach(p, metas){
printf("the message is :%s\n",metas->identifier);
}
i can only output :author descri and date but i want output
author = "test"
description =