Auxiliary functions.
More...
#include <set>
#include "pat2yara/utils.h"
#include "yaramod/types/hex_string.h"
#include "yaramod/types/rule.h"
|
std::shared_ptr< HexString > | getHexPattern (const Rule *rule, const std::string &name) |
|
std::string | getName (const Rule *rule) |
|
std::string | collectNames (const std::vector< Rule * > &rules) |
|
Auxiliary functions.
- Copyright
- (c) 2017 Avast Software, licensed under the MIT license
◆ collectNames()
std::string collectNames |
( |
const std::vector< Rule * > & |
rules | ) |
|
Collect names of rules into a string.
- Parameters
-
- Returns
- string with names of input rules
◆ getHexPattern()
std::shared_ptr<HexString> getHexPattern |
( |
const Rule * |
rule, |
|
|
const std::string & |
name |
|
) |
| |
Get hexadecimal pattern from rule.
- Parameters
-
rule | input rule |
name | name of pattern |
- Returns
- pointer to hexadecimal pattern
◆ getName()
std::string getName |
( |
const Rule * |
rule | ) |
|
Get function name from rule.
- Parameters
-
- Returns
- string with function name