mirror of
https://github.com/scr34m/php-malware-scanner.git
synced 2026-06-16 12:30:35 +00:00
New option to disable statistics
This commit is contained in:
@@ -15,6 +15,7 @@ function fetch($url, $file = false)
|
||||
|
||||
$headers = array(
|
||||
// drupal suxx
|
||||
'Cookie: pxvid=44e1b040-4dde-11e8-b1dc-f15e898556c7; _ga=GA1.2.2042202377.1525247839; _gat=1; _gid=GA1.2.1601332121.1550831838; _px2=eyJ1IjoiZDM3OTk1MDAtMzY4ZC0xMWU5LWI3MDItYTdlMDI1ZWZhZmI2IiwidiI6IjQ0ZTFiMDQwLTRkZGUtMTFlOC1iMWRjLWYxNWU4OTg1NTZjNyIsInQiOjE1NTA4MzIxMzc5MjcsImgiOiJjMjBhNTQzNGIxYWQwNWFiOWUzNTI2OWRjNTM1MjgzNjkxNzg5OTIxNGM4YmIzZDBkZTg5ZTIxMzY0NTc5Zjk3In0=; has_js=1; _pxvid=44e1b040-4dde-11e8-b1dc-f15e898556c7',
|
||||
'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.3 Safari/605.1.15',
|
||||
);
|
||||
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
|
||||
@@ -89,7 +90,7 @@ function fetch_jquery($fp)
|
||||
foreach ($m[1] as $k => $file) {
|
||||
if (!is_cached($file)) {
|
||||
echo 'Downloading: ' . 'https://code.jquery.com/' . $file . PHP_EOL;
|
||||
$data = fetch('https://code.jquery.com/' . $file);
|
||||
$data = fetch('https://code.jquery.com/' . $file) . PHP_EOL;
|
||||
if (base64_encode(hash('sha256', $data, true)) != $m[2][$k]) {
|
||||
die('Hash mismatch' . PHP_EOL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user