Enhance entropy (#333)

* Modified Entropy to be able to apply it on regex match or specific capture group

* Config tests

* Small fixes on entropy ranges

* Fix toml configs
Fix tests

* Indents and code styles
This commit is contained in:
Noel Algora authored and GitHub committed 2020-02-24 13:44:38 -05:00
1 parent e7fbcf5333
commit ee2d73c740
20 files changed
+236 -208

No files matched your search

+7 -4
View File
@@ -1,8 +1,11 @@
[[rules]]
description = "entropy"
entropies = [
"4.5-4.7",
"5.5-6.3",
]
regex = '''['|"]([0-9a-zA-Z-._{}$\/\+=]{40,120})['|"]'''
tags = ["entropy"]
[[rules.Entropies]]
Min = "4.5"
Max = "4.7"
[[rules.Entropies]]
Min = "5.5"
Max = "6.3"