commit
cfacfe1dd6
|
@ -15,7 +15,7 @@ An overview of the nuclei template directory including number of templates and H
|
|||
|
||||
| Templates | Counts | Templates | Counts |
|
||||
| ------------------ | -------------------------------- | ------------------------- | --------------------------------------- |
|
||||
| cves | {countTpl("cves")} | files | {countTpl("files")} |
|
||||
| cves | {countTpl("cves/*")} | files | {countTpl("files")} |
|
||||
| vulnerabilities | {countTpl("vulnerabilities")} | panels | {countTpl("panels")} |
|
||||
| technologies | {countTpl("technologies")} | security-misconfiguration | {countTpl("security-misconfiguration")} |
|
||||
| workflows | {countTpl("workflows")} | tokens | {countTpl("tokens")} |
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#!/usr/bin/env python3
|
||||
import os
|
||||
import glob
|
||||
import subprocess
|
||||
|
||||
def countTpl(path):
|
||||
return len(os.listdir(path))
|
||||
return len(glob.glob(path + "/*.*"))
|
||||
|
||||
def command(args, start=None, end=None):
|
||||
return "\n".join(subprocess.run(args, text=True, capture_output=True).stdout.split("\n")[start:end])[:-1]
|
||||
|
|
Loading…
Reference in New Issue