(event)
| 48 | } |
| 49 | |
| 50 | function queries(event) { |
| 51 | clearErrorHandler(); |
| 52 | lastCensysResult = []; |
| 53 | |
| 54 | var value = document.getElementById("search_input").value.trim().toLowerCase(); |
| 55 | var path = window.location.pathname; |
| 56 | |
| 57 | if (path === "/domain") { |
| 58 | clear_divs(["hostingLocation", "ownershipInformation", "dnsRecords", "reverseDnsRecords", "certificateRecords"]); |
| 59 | // Check Ownership |
| 60 | do_nslookup(value); |
| 61 | ibloxOwner('host', value); |
| 62 | // Check Location |
| 63 | search_all_dns('domain', value); |
| 64 | search_sonar_rdns('domain', value); |
| 65 | // Certificate Checks |
| 66 | search_ct('domain', value); |
| 67 | // Scan Information |
| 68 | if (ScanDataSources.includes("censys")) { |
| 69 | clear_divs(["censysInformation"]); |
| 70 | document.getElementById("censysInformation").style.display = "none"; |
| 71 | censys_rec('domain', value); |
| 72 | } |
| 73 | if (ScanDataSources.includes("zgrab")) { |
| 74 | document.getElementById("scanInformation").style.display = "none"; |
| 75 | document.getElementById("scanTitleRow").innerHTML = ""; |
| 76 | document.getElementById("scanDataRow").innerHTML = ""; |
| 77 | document.getElementById("scanOutput").innerHTML = ""; |
| 78 | zgrab_rec('domain', value); |
| 79 | } |
| 80 | // Whois Information |
| 81 | if (DynamicWhoisEnabled) { |
| 82 | clear_divs(["dynamic_whois"]); |
| 83 | document.getElementById("dynamic_whois").style.display = "bg-light"; |
| 84 | document.getElementById("dynamic_whois").appendChild(create_button('Perform lookup', 'whoisLookup')); |
| 85 | document.getElementById("whoisLookup").addEventListener("click", whois_lookup); |
| 86 | } |
| 87 | if (CustomScriptSourcesEnabled) { |
| 88 | custom_code_handler('/domain', 'domain', value); |
| 89 | } |
| 90 | } else if (path === '/ip') { |
| 91 | clear_divs(["hostingLocation", "ownershipInformation", "dnsRecords", "reverseDnsRecords", "certificateRecords"]); |
| 92 | |
| 93 | // Check Ownership |
| 94 | do_nslookup(value); |
| 95 | ibloxOwner('ip', value); |
| 96 | // Check Location |
| 97 | aws_check('ip', value); |
| 98 | azure_check(value); |
| 99 | akamai_check('ip', value); |
| 100 | gcp_check('ip', value); |
| 101 | tracked_ip_range_check('ip', value); |
| 102 | // DNS Records |
| 103 | search_all_dns('ip', value); |
| 104 | search_sonar_rdns('ip', value); |
| 105 | // Certificate Checks |
| 106 | search_ct('ip', value); |
| 107 | // Scan Information |
no test coverage detected