forked from mirrors/kingfisher
35 lines
1 KiB
YAML
35 lines
1 KiB
YAML
rules:
|
|
- name: VKontakte Access Token
|
|
id: kingfisher.vkontakte.1
|
|
pattern: |
|
|
(?x)
|
|
\b
|
|
(
|
|
vk1\.a\.
|
|
[A-Za-z0-9_-]{100,200}
|
|
)
|
|
\b
|
|
pattern_requirements:
|
|
min_digits: 4
|
|
min_entropy: 4.0
|
|
confidence: high
|
|
examples:
|
|
- "VK_TOKEN=vk1.a.DlL6WTIGQ4BrnY7s1bGmeRDTHQbR_PN4NAKOIwGORABmDrOVmM-zL4wDFT37LuH-3FlJKY1rYVdl9RT7N_qEceyhu1ByAbCdEfGh"
|
|
- "vk_access_token = 'vk1.a.BcDeFgHiJkLmNoPqRsTuVwXy2345678901-_bcdefghijklmnopqrstuvwxyz1234567890BCDEFGHIJKLMNOPQRSTUVWXYZAabc'"
|
|
references:
|
|
- https://dev.vk.com/en/api/access-token/getting-started
|
|
validation:
|
|
type: Http
|
|
content:
|
|
request:
|
|
method: GET
|
|
url: "https://api.vk.com/method/users.get?access_token={{ TOKEN }}&v=5.131"
|
|
headers:
|
|
Accept: application/json
|
|
response_matcher:
|
|
- report_response: true
|
|
- type: StatusMatch
|
|
status: [200]
|
|
- type: WordMatch
|
|
words: ["error"]
|
|
negative: true
|