
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
- Create a folder called
Lab_10 and a file called Lab10.py
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.
- Remember, if you are running a Docker container locally, always replace
172.25.200.200 with localhost

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!)
- It would be best if you understood what each line here is doing.
- Between now and Christmas, things are definitely going to go rodeo.
- This is as baseline easy as it gets.

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

Here is what your output should look like.
