Skip to content

SQL Injection

In the Lecture Materials we have looked at SQL Injection

Here we will dig deeper and try to find more information.

Getting Started: The Web Trainer

For the next set of tasks I have setup a docker container that has examples. You can find the docker compose file

Web Trainer

Instructions for the Trainer

  1. Make sure you have docker installed
  2. Install docker-compose

    $sudo pip3 install docker-compose
    

  3. Download the docker compose file

  4. Run the compose file with

    $sudo docker-compose up
    

  5. There will now be a website running on your machine at 172.18.0.1

Using WSL

If you are using WSL the address will be the address of your WSL container. You can find this with ip addr

Tasks:

Login Bypass

Stretch Goal

So we can login as Admin. Can you think of a way we could maipulate the query to login as someone else?

Database Enumeration

Done All That

Try SQL Injection in the DVWA

Done That Also

  • Ask me about more examples from a CTF I made.
Back to top