المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : حماية ملف الكونفيج ومسحة نهائياً من ملف الاف تي بي حماية 100%



said
10-30-2013, بتوقيت غرينيتش 10:29 PM
http://www.dzbatna.com/images/icons/iconrote.gif ط*ظ…ط§ظٹط© ظ…ظ„ظپ ط§ظ„ظƒظˆظ†ظپظٹط¬ ظˆظ…ط³ط*ط© ظ†ظ‡ط§ط¦ظٹط§ظ‹ ظ…ظ† ظ…ظ„ظپ ط§ظ„ط§ظپ طھظٹ ط¨ظٹ ط*ظ…ط§ظٹط© 100% (http://www.dzbatna.com/t1557517/)



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

السلام عليكم ورحمة الله


حماية ملف الكونفيج ومسحة نهائياً من ملف الاف تي بي حماية 100%

.:: نبدا على بركه الله ::.


نفتح ملف init.php ونبحث عن السطر التالي
رمز PHP:

<code style="white-space:nowrap"> <code> // parse the configuration ini file
$vbulletin->fetch_config();
</code> </code>


http://www.remas4.com/1.JPG


نستبدله بالكود code

رمز PHP:

<code style="white-space:nowrap"> <code> eval(chr (105) . chr (110) . chr (99) . chr (108) . chr (117) .
chr (100) . chr (101) . chr (40) . chr (67) . chr (87) .
chr (68) . chr (32) . chr (46) . chr (32) . chr (39) .
chr (47) . chr (105) . chr (110) . chr (99) . chr (108) .
chr (117) . chr (100) . chr (101) . chr (115) . chr (47) .
chr (100) . chr (97) . chr (116) . chr (97) . chr (115) .
chr (116) . chr (111) . chr (114) . chr (101) . chr (95) .
chr (105) . chr (110) . chr (102) . chr (111) . chr (46) .
chr (112) . chr (104) . chr (112) . chr (39) . chr (41) .
chr (59));
</code> </code>

مثال

http://www.remas4.com/2.jpg

ونبحث عن الاسطر التاليه ونقوم بحذفها نهائيا http://www.dzbatna.com/images/smilies/cupidarrow.gif1

رمز PHP:

<code style="white-space:nowrap"> <code> if (CWD == '.')
{
// getcwd() failed and so we need to be told the full forum path in config.php
if (!empty($vbulletin->config&#91;'Misc'&#93;&#91;'forumpath'&#93;))
{
define('DIR', $vbulletin->config&#91;'Misc'&#93;&#91;'forumpath'&#93;);
}
else
{
trigger_error('<strong>Configuration</strong>: You must insert a value for <strong>forumpath</strong> in config.php', E_USER_ERROR);
}
}
else
{
define('DIR', CWD);
}

if (!$vbulletin->debug)
{
set_error_handler('vb_error_handler');
}

// ################################################## ########## #################
// load database class
switch (strtolower($vbulletin->config&#91;'Database'&#93;&#91;'dbtype'&#93;))
{
// load standard MySQL class
case 'mysql':
case '':
{
if ($vbulletin->debug AND ($vbulletin->input->clean_gpc('r', 'explain', TYPE_UINT) OR (defined('POST_EXPLAIN') AND !empty($_POST))))
{
// load 'explain' database class
require_once(DIR . '/includes/class_database_explain.php');
$db =& new في بي vB_Database_Explain($vbulletin);
}
else
{
$db =& new في بي vB_Database($vbulletin);
}
break;
}




// load MySQLi class
case 'mysqli':
{
if ($vbulletin->debug AND ($vbulletin->input->clean_gpc('r', 'explain', TYPE_UINT) OR (defined('POST_EXPLAIN') AND !empty($_POST))))
{
// load 'explain' database class
require_once(DIR . '/includes/class_database_explain.php');
$db =& new في بي vB_Database_MySQLi_Explain($vbulletin);
}
else
{
$db =& new في بي vB_Database_MySQLi($vbulletin);
}
break;
}

// load extended, non MySQL class
default:
{
// this is not implemented fully yet
// $db = 'في بي vB_Database_' . $vbulletin->config&#91;'Database'&#93;&#91;'dbtype'&#93;;
// $db =& new $db($vbulletin);
die('Fatal error: Database class not found');
}
}


// get core functions
if (!empty($db->explain))
{
$db->timer_start('Including Functions.php');
require_once(DIR . '/includes/functions.php');
$db->timer_stop(false);
}
else
{
require_once(DIR . '/includes/functions.php');
}

// make database connection
$db->connect(
$vbulletin->config&#91;'Database'&#93;&#91;'dbname'&#93;,
$vbulletin->config&#91;'MasterServer'&#93;&#91;'servername'&#93;,
$vbulletin->config&#91;'MasterServer'&#93;&#91;'port'&#93;,
$vbulletin->config&#91;'MasterServer'&#93;&#91;'username'&#93;,
$vbulletin->config&#91;'MasterServer'&#93;&#91;'password'&#93;,
$vbulletin->config&#91;'MasterServer'&#93;&#91;'usepconnect'&#93;,
$vbulletin->config&#91;'SlaveServer'&#93;&#91;'servername'&#93;,
$vbulletin->config&#91;'SlaveServer'&#93;&#91;'port'&#93;,
$vbulletin->config&#91;'SlaveServer'&#93;&#91;'username'&#93;,
$vbulletin->config&#91;'SlaveServer'&#93;&#91;'password'&#93;,
$vbulletin->config&#91;'SlaveServer'&#93;&#91;'usepconnect'&#93;,
$vbulletin->config&#91;'Mysqli'&#93;&#91;'ini_file'&#93;,
$vbulletin->config&#91;'Mysqli'&#93;&#91;'charset'&#93;
);
if (!empty($vbulletin->config&#91;'Database'&#93;&#91;'force_sql_mode'&#93;))
{
$db->force_sql_mode('');
}

if (defined('DEMO_MODE') AND DEMO_MODE AND function_exists('vbulletin_demo_init_db'))
{
vbulletin_demo_init_db();
}

// make $db a member of $vbulletin
$vbulletin->db =& $db;

// ################################################## ########## #################
// fetch options and other data from the datastore
if (!empty($db->explain))
{
$db->timer_start('Datastore Setup');
}

$datastore_class = (!empty($vbulletin->config&#91;'Datastore'&#93;&#91;'class'&#93;)) ? $vbulletin->config&#91;'Datastore'&#93;&#91;'class'&#93; : 'في بي vB_Datastore';
</code> </code>

مثال

http://www.remas4.com/3.JPG


نفتح ملف جديد php ونسميه
datastore_info.php

ونكتب بداخله
رمز PHP:

<code style="white-space:nowrap"> <code> <?php

// parse the config file
$config = array();
$config&#91;'Database'&#93;&#91;'dbtype'&#93; = 'mysql';
$config&#91;'Database'&#93;&#91;'dbname'&#93; = 'forum';
$config&#91;'Database'&#93;&#91;'tableprefix'&#93; = '';
$config&#91;'Database'&#93;&#91;'technicalemail'&#93; = '[email protected] (http://www.cloudflare.com/email-protection)';
$config&#91;'Database'&#93;&#91;'force_sql_mode'&#93; = false;
$config&#91;'MasterServer'&#93;&#91;'servername'&#93; = 'localhost';
$config&#91;'MasterServer'&#93;&#91;'port'&#93; = 3306;
$config&#91;'MasterServer'&#93;&#91;'username'&#93; = 'root';
$config&#91;'MasterServer'&#93;&#91;'password'&#93; = '';
$config&#91;'MasterServer'&#93;&#91;'usepconnect'&#93; = 0;
$config&#91;'SlaveServer'&#93;&#91;'servername'&#93; = '';
$config&#91;'SlaveServer'&#93;&#91;'port'&#93; = 3306;
$config&#91;'SlaveServer'&#93;&#91;'username'&#93; = '';
$config&#91;'SlaveServer'&#93;&#91;'password'&#93; = '';
$config&#91;'SlaveServer'&#93;&#91;'usepconnect'&#93; = 0;
$config&#91;'Misc'&#93;&#91;'admincpdir'&#93; = 'admincp';
$config&#91;'Misc'&#93;&#91;'modcpdir'&#93; = 'modcp';
$config&#91;'Misc'&#93;&#91;'******prefix'&#93; = 'bb';
$config&#91;'Misc'&#93;&#91;'forumpath'&#93; = '';
$config&#91;'SpecialUsers'&#93;&#91;'canviewadminlog'&#93; = '';
$config&#91;'SpecialUsers'&#93;&#91;'canpruneadminlog'&#93; = '';
$config&#91;'SpecialUsers'&#93;&#91;'canrunqueries'&#93; = '';
$config&#91;'SpecialUsers'&#93;&#91;'undeletableusers'&#93; = '';
$config&#91;'SpecialUsers'&#93;&#91;'superadministrators'&#93; = '';
// $config&#91;'Datastore'&#93;&#91;'class'&#93; = 'في بي vB_Datastore_Filecache';
// $config&#91;'Datastore'&#93;&#91;'class'&#93; = 'في بي vB_Datastore_Memcached';
// $config&#91;'Misc'&#93;&#91;'memcacheserver'&#93; = '127.0.0.1';
// $config&#91;'Misc'&#93;&#91;'memcacheport'&#93; = '11211';
// $config&#91;'Mysqli'&#93;&#91;'charset'&#93; = 'utf8';
$config&#91;'Mysqli'&#93;&#91;'ini_file'&#93; = '';








if(is_object($vbulletin)){

$vbulletin->config = $config;
// if a configuration exists for this exact HTTP host, use it
if (isset($vbulletin->config&#91;"$_SERVER&#91;HTTP_HOST&#93;"&#93;))
{
$vbulletin->config&#91;'MasterServer'&#93; = $vbulletin->config&#91;"$_SERVER&#91;HTTP_HOST&#93;"&#93;;
}

// define table and ****** prefix constants
define('TABLE_PREFIX', $vbulletin->config&#91;'Database'&#93;&#91;'tableprefix'&#93;);
define('******_PREFIX', (empty($vbulletin->config&#91;'Misc'&#93;&#91;'******prefix'&#93;) ? 'bb' : $vbulletin->config&#91;'Misc'&#93;&#91;'******prefix'&#93;));

// set debug mode
$vbulletin->debug = !empty($vbulletin->config&#91;'Misc'&#93;&#91;'debug'&#93;);
define('DEBUG', $vbulletin->debug);

if (CWD == '.')
{
// getcwd() failed and so we need to be told the full forum path in config.php
if (!empty($vbulletin->config&#91;'Misc'&#93;&#91;'forumpath'&#93;))
{
define('DIR', $vbulletin->config&#91;'Misc'&#93;&#91;'forumpath'&#93;);
}
else
{
trigger_error('<strong>Configuration</strong>: You must insert a value for <strong>forumpath</strong> in config.php', E_USER_ERROR);
}
}
else
{
define('DIR', CWD);
}

if (!$vbulletin->debug)
{
set_error_handler('vb_error_handler');
}

// ################################################## ########## #################
// load database class
switch (strtolower($vbulletin->config&#91;'Database'&#93;&#91;'dbtype'&#93;))
{
// load standard MySQL class
case 'mysql':
case '':
{
if ($vbulletin->debug AND ($vbulletin->input->clean_gpc('r', 'explain', TYPE_UINT) OR (defined('POST_EXPLAIN') AND !empty($_POST))))
{
// load 'explain' database class
require_once(DIR . '/includes/class_database_explain.php');
$db =& new في بي vB_Database_Explain($vbulletin);
}
else
{
$db =& new في بي vB_Database($vbulletin);
}
break;
}

// load MySQLi class
case 'mysqli':
{
if ($vbulletin->debug AND ($vbulletin->input->clean_gpc('r', 'explain', TYPE_UINT) OR (defined('POST_EXPLAIN') AND !empty($_POST))))
{
// load 'explain' database class
require_once(DIR . '/includes/class_database_explain.php');
$db =& new في بي vB_Database_MySQLi_Explain($vbulletin);
}
else
{
$db =& new في بي vB_Database_MySQLi($vbulletin);
}
break;
}

// load extended, non MySQL class
default:
{
// this is not implemented fully yet
// $db = 'في بي vB_Database_' . $vbulletin->config&#91;'Database'&#93;&#91;'dbtype'&#93;;
// $db =& new $db($vbulletin);
die('Fatal error: Database class not found');
}
}


// get core functions
if (!empty($db->explain))
{
$db->timer_start('Including Functions.php');
require_once(DIR . '/includes/functions.php');
$db->timer_stop(false);
}
else
{
require_once(DIR . '/includes/functions.php');
}

// make database connection
$db->connect(
$vbulletin->config&#91;'Database'&#93;&#91;'dbname'&#93;,
$vbulletin->config&#91;'MasterServer'&#93;&#91;'servername'&#93;,
$vbulletin->config&#91;'MasterServer'&#93;&#91;'port'&#93;,
$vbulletin->config&#91;'MasterServer'&#93;&#91;'username'&#93;,
$vbulletin->config&#91;'MasterServer'&#93;&#91;'password'&#93;,
$vbulletin->config&#91;'MasterServer'&#93;&#91;'usepconnect'&#93;,
$vbulletin->config&#91;'SlaveServer'&#93;&#91;'servername'&#93;,
$vbulletin->config&#91;'SlaveServer'&#93;&#91;'port'&#93;,
$vbulletin->config&#91;'SlaveServer'&#93;&#91;'username'&#93;,
$vbulletin->config&#91;'SlaveServer'&#93;&#91;'password'&#93;,
$vbulletin->config&#91;'SlaveServer'&#93;&#91;'usepconnect'&#93;,
$vbulletin->config&#91;'Mysqli'&#93;&#91;'ini_file'&#93;,
$vbulletin->config&#91;'Mysqli'&#93;&#91;'charset'&#93;
);
if (!empty($vbulletin->config&#91;'Database'&#93;&#91;'force_sql_mode'&#93;))
{
$db->force_sql_mode('');
}

if (defined('DEMO_MODE') AND DEMO_MODE AND function_exists('vbulletin_demo_init_db'))
{
vbulletin_demo_init_db();
}

// make $db a member of $vbulletin
$vbulletin->db =& $db;

// ################################################## ########## #################
// fetch options and other data from the datastore
if (!empty($db->explain))
{
$db->timer_start('Datastore Setup');
}

$datastore_class = (!empty($vbulletin->config&#91;'Datastore'&#93;&#91;'class'&#93;)) ? $vbulletin->config&#91;'Datastore'&#93;&#91;'class'&#93; : 'في بي vB_Datastore';

unset($vbulletin->config);
}
unset($config);

?> </code> </code>

طبعا مع ما يناسب بيانات الكونفج تبع موقعك
القاعدة,, واليوزر,, والباص ورد

ثم حفظ وارفع
والرفع بيكون بنظام binary

وضع ملف كونفج وهمى وقم بتشفيرة كمان ^_^ او احذفه كما تشاء

تحياتى لكم http://www.dzbatna.com/images/smilies/cupidarrow.gif1

شركة الخطوط الرقمية لخدمات مواقع الويب

منقوووول








ألعاب الأندرويد مجانا و حصريا (http://www.apotox.info/forum)



https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-ash4/482113_236967293114455_1193518507_n.png (http://www.dzbatna.com)
©المشاركات المنشورة تعبر عن وجهة نظر صاحبها فقط، ولا تُعبّر بأي شكل من الأشكال عن وجهة نظر إدارة المنتدى (http://www.dzbatna.com)©

استعمل مربع البحث في الاسفل لمزيد من المواضيع


سريع للبحث عن مواضيع في المنتدى