Introduction
PentesterLab includes **Exercises**, **Badges**, **Tracks**, **Blog** and **Glossary**.
## From SQL Injection to Shell
This exercise demonstrates how to leverage a SQL injection to gain access to the admin console, and from there, how to execute commands on the underlying system.
- Free
- Medium
- < 1 Hr.
- White Badge
- Course
## Introduction
This course details the exploitation of a **SQL injection** in a **PHP** based website and how an attacker can use it to gain access to the administration pages. Then, using this access, the attacker will be able to gain code execution on the server.
The attack is divided into 3 steps:
- **Fingerprinting:** to gather information on the web application and technologies in use.
- **Detection and exploitation of a SQL injection:** in this part, you will learn how SQL injections work and how to exploit them in order to retrieve information.
- **Accessing the administration pages and gaining code execution:** the last step in which you will access the underlying system and run commands.
Fingerprinting can be done using multiple tools. First by just using a browser, it's possible to detect that the application is written in PHP. A lot of information can be retrieved by connecting to the web application using `netcat` or `telnet`. Using an application such as **Burp Suite** as a proxy makes it easy to retrieve the same information.
The tool **wfuzz** can be used to brute force directories and pages on the web server. `wfuzz` can also be used to detect PHP files on the server.
In order to understand, detect and exploit SQL injections, you need to understand the Structured Query Language (SQL). SQL allows a developer to perform requests such as retrieving information using the `SELECT` statement, updating information using the `UPDATE` statement, adding new information using the `INSERT` statement, and deleting information using the `DELETE` statement.
The provided source lists **Sign in** and **Create Account**. It does not specify hardware requirements in the supplied material.
SQL injectionPHPWeb exercisesTracksBadgesCode executionBurp Suitewfuzz
Screenshots

Deployment
ISO 镜像
适用于在本地虚拟机中启动 PentesterLab 练习环境并进行离线漏洞利用训练。
PentesterLab alternatives View all 渗透测试 →
Dreamhack Proprietary
Dreamhack 是面向学生、开发者与安全从业者的黑客与网络安全学习练习平台,提供安全知识学习、实战训练与社区交流,帮助用户提升安全编码与攻防能力。
OffSec Proprietary
Build cyber workforce resilience with our unmatched skills development and hands-on learning platform and library.
看雪学院 Proprietary
看雪学苑|软件与系统安全、逆向工程与漏洞研究的专业学习平台
合天网安实验室 Proprietary
403 Forbidden
Hashnode Proprietary
Hashnode is a blogging platform where developers, engineers, and tech leaders write to sharpen ideas, share knowledge, a
51CTO博客 Proprietary
dngood的博客,Mysql,路由交换,虚拟化,负载均衡,网络,ubuntu,存储,Red Hat,shell/awk/perl,linux ,virtualizationit技术文章。
Adam Paxton Proprietary
Adam Paxton is a freelance ios app developer in St Louis, Missouri. Likes mobile app development, APIs, and other tech s
Pluralsight Proprietary
Pluralsight helps organizations, teams, and individuals build better products with online courses and data-driven insigh
Details
Type Commercial software
License freemium
Last verified 2026-07-18
In solutions
渗透测试 · 10 candidates →Ad slot 300 × 250 Ad
About the data
Stars / commit times sync automatically from the GitHub API; pricing and features are human-verified.