From f4ca5c6512272e1a18c0d69cab97a337d902323a Mon Sep 17 00:00:00 2001 From: daffainfo Date: Sat, 6 Nov 2021 11:27:25 +0700 Subject: [PATCH 1/5] Add 4 templates token-spray --- token-spray/api-covalent.yaml | 23 +++++++++++++++++++++++ token-spray/api-etherscan.yaml | 23 +++++++++++++++++++++++ token-spray/api-nownodes.yaml | 28 ++++++++++++++++++++++++++++ token-spray/api-thecatapi.yaml | 15 ++++++++++----- token-spray/api-thedogapi.yaml | 27 +++++++++++++++++++++++++++ 5 files changed, 111 insertions(+), 5 deletions(-) create mode 100644 token-spray/api-covalent.yaml create mode 100644 token-spray/api-etherscan.yaml create mode 100644 token-spray/api-nownodes.yaml create mode 100644 token-spray/api-thedogapi.yaml diff --git a/token-spray/api-covalent.yaml b/token-spray/api-covalent.yaml new file mode 100644 index 0000000000..ad6594f1ee --- /dev/null +++ b/token-spray/api-covalent.yaml @@ -0,0 +1,23 @@ +id: api-covalent + +info: + name: Covalent API Test + author: daffainfo + severity: info + reference: + - https://www.covalenthq.com/docs/api/ + - https://github.com/daffainfo/all-about-apikey/blob/main/Blockchain/Covalent.md + tags: token-spray,covalent + +self-contained: true +requests: + - method: GET + path: + - "https://api.covalenthq.com/v1/3/address/balances_v2/?&key={{token}}" + + matchers: + - type: word + part: body + negative: true + words: + - 'Invalid API key' diff --git a/token-spray/api-etherscan.yaml b/token-spray/api-etherscan.yaml new file mode 100644 index 0000000000..144601dacc --- /dev/null +++ b/token-spray/api-etherscan.yaml @@ -0,0 +1,23 @@ +id: api-etherscan + +info: + name: Etherscan API Test + author: daffainfo + severity: info + reference: + - https://docs.etherscan.io/ + - https://github.com/daffainfo/all-about-apikey/blob/main/Blockchain/Etherscan.md + tags: token-spray,etherscan + +self-contained: true +requests: + - method: GET + path: + - "https://api.etherscan.io/api?module=account&action=balance&address=0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae&tag=latest&apikey={{token}}" + + matchers: + - type: word + part: body + negative: true + words: + - 'Invalid API Key' diff --git a/token-spray/api-nownodes.yaml b/token-spray/api-nownodes.yaml new file mode 100644 index 0000000000..fd2cc1ee93 --- /dev/null +++ b/token-spray/api-nownodes.yaml @@ -0,0 +1,28 @@ +id: api-nownodes + +info: + name: Nownodes API Test + author: daffainfo + severity: info + reference: + - https://nownodes.io/ + - https://github.com/daffainfo/all-about-apikey/blob/main/Blockchain/Nownodes.md + tags: token-spray,nownodes + +self-contained: true +requests: + - raw: + - | + GET /api HTTP/1.1 + Host: bsc-blockbook.nownodes.io + api-key: {{token}} + Content-Type: application/json + + matchers: + - type: word + part: body + words: + - '"coin":' + - '"host":' + - '"version":' + condition: and diff --git a/token-spray/api-thecatapi.yaml b/token-spray/api-thecatapi.yaml index f8399778d8..54740e47d8 100644 --- a/token-spray/api-thecatapi.yaml +++ b/token-spray/api-thecatapi.yaml @@ -4,7 +4,9 @@ info: name: TheCatApi API Test author: daffainfo severity: info - reference: https://docs.thecatapi.com/ + reference: + - https://docs.thecatapi.com/ + - https://github.com/daffainfo/all-about-apikey/blob/main/Animals/TheCatApi.md tags: token-spray,thecatapi self-contained: true @@ -16,7 +18,10 @@ requests: x-api-key: "{{token}}" matchers: - - type: status - negative: true - status: - - 401 + - type: word + part: body + words: + - 'id":' + - 'image_id":' + - 'sub_id":' + condition: and diff --git a/token-spray/api-thedogapi.yaml b/token-spray/api-thedogapi.yaml new file mode 100644 index 0000000000..75db08e1fc --- /dev/null +++ b/token-spray/api-thedogapi.yaml @@ -0,0 +1,27 @@ +id: api-thedogapi + +info: + name: TheDogApi API Test + author: daffainfo + severity: info + reference: + - https://docs.thedogapi.com/ + - https://github.com/daffainfo/all-about-apikey/blob/main/Animals/TheDogApi.md + tags: token-spray,thedogapi + +self-contained: true +requests: + - method: GET + path: + - "https://api.thedogapi.com/v1/votes" + headers: + x-api-key: "{{token}}" + + matchers: + - type: word + part: body + words: + - 'id":' + - 'image_id":' + - 'sub_id":' + condition: and From f0432b7b2e951393159b4fe73ade7ae16c57d446 Mon Sep 17 00:00:00 2001 From: daffainfo Date: Sat, 6 Nov 2021 11:40:49 +0700 Subject: [PATCH 2/5] Adding references --- token-spray/api-abuseipdb.yaml | 4 +++- token-spray/api-alienvault.yaml | 4 +++- token-spray/api-aniapi.yaml | 4 +++- token-spray/api-cooperhewitt.yaml | 4 +++- token-spray/api-dribbble.yaml | 4 +++- token-spray/api-europeana.yaml | 4 +++- token-spray/api-iucn.yaml | 6 ++++-- token-spray/api-myanimelist.yaml | 4 +++- token-spray/api-rijksmuseum.yaml | 4 +++- token-spray/api-urlscan.yaml | 4 +++- token-spray/api-virustotal.yaml | 4 +++- 11 files changed, 34 insertions(+), 12 deletions(-) diff --git a/token-spray/api-abuseipdb.yaml b/token-spray/api-abuseipdb.yaml index 9cf4dddf31..ca83d86700 100644 --- a/token-spray/api-abuseipdb.yaml +++ b/token-spray/api-abuseipdb.yaml @@ -4,7 +4,9 @@ info: name: AbuseIPDB API Test author: daffainfo severity: info - reference: https://docs.abuseipdb.com/ + reference: + - https://docs.abuseipdb.com/ + - https://github.com/daffainfo/all-about-apikey/blob/main/Anti-Malware/AbuseIPDB.md tags: token-spray,abuseipdb self-contained: true diff --git a/token-spray/api-alienvault.yaml b/token-spray/api-alienvault.yaml index a51c6edc4c..8bfd4447da 100644 --- a/token-spray/api-alienvault.yaml +++ b/token-spray/api-alienvault.yaml @@ -4,7 +4,9 @@ info: name: AlienVault Open Threat Exchange (OTX) API Test author: daffainfo severity: info - reference: https://otx.alienvault.com/api + reference: + - https://otx.alienvault.com/api + - https://github.com/daffainfo/all-about-apikey/blob/main/Anti-Malware/AlienVault%20Open%20Threat%20Exchange.md tags: token-spray,alienvault self-contained: true diff --git a/token-spray/api-aniapi.yaml b/token-spray/api-aniapi.yaml index 3b5f81a6e5..ab84bcd31f 100644 --- a/token-spray/api-aniapi.yaml +++ b/token-spray/api-aniapi.yaml @@ -4,7 +4,9 @@ info: name: AniAPI API Test author: daffainfo severity: info - reference: https://aniapi.com/docs/authentication + reference: + - https://aniapi.com/docs/authentication + - https://github.com/daffainfo/all-about-apikey/blob/main/Anime/AniAPI.md tags: token-spray,aniapi self-contained: true diff --git a/token-spray/api-cooperhewitt.yaml b/token-spray/api-cooperhewitt.yaml index 339f8ed1b2..c54d64e093 100644 --- a/token-spray/api-cooperhewitt.yaml +++ b/token-spray/api-cooperhewitt.yaml @@ -4,7 +4,9 @@ info: name: Cooper Hewitt API author: daffainfo severity: info - reference: https://collection.cooperhewitt.org/api/methods/ + reference: + - https://collection.cooperhewitt.org/api/methods/ + - https://github.com/daffainfo/all-about-apikey/blob/main/Art-Design/Cooper%20Hewitt.md tags: token-spray,cooperhewitt self-contained: true diff --git a/token-spray/api-dribbble.yaml b/token-spray/api-dribbble.yaml index 147b3c2b72..ec36263d18 100644 --- a/token-spray/api-dribbble.yaml +++ b/token-spray/api-dribbble.yaml @@ -4,7 +4,9 @@ info: name: Dribbble API Test author: daffainfo severity: info - reference: https://developer.dribbble.com/v2/ + reference: + - https://developer.dribbble.com/v2/ + - https://github.com/daffainfo/all-about-apikey/blob/main/Art-Design/Dribbble.md tags: token-spray,dribbble self-contained: true diff --git a/token-spray/api-europeana.yaml b/token-spray/api-europeana.yaml index 69c55b1560..520c83775d 100644 --- a/token-spray/api-europeana.yaml +++ b/token-spray/api-europeana.yaml @@ -4,7 +4,9 @@ info: name: Europeana API Test author: daffainfo severity: info - reference: https://pro.europeana.eu/page/search + reference: + - https://pro.europeana.eu/page/search + - https://github.com/daffainfo/all-about-apikey/blob/main/Art-Design/Europeana.md tags: token-spray,europeana self-contained: true diff --git a/token-spray/api-iucn.yaml b/token-spray/api-iucn.yaml index 878b4839ed..4dee6aacfc 100644 --- a/token-spray/api-iucn.yaml +++ b/token-spray/api-iucn.yaml @@ -3,8 +3,10 @@ id: api-iucn info: name: IUCN API Test author: daffainfo - severity: info - reference: http://apiv3.iucnredlist.org/api/v3/docs + severity: info + reference: + - http://apiv3.iucnredlist.org/api/v3/docs + - https://github.com/daffainfo/all-about-apikey/blob/main/Animals/IUCN.md tags: token-spray,iucn self-contained: true diff --git a/token-spray/api-myanimelist.yaml b/token-spray/api-myanimelist.yaml index 498cffa893..d7fb301f08 100644 --- a/token-spray/api-myanimelist.yaml +++ b/token-spray/api-myanimelist.yaml @@ -4,7 +4,9 @@ info: name: MyAnimeList API Test author: daffainfo severity: info - reference: https://myanimelist.net/apiconfig/references/api/v2 + reference: + - https://myanimelist.net/apiconfig/references/api/v2 + - https://github.com/daffainfo/all-about-apikey/blob/main/Anime/MyAnimeList.md tags: token-spray,myanimelist self-contained: true diff --git a/token-spray/api-rijksmuseum.yaml b/token-spray/api-rijksmuseum.yaml index 20da90151a..6e6c1c40cd 100644 --- a/token-spray/api-rijksmuseum.yaml +++ b/token-spray/api-rijksmuseum.yaml @@ -4,7 +4,9 @@ info: name: Rijksmuseum API Test author: daffainfo severity: info - reference: https://data.rijksmuseum.nl/user-generated-content/api/ + reference: + - https://data.rijksmuseum.nl/user-generated-content/api/ + - https://github.com/daffainfo/all-about-apikey/blob/main/Art-Design/Rijksmuseum.md tags: token-spray,rijksmuseum self-contained: true diff --git a/token-spray/api-urlscan.yaml b/token-spray/api-urlscan.yaml index 4baa2bec8b..93d5b196db 100644 --- a/token-spray/api-urlscan.yaml +++ b/token-spray/api-urlscan.yaml @@ -4,7 +4,9 @@ info: name: URLScan API Test author: daffainfo severity: info - reference: https://urlscan.io/docs/api/ + reference: + - https://urlscan.io/docs/api/ + - https://github.com/daffainfo/all-about-apikey/blob/main/Anti-Malware/URLScan.md tags: token-spray,urlscan self-contained: true diff --git a/token-spray/api-virustotal.yaml b/token-spray/api-virustotal.yaml index b546d99833..fbcb6e2600 100644 --- a/token-spray/api-virustotal.yaml +++ b/token-spray/api-virustotal.yaml @@ -4,7 +4,9 @@ info: name: VirusTotal API Test author: daffainfo severity: info - reference: https://developers.virustotal.com/reference#getting-started + reference: + - https://developers.virustotal.com/reference + - https://github.com/daffainfo/all-about-apikey/blob/main/Anti-Malware/VirusTotal.md tags: token-spray,virustotal self-contained: true From 1b1b20ff74fb689a72f1b3ab80fd3ededbdf2fd4 Mon Sep 17 00:00:00 2001 From: Muhammad Daffa <36522826+daffainfo@users.noreply.github.com> Date: Sat, 6 Nov 2021 12:38:20 +0700 Subject: [PATCH 3/5] Update api-iucn.yaml --- token-spray/api-iucn.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/token-spray/api-iucn.yaml b/token-spray/api-iucn.yaml index 4dee6aacfc..71f3e53bb5 100644 --- a/token-spray/api-iucn.yaml +++ b/token-spray/api-iucn.yaml @@ -3,7 +3,7 @@ id: api-iucn info: name: IUCN API Test author: daffainfo - severity: info + severity: info reference: - http://apiv3.iucnredlist.org/api/v3/docs - https://github.com/daffainfo/all-about-apikey/blob/main/Animals/IUCN.md From bfa7fb10ed5615b19a9f2052dea0ecae2a0a2a37 Mon Sep 17 00:00:00 2001 From: Muhammad Daffa <36522826+daffainfo@users.noreply.github.com> Date: Sat, 6 Nov 2021 16:21:29 +0700 Subject: [PATCH 4/5] Update api-covalent.yaml --- token-spray/api-covalent.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/token-spray/api-covalent.yaml b/token-spray/api-covalent.yaml index ad6594f1ee..159aca5e52 100644 --- a/token-spray/api-covalent.yaml +++ b/token-spray/api-covalent.yaml @@ -18,6 +18,8 @@ requests: matchers: - type: word part: body - negative: true words: - - 'Invalid API key' + - '"address":' + - '"updated_at":' + - '"next_update_at":' + condition: and From 48b1bdb9d133535378cd7da548e6dcd930243114 Mon Sep 17 00:00:00 2001 From: Muhammad Daffa <36522826+daffainfo@users.noreply.github.com> Date: Sat, 6 Nov 2021 16:23:44 +0700 Subject: [PATCH 5/5] Update api-etherscan.yaml --- token-spray/api-etherscan.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/token-spray/api-etherscan.yaml b/token-spray/api-etherscan.yaml index 144601dacc..f72998882f 100644 --- a/token-spray/api-etherscan.yaml +++ b/token-spray/api-etherscan.yaml @@ -15,9 +15,17 @@ requests: path: - "https://api.etherscan.io/api?module=account&action=balance&address=0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae&tag=latest&apikey={{token}}" + matchers-condition: and matchers: - type: word part: body negative: true words: - 'Invalid API Key' + + - type: word + part: body + words: + - '"status":' + - '"message":"OK"' + condition: and