.page-header {
margin-bottom: 30px;
padding: 25px;
background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
border-radius: 12px;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
color: white;
text-align: center;
}
.page-header h2 {
margin-top: 0;
color: white;
font-size: 28px;
margin-bottom: 10px;
}
.page-header p {
margin: 10px 0;
opacity: 0.95;
font-size: 15px;
}
.warning-box {
background: rgba(255, 193, 7, 0.2);
border-left: 4px solid #ffc107;
padding: 15px;
margin: 20px 0;
border-radius: 4px;
}
.warning-box strong {
color: #ff9800;
font-size: 16px;
}
.tool-section {
margin-bottom: 30px;
padding: 25px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 12px;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
color: white;
}
.tool-section.encode-section {
background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
.tool-section h3 {
margin-top: 0;
color: white;
font-size: 22px;
margin-bottom: 15px;
}
.input-grid {
display: grid;
grid-template-columns: 1fr;
gap: 15px;
margin-top: 20px;
}
.input-group {
display: flex;
flex-direction: column;
gap: 8px;
}
.input-group label {
font-weight: bold;
font-size: 14px;
color: rgba(255,255,255,0.95);
}
.input-group input,
.input-group select {
padding: 12px;
font-size: 16px;
border: 2px solid rgba(255,255,255,0.3);
border-radius: 6px;
background: rgba(255,255,255,0.95);
transition: all 0.3s ease;
font-family: 'Courier New', monospace;
}
.input-group input:focus,
.input-group select:focus {
outline: none;
border-color: #ffc107;
background: white;
box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}
.button-row {
display: flex;
gap: 10px;
margin-top: 20px;
flex-wrap: wrap;
}
.calc-button {
padding: 14px 35px;
font-size: 16px;
background: #ffc107;
color: #333;
border: none;
border-radius: 6px;
cursor: pointer;
font-weight: bold;
transition: all 0.3s ease;
box-shadow: 0 2px 4px rgba(0,0,0,0.2);
flex: 1;
min-width: 150px;
}
.calc-button:hover {
background: #ffb300;
transform: translateY(-1px);
box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.calc-button:active {
background: #ffa000;
transform: translateY(0);
}
.calc-button.secondary {
background: rgba(255,255,255,0.9);
color: #333;
}
.calc-button.secondary:hover {
background: white;
}
.advanced-options {
margin-top: 15px;
padding: 15px;
background: rgba(0,0,0,0.1);
border-radius: 6px;
display: none;
}
.advanced-options.show {
display: block;
}
.checkbox-group {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 10px;
}
.checkbox-group input[type="checkbox"] {
width: 20px;
height: 20px;
cursor: pointer;
}
.checkbox-group label {
margin: 0;
cursor: pointer;
user-select: none;
}
.result-section {
background: white;
border: 1px solid #e0e0e0;
border-radius: 8px;
margin-top: 20px;
overflow: hidden;
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
display: none;
}
.result-section.show {
display: block;
}
.section-header {
background: linear-gradient(135deg, #28a745 0%, #218838 100%);
color: white;
padding: 15px 20px;
font-size: 18px;
font-weight: bold;
}
.section-content {
padding: 20px;
background: #fafafa;
}
.data-row {
display: flex;
margin: 12px 0;
padding: 10px;
background: white;
border-radius: 4px;
border-left: 3px solid #28a745;
align-items: center;
}
.data-label {
font-weight: bold;
color: #555;
min-width: 180px;
flex-shrink: 0;
}
.data-value {
color: #333;
font-family: 'Courier New', monospace;
word-break: break-word;
flex: 1;
}
.data-value.highlight {
color: #28a745;
font-weight: bold;
font-size: 18px;
}
.copy-button {
margin-left: 10px;
padding: 6px 12px;
font-size: 12px;
background: #007bff;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
transition: all 0.3s ease;
white-space: nowrap;
}
.copy-button:hover {
background: #0056b3;
}
.copy-button.copied {
background: #28a745;
}
.transfer-button {
margin-top: 15px;
padding: 10px 20px;
font-size: 14px;
background: #6c757d;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
transition: all 0.3s ease;
}
.transfer-button:hover {
background: #5a6268;
}
.error-message {
color: #dc3545;
font-weight: bold;
padding: 10px;
background: #f8d7da;
border-radius: 4px;
margin: 10px 0;
}
.success-message {
color: #28a745;
font-weight: bold;
padding: 10px;
background: #d4edda;
border-radius: 4px;
margin: 10px 0;
}
.info-box {
margin-top: 30px;
padding: 20px;
background: white;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
border-top: 3px solid #dc3545;
}
.info-box h3 {
margin-top: 0;
color: #dc3545;
font-size: 20px;
}
.info-box h4 {
color: #666;
font-size: 16px;
margin-top: 20px;
margin-bottom: 10px;
}
.info-box p, .info-box li {
line-height: 1.6;
color: #555;
margin: 10px 0;
}
.info-box ol, .info-box ul {
margin-left: 20px;
}
.info-box a {
color: #dc3545;
text-decoration: none;
}
.info-box a:hover {
text-decoration: underline;
}
.recommendation-box {
background: #d4edda;
border-left: 4px solid #28a745;
padding: 15px;
margin: 20px 0;
border-radius: 4px;
}
.recommendation-box strong {
color: #28a745;
}
.example-buttons {
display: flex;
gap: 10px;
margin-top: 10px;
flex-wrap: wrap;
}
.example-button {
padding: 8px 16px;
font-size: 13px;
background: rgba(255,255,255,0.8);
color: #333;
border: 1px solid rgba(255,255,255,0.5);
border-radius: 4px;
cursor: pointer;
transition: all 0.3s ease;
}
.example-button:hover {
background: white;
border-color: white;
}
/* Responsive design */
@media (max-width: 768px) {
.data-row {
flex-direction: column;
align-items: flex-start;
}
.data-label {
margin-bottom: 5px;
min-width: auto;
}
.copy-button {
margin-left: 0;
margin-top: 8px;
}
.button-row {
flex-direction: column;
}
.calc-button {
width: 100%;
}
}
قسم فك التشفير
قسم الترميز
حول تشفير كلمة المرور من النوع 7 من Cisco
ما هو التشفير من النوع 7؟يُعد Cisco Type 7 طريقة تشويش بسيطة، وليس تشفيرًا حقيقيًا. تم تصميمه في الثمانينيات لمنع المراقبة العرضية لكلمات المرور في ملفات التكوين، لكنه لا يوفر أمانًا حقيقيًا ضد المهاجمين المصممين.
كيف يعمل النوع 7 "التشفير":
-
الملح الثابت:يستخدم النوع 7 سلسلة ثابتة مشفرة: "dsfd;kfoA,.iyewrkldJKDHSUBsgvca69834ncxv9873254k;fg87"
-
اختيار الفهرس:يشير أول رقمين من السلسلة المشفرة إلى الحرف الذي سيبدأ به (0-52) في الملح
-
عملية XOR:يتم XORed كل حرف من كلمة المرور بأحرف متتالية من الملح
-
الترميز السداسي:يتم تحويل نتائج XOR إلى أزواج سداسية عشرية ومتسلسلة
لماذا يعتبر النوع 7 غير آمن:
- تم إجراء هندسة عكسية للخوارزمية وتم نشرها في عام 1995
- الملح معروف علنا ولا يتغير أبدا
- إنه تشفير XOR بسيط، وليس تشفيرًا مشفرًا
- يمكن كسرها على الفور باستخدام الأدوات المتاحة بسهولة
- يوفر حماية صفرية ضد أي شخص لديه حق الوصول إلى التكوين
ناقلات الهجوم:
-
الوصول إلى SNMP:يمكن للمهاجمين الاستعلام عن أجهزة الشبكة عبر SNMP لاسترداد التكوينات
-
اختراق خادم النسخ الاحتياطي:قد تكون خوادم TFTP أو FTP أو SCP التي تخزن النسخ الاحتياطية عرضة للخطر
-
اعتراض البريد الإلكتروني:غالبًا ما تتضمن اتصالات TAC تكوينات
-
التهديدات الداخلية:يمكن لأي شخص لديه حق الوصول للقراءة إلى التكوينات فك تشفير كلمات المرور
✓ الحلول الموصى بها:
-
النوع 5 (MD5):استخدم "تمكين السر" بدلاً من "تمكين كلمة المرور" - يوفر تجزئة MD5 أحادية الاتجاه
-
النوع 8 (PBKDF2-SHA256):اشتقاق مفتاح حديث يعتمد على كلمة المرور (متوفر في إصدارات IOS الأحدث)
-
النوع 9 (سكريبت):الخيار الأكثر أمانًا، ومقاوم للهجمات القائمة على الأجهزة (IOS-XE 16.9+)
-
AAA/تاكاكس +:مركزية المصادقة واستخدام بروتوكولات أقوى
-
النقل الآمن:استخدم دائمًا SSH بدلاً من Telnet، وHTTPS بدلاً من HTTP
الدفاع في العمق:
حتى مع التشفير المناسب لكلمة المرور، قم بتنفيذ إجراءات الأمان التالية:
- استخدم مراقبة مستوى التحكم (CoPP) لحماية مستوى الإدارة
- تنفيذ قوائم التحكم في الوصول (ACLs) لتقييد الوصول إلى الإدارة
- تأمين SNMP باستخدام سلاسل مجتمعية قوية وقوائم ACL (أو تعطيلها في حالة عدم استخدامها)
- حماية خوادم النسخ الاحتياطي للتكوين من خلال المصادقة والتشفير المناسبين
- استخدم DNSSEC لمنع هجمات تسميم DNS
- تنفيذ الوصول الأقل امتيازًا وتدوير بيانات الاعتماد بانتظام
مراجع:
الغرض التعليمي:
يتم توفير هذه الأداة للأغراض التعليمية واختبار الأمان المعتمد فقط. وهو يوضح ضعف أساليب التشفير القديمة ويسلط الضوء على أهمية استخدام آليات المصادقة الحديثة والآمنة. لا تستخدم هذه الأداة مطلقًا للوصول غير المصرح به إلى الأنظمة.