Skip to content

Instantly share code, notes, and snippets.

@aels
Last active January 29, 2023 01:00
Show Gist options
  • Save aels/ec2d979a4d32cf646a9dfd13802a4d26 to your computer and use it in GitHub Desktop.
Save aels/ec2d979a4d32cf646a9dfd13802a4d26 to your computer and use it in GitHub Desktop.
// https://www.criminalip.io/
q = escape('webpanel port:2031')+'&offset=';
data = '';
cursor = 0;
for(i=0;i<1e10;i++) {
request = new XMLHttpRequest();
request.open('GET', '/api/proxy/search/banner/search?query='+q+cursor, false);
request.send();
if (request.status === 200) {
data += JSON.parse(request.responseText).data.result.map(function(a){return a.ip_address+':'+a.open_port_no+','+(a.ssl_subject_common_name||'')}).join('\n')+'\n';
cursor += 10;
location.hash = cursor;
}
else {
console.log(data);
break;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment