-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgetRes.js
More file actions
22 lines (17 loc) · 828 Bytes
/
Copy pathgetRes.js
File metadata and controls
22 lines (17 loc) · 828 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
var ourTab = ['admin','administrator','robots.txt','somRandErr.file','joomla','wp-admin']
var req = new XMLHttpRequest();
for (var x = 0 ; x < ourTab.length ; x++){
req.open('GET', ourTab[x], false);
req.onreadystatechange = function() {
if(req.readyState && req.status == 200) {
document.write("Check : " + ourTab[x] + " -> Status: " + req.status + "<br>");
}
if (req.readyState && req.status == 404){
document.write("Check : " + ourTab[x] + " -> Status: " + req.status + "<br>");
}
if (req.readyState && req.status == 403){
document.write("Check : " + ourTab[x] + " -> Status: " + req.status + "<br>");
}
}
req.send();
}