Merge branch 'master' of github.com:lissy93/web-check into FEAT/astroify
This commit is contained in:
@@ -91,6 +91,14 @@ const firewallHandler = async (url) => {
|
||||
return hasWaf('IBM WebSphere DataPower');
|
||||
}
|
||||
|
||||
if (headers['server'] && headers['server'].includes('QRATOR')) {
|
||||
return hasWaf('QRATOR WAF');
|
||||
}
|
||||
|
||||
if (headers['server'] && headers['server'].includes('ddos-guard')) {
|
||||
return hasWaf('DDoS-Guard WAF');
|
||||
}
|
||||
|
||||
return {
|
||||
hasWaf: false,
|
||||
}
|
||||
|
||||
@@ -72,7 +72,11 @@ const portsHandler = async (url, event, context) => {
|
||||
if(timeoutReached){
|
||||
return errorResponse('The function timed out before completing.');
|
||||
}
|
||||
|
||||
|
||||
// Sort openPorts and failedPorts before returning
|
||||
openPorts.sort((a, b) => a - b);
|
||||
failedPorts.sort((a, b) => a - b);
|
||||
|
||||
return { openPorts, failedPorts };
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user