Exemple #1
0
 /**
  * static CCUrl initialisation
  */
 public static function _init()
 {
     static::$path_offset = ClanCats::$config->get('url.path', '/');
     if (empty(static::$path_offset)) {
         static::$path_offset = '/';
     }
     if (substr(static::$path_offset, -1) != '/') {
         static::$path_offset .= '/';
     }
     // register the default parameter providers
     static::$parameter_provider = array('fingerprint' => function () {
         return array(ClanCats::$config->get('session.default_fingerprint_parameter') => fingerprint());
     }, 'back' => function () {
         $params = CCIn::$_instance->GET;
         unset($params['next']);
         return array('next' => CCUrl::current($params));
     });
 }
        <div id="console_tabs">
          <ul>
            <li><a href="#console_shell"><span>Shell</span></a></li>
            <li><a href="#console_php"><span>PHP</span></a></li>
            <li><a href="#console_fingerprint"><span>Fingerprint</span></a></li>
          </ul>

          <div id="console_shell" class="console_tab"></div>

          <div id="console_php" class="console_tab"></div>

          <div id="console_fingerprint" class="console_tab">
            <div class="console_dialogue">
              <!--
<?php 
echo " -->";
$info = fingerprint();
foreach ($info as $name => $value) {
    echo "<p><strong>" . str_replace('_', ' ', $name) . ":</strong> {$value}</p>\n";
}
echo "<!-- ";
?>
              -->
            </div>
          </div>
        </div>
      </div>
    </div>
  </body>
</html>
Exemple #3
0
        }
    }
    $physical_file = $physical_file == null ? "-1" : $physical_file;
    require_once $depth . '../include/config.php';
    header("location:index.php?lang={$lang}&anyid={$anyid}&phy=1");
    exit;
} elseif ($action == "fingerprint") {
    /*指纹比对*/
    $time = date('YmdHis');
    $vers = explode('.', $metcms_v);
    nameout('../../..', "fingerprint_{$time}_{$vers[0]}_{$vers[1]}_{$vers[2]}.txt");
    header("location:advanced.php?lang={$lang}&anyid={$anyid}&cs=3");
    exit;
} elseif ($action == "fingerprintdo") {
    if (file_exists($f_filename)) {
        fingerprint('../../..', $f_filename);
    } else {
        $physical_fingerprint = "-1";
    }
    require_once $depth . '../include/config.php';
    header("location:advanced.php?lang={$lang}&anyid={$anyid}&cs=3&phy=1");
    exit;
} elseif ($action == "fingerprintdel") {
    @unlink($f_filename);
    header("location:advanced.php?lang={$lang}&anyid={$anyid}&cs=3");
    exit;
} elseif ($action == "dangerfundo") {
    /*敏感函数扫描*/
    $danger = "eval|cmd|passthru|system|gzuncompress|exec|shell_exec|fsockopen|pfsockopen|proc_open|scandir";
    $suffix = "php|jsp|asp";
    dangerfun('../../..', $danger, $suffix, 'trust.php');
Exemple #4
0
		// Make image info array to save to db
			$newImageArray = array(
									'id'				=> $k,
									'name'			=> $v,
									'alt'				=> $path_info['filename'],
									'added'		=> filemtime(CFSMALLTHUMBPATH.$v),
									'ext'				=> $path_info['extension'],
									'ip'				=> '0.0.0.0',
									'size'			=> filesize(CFIMAGEPATH.$v),
									'deleteid'		=> $path_info['filename'].create_hash(5),
									'thumbsize' 	=> filesize(CFSMALLTHUMBPATH.$v),
									'sthumbsize'=> filesize(CFTHUMBPATH.$v),
									'private'		=> 0,
									'report'			=> 0,
									'shorturl'		=> null,
									'fingerprint'	=> fingerprint(CFSMALLTHUMBPATH.$v)
									);
		//save new image to database
			addNewImage($newImageArray);
		// ProgressBar
			$p->setProgressBarProgress($i*$sx);
			$i++;
			
		}
		$p->setProgressBarProgress(100);
		echo_msg('--- Added '.count($not_found_in_db).' images to the image database<br/>');
		echo_msg('---<br/>',1);
	}else{
		echo_msg('--- No images needed to be Added<br/>');
	}
	echo_msg('--- Done<br/>--- Total Time Elapsed: '.round($stopwatch->elapsed(),4).' seconds<br />');