当前位置: 首页 > 工具软件 > csync > 使用案例 >

php脚本下载,chrome会直接下载网站的php脚本csync.php

萧和平
2023-12-01

用chrome访问某个网站,网站会自动下载csync.php文件,脚本内容如下

require_once("config/config.php");

require_function("util/StaticFunctions.php");

require_function("service/ServiceFactory.php");

require_function("bo/BoFactory.php");

require_function("data/DataFactory.php");

require_function("util/UtilFactory.php");

require_function("data/AkamaiLoggingService.php");

include 'config/setup/config-setup-skenzo.php';

include 'config/skenzo_request_variables.php';

header('P3P:CP="NON DSP COR NID CUR ADMa DEVo TAI PSA PSDo HIS OUR BUS COM NAV INT STA"');

header('Content-type: text/html');

header('Cache-Control: no-cache, no-store, must-revalidate');

header('Pragma: no-cache');

header('Expires: -1');

$visitorInfo = BoFactory::getVisitorInfo();

$vsid = $visitorInfo->getVisitorId();

$dataNames = VisitorInfo::$VSID_DATA_NAMES;

$mName = BoFactory::getInboundHttpRequest()->getSanitizedValueOfParam('type');

$mValue = BoFactory::getInboundHttpRequest()->getSanitizedValueOfParam('ovsid');

$vsCk = VISITOR_ID;

$vsDaCk = VISITOR_DATA;

$sepVal = VisitorInfo::$VALUE_SEP;

$sepTime = VisitorInfo::$TIME_SEP;

$vsDaTime = VisitorInfo::$VSID_DATA_TIME;

echo '

';

echo "";

if(AKAMAI_LOG_POSTBACK == $_SERVER['SERVER_NAME'])

{

define('AKAMAI_BULK_LOGGING', TRUE);

define('TEST_ENGINE_FROM_SERVING', '1');

try

{

$akLogService = new AkamaiLoggingService();

$akLogService->handleAkamaiBulkData();

echo '';

}

catch(Exception $e)

{

error("RTBLOG AKAMAI ERROR: " , $e , LOG_ALERT);

echo '';

}

}

else

{

if(AKAMAI_LOG_ORIGIN == $_SERVER['SERVER_NAME'])

{

echo '';

}

else

{

define('AKAMAI_BULK_LOGGING', TRUE);

define('TEST_ENGINE_FROM_SERVING', '1');

try

{

$akLogService = new AkamaiLoggingService();

$akLogService->handleGetRequests();

echo '';

}

catch(Exception $e)

{

error("RTBLOG AKAMAI ERROR: " , $e , LOG_ALERT);

echo '';

}

}

}

?>

 类似资料: