forked from mirrors/kingfisher
improved youtube and google rules
This commit is contained in:
parent
e2664e33ed
commit
c8d34d8e44
1 changed files with 11 additions and 6 deletions
|
|
@ -2,12 +2,15 @@ rules:
|
|||
- name: YouTube API Key
|
||||
id: kingfisher.youtube.1
|
||||
pattern: |
|
||||
(?xi)
|
||||
\b
|
||||
(
|
||||
AIza[a-zA-Z0-9_\-\\]{35}
|
||||
)
|
||||
\b
|
||||
(?x)
|
||||
\b
|
||||
(?i:youtube)
|
||||
(?:.|[\n\r]){0,32}?
|
||||
\b
|
||||
(
|
||||
AIza[a-zA-Z0-9_\-\\]{35}
|
||||
)
|
||||
\b
|
||||
min_entropy: 2.0
|
||||
confidence: medium
|
||||
examples:
|
||||
|
|
@ -20,6 +23,8 @@ rules:
|
|||
url: https://www.googleapis.com/youtube/v3/videos?part=id&id=dummy&key={{ TOKEN }}
|
||||
response_matcher:
|
||||
- report_response: true
|
||||
- type: StatusMatch
|
||||
status: [200]
|
||||
- type: WordMatch
|
||||
words:
|
||||
- "API key not valid"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue