Open madhav-vl opened 3 years ago
async host(ip, key, opts) method returning an error: Error: got.post : connect ECONNREFUSED 127.0.0.1:443
async host(ip, key, opts)
Error: got.post : connect ECONNREFUSED 127.0.0.1:443
Code snippet provided below
`exports.shodanScan = () => { const searchOpts = { history: false, minify: false, timeout: 40000 };
client .host('52.65.177.55', 'MY_API_KEY', searchOpts) .then(res => { console.log('Result:', res); }) .catch(err => { console.log('Error:', err); });
} `
Return all services that have been found on the given host IP.
I'm able to get expected output using below service for the same IP and API_KEY https://api.shodan.io/shodan/host/{ip}?key={MY_API_KEY}
https://api.shodan.io/shodan/host/{ip}?key={MY_API_KEY}
Describe the bug
async host(ip, key, opts)
method returning an error:Error: got.post : connect ECONNREFUSED 127.0.0.1:443
To Reproduce
Code snippet provided below
`exports.shodanScan = () => { const searchOpts = { history: false, minify: false, timeout: 40000 };
} `
Expected behavior
Return all services that have been found on the given host IP.
Environment
Additional context
I'm able to get expected output using below service for the same IP and API_KEY
https://api.shodan.io/shodan/host/{ip}?key={MY_API_KEY}