image.png

Want to run this Docker container locally?

docker run -d -p 9009:80 --name ctf-flag-9 --restart always joshbeck2024/ctf-cookie-brute-force-flag-9

For this lab, you’ll need VSCode on Kali. (Setup Directions Here)

One of the libraries that you’ll use frequently in pen-test scenarios or red-team engagements is the Python requests library. This library allows you to create web requests in your Python code, giving the end user a high degree of control over the data sent to a remote endpoint. (You’ve already seen the requests library used in the API lab.)

In this lab, we’ll solve Flag_9 on the iCSI Cyber Range.

Let’s start by going to the webpage at HTTP://172.25.200.200:9009.

image.png

Before we go to the next page, let’s write some initial code using the requests library that will fetch the first webpage and print back its various components. It would be a good idea to make the code below run and push it to GitHub. (The code snippet below is super helpful!)

image.png

I would suggest opening a separate terminal, using cd to move the Lab_10 folder and running this program from there.

python3 Lab_10.py

image.png

Here is what your output should look like.

image.png