You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hyperscan will run simultaneously all version checkers on a file which
reduce processing time.
pyperscan package is used instead of the most well-known hyperscan
package as pyperscan allows to add a tag for each pattern. This feature
will allow to retrieve easily the checker associated to the matched
pattern.
On my local machine, running a scan on an embedded firmware takes 220
seconds with pyperscan instead of 326 seconds.
However, pyperscan is slower on a single file and unsupported on
Windows, so add a --pyperscan option (disabled by default)
Fix#2485
Signed-off-by: Fabrice Fontaine <[email protected]>
<ahref="https://github.com/intel/cve-bin-tool/blob/main/doc/MANUAL.md#-r-checkers---runs-checkers">-r RUNS, --runs RUNS</a> comma-separated list of checkers to enable
544
+
<ahref="https://github.com/intel/cve-bin-tool/blob/main/doc/MANUAL.md#--pyperscan">--pyperscan</a> use pyperscan for binary checkers (unsupported on Windows)
@@ -214,6 +215,7 @@ which is useful if you're trying the latest code from
214
215
-s SKIPS, --skips SKIPS
215
216
comma-separated list of checkers to disable
216
217
-r RUNS, --runs RUNS comma-separated list of checkers to enable
218
+
--pyperscan use pyperscan for binary checkers (unsupported on Windows)
217
219
218
220
Database Management:
219
221
--import-json IMPORT_JSON
@@ -887,6 +889,17 @@ This option allows one to skip (disable) a comma-separated list of checkers and
887
889
888
890
This option allows one to enable a comma-separated list of checkers.
889
891
892
+
### --pyperscan
893
+
894
+
The pyperscan flag enables pyperscan support in the CVE Binary Tool. [pyperscan](https://github.com/vlaci/pyperscan) is an opinionated Python binding for [Hyperscan](https://www.hyperscan.io) focusing on ease of use and safety.
895
+
896
+
When pyperscan flag is enabled, the tool leverages on Hyperscan high-performance regular expression matching library to runs simultaneously all binary version checkers on a file which significantly reduces processing time.
897
+
898
+
pyperscan package is used instead of the most well-known hyperscan package as pyperscan allows to add a tag for each pattern. This feature allows to easily retrieve the binary checker associated to the matched pattern.
0 commit comments