Hardcoding patterns from secrets-patterns-db

main
Swissky 2023-05-05 18:48:23 +02:00
parent a47df8efed
commit 7fbe9480a9
4 changed files with 8412 additions and 146 deletions

View File

@ -26,5 +26,5 @@ jobs:
- uses: actions/upload-artifact@master
with:
name: JSLeak
name: jsleak
path: jsleak

1819
main.go

File diff suppressed because it is too large Load Diff

15
parse.py Normal file
View File

@ -0,0 +1,15 @@
import yaml
import sys
import re
if len(sys.argv) < 2:
print(f"\nUsage:\n\t{sys.argv[0]} [regex-db.yml]")
exit(1)
with open(sys.argv[1], 'r') as stream:
y = yaml.safe_load(stream)
for i in y["patterns"]:
r = i["pattern"]["regex"]
name = i["pattern"]["name"]
print(f'"{name}" : `{r}`,')

6722
rules-stable.yml Normal file

File diff suppressed because it is too large Load Diff