Skip to content

Latest commit

 

History

History
47 lines (29 loc) · 1.34 KB

File metadata and controls

47 lines (29 loc) · 1.34 KB

Task 4 - General/Useful Utilities

Task 4 General/Useful Utilities

Ensure you are connected to the deployed instance (MACHINE_IP)

{% hint style="success" %} No answer needed {% endhint %}

Now, use Python 3's "HTTPServer" module to start a web server in the home directory of the "tryhackme" user on the deployed instance.

{% hint style="warning" %} HINT: python3 -m http.server {% endhint %}

{% hint style="success" %} No answer needed {% endhint %}

Download the file http://MACHINE_IP:8000/.flag.txt onto the TryHackMe AttackBox (or your kali box). What are the contents?

{% hint style="warning" %} HINT: Use wget! It's a hidden file so don't forget the period in .flag.txt when downloading and catting {% endhint %}

Reveal Flag 🚩

🚩THM{WGET_WEBSERVER}

Create and download files to further apply your learning -- see how you can read the documentation on Python3's "HTTPServer" module.

Use Ctrl + C to stop the Python3 HTTPServer module once you are finished.

{% hint style="warning" %} HINT: https://docs.python.org/3/library/http.server.html {% endhint %}

{% hint style="success" %} No answer needed {% endhint %}