(url)
| 32 | }; |
| 33 | |
| 34 | const urlHaus = async (url) => { |
| 35 | const { hostname } = parseTarget(url); |
| 36 | try { |
| 37 | const res = await httpPost('https://urlhaus-api.abuse.ch/v1/host/', `host=${hostname}`, { |
| 38 | headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, |
| 39 | }); |
| 40 | return res.data; |
| 41 | } catch (error) { |
| 42 | return upstreamError(error, 'URLhaus'); |
| 43 | } |
| 44 | }; |
| 45 | |
| 46 | const phishTank = async (url) => { |
| 47 | try { |
no test coverage detected