Skip to content
Tech News
← Back to articles

My OSCP Pentesting Cheatsheet

read original more articles
Why This Matters

This article provides practical tips and command snippets for penetration testers preparing for the OSCP exam, emphasizing the importance of organized workflows and environment management. These techniques can enhance efficiency and accuracy in real-world security assessments, benefiting both professionals and organizations by improving penetration testing effectiveness.

Key Takeaways

My OSCP Pentesting Cheatsheet

I had my OSCP exam on 14.03.2025 and on 17 March, three days later, I already received the confirmation, that I had passed the OSCP exam!

This is my compiled and comprehensive list of useful commands that I have documented in my personal knowledge base. In this blog post, I can find useful tips and commands about network and service enumeration, password guessing, reverse shells, Active Directory and Windows post exploitation that can be useful for penetration testing and the OSCP exam.

Some useful Tips

.env file

I created a separate directory for each machine that I hacked during my preparation and the OSCP exam. I then created an .env file in each of these directories and stored useful environment variables such as $TARGET_IP and $TARGET_DOMAIN in them:

1 2 export TARGET_IP = "10.10.10.11" export TARGET_DOMAIN = "hackerask.com"

Then I could simply source the .env file whenever I wanted to work on this machine:

1 source .env

This is especially useful when you are working with multiple terminal tabs.

... continue reading