This commit is contained in:
mcoder 2026-04-14 18:25:44 +03:30
parent a24e719cc8
commit 78c237cdd4
3 changed files with 114 additions and 307 deletions

View File

@ -2,38 +2,64 @@
<html lang="fa" dir="rtl">
<head>
<meta charset="UTF-8">
<title>ورود به سیستم | آزمایشگاه امنیت</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ورود به حساب | WebApp Victim</title>
<!-- لود کردن Tailwind CSS از طریق Vite -->
@vite(['resources/css/app.css', 'resources/js/app.js'])
<style>
body { font-family: Tahoma, sans-serif; background-color: #f4f4f9; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; }
.login-box { background: white; padding: 30px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); width: 100%; max-w-width: 400px; text-align: center; border-top: 4px solid #10b981;}
input { width: 90%; padding: 10px; margin: 10px 0; border: 1px solid #ccc; border-radius: 4px;
font-family: Tahoma, serif;}
button { width: 95%; padding: 10px; background: #10b981; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 16px;}
button:hover { background: #059669; }
.error { color: red; font-size: 14px; margin-bottom: 15px; }
body { font-family: Tahoma, sans-serif; }
</style>
</head>
<body>
<body class="bg-slate-50 flex items-center justify-center min-h-screen">
<div class="login-box">
<h2>ورود به حساب کاربری</h2>
<div class="bg-white p-8 rounded-2xl shadow-xl w-full max-w-md border-t-4 border-indigo-500">
<!-- لوگو و هدر -->
<div class="text-center mb-8">
<div class="inline-flex items-center justify-center w-16 h-16 rounded-full bg-indigo-100 text-indigo-500 mb-4">
<svg class="w-8 h-8" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"></path>
</svg>
</div>
<h2 class="text-2xl font-bold text-slate-800">ورود به سیستم</h2>
<p class="text-sm text-slate-500 mt-2">جهت دسترسی به پنل کاربری وارد شوید</p>
</div>
<!-- نمایش خطاها -->
@if($errors->any())
<div class="error">{{ $errors->first() }}</div>
<div class="bg-red-50 border-r-4 border-red-500 text-red-700 p-4 rounded mb-6" role="alert">
<p class="text-sm font-medium">{{ $errors->first() }}</p>
</div>
@endif
<form action="{{ route('login.submit') }}" method="POST">
<!-- توکن CSRF برای فرم لاگین فعال است تا خود لاگین امن باشد -->
<!-- فرم -->
<form action="{{ route('login.submit') }}" method="POST" class="space-y-5">
@csrf
<input type="email" name="email" value="victim@webapp.kr-rezvan.ir" placeholder="ایمیل" required>
<input type="password" name="password" value="12345678" placeholder="رمز عبور" required>
<div>
<label class="block text-sm font-medium text-slate-700 mb-1">آدرس ایمیل</label>
<input type="email" name="email" value="victim@webapp.kr-rezvan.ir" required
class="w-full px-4 py-2 border border-slate-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none transition-all text-left" dir="ltr">
</div>
<button type="submit">ورود به پنل</button>
<div>
<label class="block text-sm font-medium text-slate-700 mb-1">رمز عبور</label>
<input type="password" name="password" value="12345678" required
class="w-full px-4 py-2 border border-slate-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none transition-all text-left" dir="ltr">
</div>
<button type="submit" class="w-full bg-indigo-600 hover:bg-indigo-700 text-white font-bold py-3 px-4 rounded-lg transition duration-200 shadow-md hover:shadow-lg">
ورود به داشبورد
</button>
</form>
<p style="font-size: 12px; color: #666; margin-top: 20px;">برای تنظیم اولیه پایگاه داده <a href="{{ route('setup.lab') }}">اینجا کلیک کنید</a>.</p>
</div>
<!-- لینک راه‌اندازی -->
<div class="mt-8 text-center text-sm text-slate-500 border-t pt-4">
پایگاه داده هنوز مقداردهی نشده؟
<a href="{{ route('setup.lab') }}" class="text-indigo-600 hover:text-indigo-800 font-medium transition">کلیک کنید</a>
</div>
</div>
</body>
</html>

View File

@ -1,7 +1,65 @@
<div style="font-family: tahoma,serif; padding: 20px; border: 1px solid #ccc;">
<h2>پنل کاربری (سایت قربانی)</h2>
<p>سلام <b>{{ $user->name }}</b> خوش آمدید.</p>
<p>ایمیل فعلی شما: <span style="color: blue;">{{ $user->email }}</span></p>
<hr>
<a href="{{ route('logout') }}">خروج از سیستم</a>
</div>
<!DOCTYPE html>
<html lang="fa" dir="rtl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ورود به حساب | WebApp Victim</title>
<!-- لود کردن Tailwind CSS از طریق Vite -->
@vite(['resources/css/app.css', 'resources/js/app.js'])
<style>
body { font-family: Tahoma, sans-serif; }
</style>
</head>
<body class="bg-slate-50 flex items-center justify-center min-h-screen">
<div class="bg-white p-8 rounded-2xl shadow-xl w-full max-w-md border-t-4 border-indigo-500">
<!-- لوگو و هدر -->
<div class="text-center mb-8">
<div class="inline-flex items-center justify-center w-16 h-16 rounded-full bg-indigo-100 text-indigo-500 mb-4">
<svg class="w-8 h-8" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"></path>
</svg>
</div>
<h2 class="text-2xl font-bold text-slate-800">ورود به سیستم</h2>
<p class="text-sm text-slate-500 mt-2">جهت دسترسی به پنل کاربری وارد شوید</p>
</div>
<!-- نمایش خطاها -->
@if($errors->any())
<div class="bg-red-50 border-r-4 border-red-500 text-red-700 p-4 rounded mb-6" role="alert">
<p class="text-sm font-medium">{{ $errors->first() }}</p>
</div>
@endif
<!-- فرم -->
<form action="{{ route('login.submit') }}" method="POST" class="space-y-5">
@csrf
<div>
<label class="block text-sm font-medium text-slate-700 mb-1">آدرس ایمیل</label>
<input type="email" name="email" value="victim@webapp.kr-rezvan.ir" required
class="w-full px-4 py-2 border border-slate-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none transition-all text-left" dir="ltr">
</div>
<div>
<label class="block text-sm font-medium text-slate-700 mb-1">رمز عبور</label>
<input type="password" name="password" value="12345678" required
class="w-full px-4 py-2 border border-slate-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none transition-all text-left" dir="ltr">
</div>
<button type="submit" class="w-full bg-indigo-600 hover:bg-indigo-700 text-white font-bold py-3 px-4 rounded-lg transition duration-200 shadow-md hover:shadow-lg">
ورود به داشبورد
</button>
</form>
<!-- لینک راه‌اندازی -->
<div class="mt-8 text-center text-sm text-slate-500 border-t pt-4">
پایگاه داده هنوز مقداردهی نشده؟
<a href="{{ route('setup.lab') }}" class="text-indigo-600 hover:text-indigo-800 font-medium transition">کلیک کنید</a>
</div>
</div>
</body>
</html>

File diff suppressed because one or more lines are too long