mirror of
https://github.com/pezkuwichain/phishing.git
synced 2026-06-12 18:11:05 +00:00
Adjust checks
This commit is contained in:
+12
-15
@@ -178,33 +178,30 @@
|
|||||||
|
|
||||||
function checkUpCors (url, { contents, status: { content_length, error } }) {
|
function checkUpCors (url, { contents, status: { content_length, error } }) {
|
||||||
// has an error from the CORS proxy
|
// has an error from the CORS proxy
|
||||||
let isValid =
|
if (
|
||||||
!error ||
|
error &&
|
||||||
(error.code !== 'UNABLE_TO_VERIFY_LEAF_SIGNATURE');
|
(error.code !== 'UNABLE_TO_VERIFY_LEAF_SIGNATURE')
|
||||||
|
) {
|
||||||
if (!isValid) {
|
|
||||||
console.log(`${url} has an retrieval error`)
|
console.log(`${url} has an retrieval error`)
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// has actual content or it has a refresh
|
// has actual content or it has a refresh
|
||||||
isValid =
|
if (
|
||||||
(content_length > 100) ||
|
(content_length < 100) &&
|
||||||
contents.includes('<meta http-equiv="refresh"');
|
!contents.includes('<meta http-equiv="refresh"')
|
||||||
|
) {
|
||||||
if (!isValid) {
|
|
||||||
console.log(`${url} has no content`);
|
console.log(`${url} has no content`);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// include in inactive list when the provider has suspended the account
|
// include in inactive list when the provider has suspended the account
|
||||||
isValid =
|
if (
|
||||||
!contents.includes('This Account has been suspended') &&
|
contents.includes('This Account has been suspended') ||
|
||||||
!contents.includes('Хостинг сайта временно приостановлен');
|
contents.includes('Хостинг сайта временно приостановлен')
|
||||||
|
) {
|
||||||
if (!isValid) {
|
|
||||||
console.log(`${url} has been suspended`)
|
console.log(`${url} has been suspended`)
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user