Hardcoding patterns from secrets-patterns-db
parent
a47df8efed
commit
7fbe9480a9
|
@ -26,5 +26,5 @@ jobs:
|
|||
|
||||
- uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: JSLeak
|
||||
name: jsleak
|
||||
path: jsleak
|
|
@ -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}`,')
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue