Logo
Overview
Python Scripting

Python Scripting

July 30, 2025
1 min read
index

INTRODUCTION

I completed this short room on TryHackMe titled Python Basics, available here. It covered Python fundamentals: syntax, conditionals, loops, functions, and file handling. The objective was to demonstrate how scripting can support cybersecurity operations — from automating tasks to modifying files and controlling systems through the command line. Each section was straightforward; I’ve included screenshots of the tasks I completed.

HELLO WORLD

Hello World

MATHEMATICAL OPERATIONS

Math 1
Math 2
Math 3
Math 4

VARIABLES

Variables

LOGICAL AND BOOLEAN OPERATORS

Logic

LOOPS

Loops

FUNCTIONS

Functions

FILES

Files

IMPORTS

There was no interactive task in this section, but I learned how to use Python libraries — collections of prewritten functions — to extend my code.

CONCLUSION

This was a worthwhile revision. While I already knew most of the content, it was refreshing to revisit the basics. Since scripting is essential in cybersecurity workflows, this was a helpful reintroduction to Python.

Final screenshot below

Final