1. Using Academy Effectively

Academy Modules Layout

كل Module فيه:
- Sections: نظرية + Interactive
- Questions: تمارين على كل section
- Skills Assessment: تطبيق عملي في النهاية

نصيحة:
- اقرأ النظرية → جرّب في الـ Lab → وثّق النوتات
- لا تتخطى الـ Interactive sections — هي الأهم

2. Background & Preparation

Penetration Testing Overview

Pentest vs Vulnerability Assessment:
- VA: يحدد ويصنّف الثغرات بدون استغلال
- Pentest: يستغل الثغرات لإثبات الأثر

أنواع الاختبار:
Black Box  → ما في معلومات مسبقة
Grey Box   → بعض المعلومات (credentials أو network diagram)
White Box  → كل المعلومات (source code, credentials, network)

Laws and Regulations

مهم جداً — القانوني قبل التقني

تحتاج دائماً:
- Written Authorization (إذن كتابي)
- Scope محدد
- Rules of Engagement

قوانين مهمة:
- Computer Fraud and Abuse Act (CFAA) — USA
- Computer Misuse Act — UK
- GDPR — Europe (لو بيانات شخصية)

ملاحظة: القانون يختلف من دولة لأخرى
دائماً استشر محامي قبل أي engagement

Penetration Testing Process

المراحل الـ 8:

المرحلة الوصف
Pre-Engagement عقود، scope، RoE
Information Gathering OSINT وRecon
Vulnerability Assessment تحديد الثغرات
Exploitation استغلال الثغرات
Post-Exploitation الوصول والثبات
Lateral Movement التحرك داخل الشبكة
Proof of Concept إثبات الأثر
Reporting التوثيق والتقرير

3. Penetration Testing Phases

Pre-Engagement

# الوثائق اللازمة:

# 1. Non-Disclosure Agreement (NDA)
# يحمي معلومات العميل السرية

# 2. Statement of Work (SoW)
# يحدد: ماذا ستفعل + كم تكلف

# 3. Rules of Engagement (RoE)
# ماذا مسموح + ماذا ممنوع + ماذا تفعل لو وجدت incident حقيقي

# 4. Scope of Work
# IPs, Domains, Applications

# 5. Permission to Test Letter
# وثيقة رسمية موقّعة تسمح بالاختبار

# مثال Scope:
cat > scope.txt << EOF
In-Scope:
  - 10.10.10.0/24
  - *.inlanefreight.com
  - https://app.inlanefreight.com

Out-of-Scope:
  - *.mail.inlanefreight.com
  - 10.10.10.1 (Core Router — No DoS)
  - Third-party services

Testing Window:
  - Monday-Friday 09:00-17:00 EST
EOF

Information Gathering

# Passive Recon — بدون تلمس الهدف
whois target.com
dig target.com ANY
curl -s "https://crt.sh/?q=target.com&output=json" | jq -r '.[].name_value'
theHarvester -d target.com -b all
shodan search "org:target"

# Active Recon — تلمس مباشر للهدف
nmap -sV -sC target.com
gobuster dir -u https://target.com -w wordlist.txt
whatweb https://target.com

Vulnerability Assessment