mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-25 18:25:03 +00:00
Update Phisherman endpoint
Switch to using `/v2/domains/check/` instead of `/v2/domains/info`
This commit is contained in:
parent
264cf93fe2
commit
fba346c0b5
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ type DomainInfoApiCallResult = PhishermanUnknownDomain | PhishermanDomainInfo;
|
||||||
async function fetchDomainInfo(domain: string): Promise<PhishermanDomainInfo | null> {
|
async function fetchDomainInfo(domain: string): Promise<PhishermanDomainInfo | null> {
|
||||||
// tslint:disable-next-line:no-console
|
// tslint:disable-next-line:no-console
|
||||||
console.log(`[PHISHERMAN] Requesting domain information: ${domain}`);
|
console.log(`[PHISHERMAN] Requesting domain information: ${domain}`);
|
||||||
const result = await apiCall<Record<string, DomainInfoApiCallResult>>("GET", `/v2/domains/info/${domain}`);
|
const result = await apiCall<Record<string, DomainInfoApiCallResult>>("GET", `/v2/domains/check/${domain}`);
|
||||||
const firstKey = Object.keys(result)[0];
|
const firstKey = Object.keys(result)[0];
|
||||||
const domainInfo = firstKey ? result[firstKey] : null;
|
const domainInfo = firstKey ? result[firstKey] : null;
|
||||||
if (!domainInfo) {
|
if (!domainInfo) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue