r/Hacking_Tutorials • u/[deleted] • Dec 20 '20
Security What is Penetration testing and how to get your first job! Advice from a hiring manager (detailed post)
This post aims to:
- Give you guidelines as to when you are ready for your first interview!
- Help you understand the core areas of penetration testing and decide which is for you
- Advice on how to ace interviews and stand out
- Give you a structure to follow that will set you on a path to not only become a penetration tester, but stand out amongst the others.
Welcome
I am hoping that this post will either help, inspire or guide you to getting your first job in Penetration testing job. Whilst this article is based on the UK market, the technical skills are identical so this article will still be valuable. I am currently working as a managing consultant with hiring responsibilities and this post will mould you into an ideal candidate. I joined the industry following dropping out of university twice and completing an apprenticeship in software development.
The following advice applies to both those who are interested in the subject with no degree and those with degrees. If you like me, do not hold a degree then it is absolutely crucial that you stand out in an interview, this guide will prepare you to do this. If you have a degree, great! follow this guide to ensure that you are bringing more to the interview than other interviewees.
What is Penetration testing and is it for you?
Penetration testing is a well paid, well respected and an enjoyable career path. Depending on what part of the UK you will work in you can expect to start on a wage between 18k - 25k per year, this can rise quickly by getting certain qualifications and you can typically expect a yearly pay rise if you are performing as expected.
An Penetration tester simulates a malicious threat actor by attempting to breach a system, application or human defence. The results are then written up in a large report and distributed to the client with remediation advice. There are many areas of penetration testing but we will be focusing on the main two that will help you gain employment. These being web application testing & infrastructure.
What is web application testing and what is a day in the life of a tester like?
Web application Penetration testers perform assessments on application technologies that use the HTTP protocol. This could be a website, API, thic-client and often mobile applications. A day in the life of an applications specialist would involve scoping calls, testing and discussing previous engagements with clients to help them remediate issues. Typically, applications specialist are office or home based with little travel. This path will be discussed further later in this post.
What is Infrastructure testing and what is a day in the life of a tester like?
Infrastructure testers perform assessments on companies internal and external networks, perform build and firewall reviews and other niche tasks. A typical day in the life of an infrastructure tester will involve travelling to different city's, scoping, remediation advice and testing. This path will be discussed further later in this post.
What is scoping?
Scoping is an art form that all penetration testers must develop. The ability to communicate with clients effectively and assess applications to determine how much time it will take to test them. This will then be put in a proposal by a salesman and sold. Your company will guide you on scoping so you don't have to worry too much for now, just bare in mind, scoping will be a large part of your job.
What are reports?
Reports are the deliverable from a penetration testing service. A client, pays a lot of money for a test that is usually broken down into days testing and days reporting. The client knows you are working during this time but the product they actually receive is the report. Good English and formal writing capabilities are absolutely essential to being a good penetration tester, these can be learned if you this is an area you are not confident with.
English for dummies:
https://amzn.to/3rfUCL6 (UK link)
https://amzn.to/3nDeNjF (US link)
As you can see, penetration testers are responsible for a lot more than just testing. Having good soft skills will help you accelerate through your career.
I don't know which area is best for me, what should I choose?
Whilst having knowledge and performing tests in both web and infrastructure is common for top consultants, it is best to choose one to focus on whilst learning, I have outlined below some common profiles for web & infrastructure testers that apply to us.
Web application profiles:
- Software and web developers
- Game Designers
- application support
- Database admins
- anyone that show an understanding in the area and a passion for the subject and hacking.
Infrastructure profiles:
- System/network administrators
- IT support
- Security operations centre officer
- anyone that show an understanding in the area and a passion for the subject and hacking.
There are many other profiles that apply to become penetration testers and no size fits all but the above should give you an understanding of where you may fit in. I am sure you have noticed the final point on both profiles - anyone that shows understanding in their chosen area and a true passion for the subject can apply to become a penetration tester. Companies have their own internal training programs and are happy to invest in training for their testers.
Commonly asked questions:
- Do I need a degree to become a penetration tester?
No. A degree is of course helpful, but it is not necessary
- I hate programming. Do I really need to learn it?
The short answer is no, however, it will significantly improve your chances of getting a job if you can demonstrate some practical programming knowledge (we will discuss this a bit later). This is more important for web application testers than infrastructure but any infrastructure tester who can code will be set aside from the typical profile and likely progress quickly in their career.
So, you are just hacking things all the time, that must just be fun, right?
Penetration testing is very enjoyable, however, testers can be under huge amounts of pressure from a constantly changing diary and strict deadlines for tests. We can only test during a pre-arranged time otherwise we are breaching the computer misuse act. Penetration testers also spend a lot of time writing extensive reports. Strong written English is essential to becoming a successful penetration tester. if this puts you off, it shouldn't, go and find a cheap course and start practising your formal writing as mentioned above.
Do I need a powerful computer to start hacking?
Not at all, kali Linux does not need a huge amount of computational power.
------------------------------ Where to start and when to interview - web applications ------------------------------
An understanding of HTTP is absolutely essential. This is the core protocol that you will be using so do not skip over this.
Our bible, the web application hackers handbook pt 2. is absolutely essential for becoming a web application tester and it also has a great chapter on the HTTP protocol. This book will run you through the OWASP top ten vulnerabilities and theory behind vulnerabilities.
Setup your environment
The web application hackers handbook pt2: finding an exploiting flaws:
https://amzn.to/2LTAA91(UK link)
https://amzn.to/34wT6dP (US link)
It is absolutely crucial that you learn the HTTP protocol. Once you have read the chapter from the web application hackers handbook, it is worth learning the ins and outs of HTTP.
HTTP: the definitive guide:
https://amzn.to/34uSq8B (UK link)
https://amzn.to/34vJxMa (US link)
Hacking exposed: web applications. This is a great resource, especially to use as a reference.
https://amzn.to/34tuOBm (UK link)
https://amzn.to/2Wxjikc (US link)
Being able to script and develop applications is an important skill for web testers. This means you can easily create vulnerable applications for proof of concepts and have a deep understanding about how applications work. THIS WILL MAKE YOU STAND OUT IN INTERVIEWS - create an application page with vulnerabilities alongside their mitigated versions to bring with you. This shows you understand how the vulnerabilities work and how to fix them. The next part of the guide (key areas) will help you do this.
The skill areas you should focus on:
- Software development - LAMP stack - Linux, Apache, Mysql, PHP (inc html,css)
Linux is the base operating system, apache is the web server software, mysql is the database software and PHP is the scripting language. HTML is used to structure a page and CSS design it.
To do this you can start by learning how to use Kali Linux. Kali linux is a hacking operating system that comes with many powerful tools installed. Download and install kali as a virtual machine with either vmware or virtualbox. virtualbox is free
https://www.kali.org/downloads/
https://www.virtualbox.org/wiki/Downloads
https://phoenixnap.com/kb/how-to-install-kali-linux-on-virtualbox
The following code academy course is a great place to start to learn how to use the command line and get familiar with linux. Code academy is great as it offers a monthly subscription for courses. I HIGHLY recommend you get a monthly subscription whilst learning, you can cancel this after if you want but I keep mine to learn new technologies.
https://www.codecademy.com/learn/learn-the-command-line
Basic HTML & CSS:
https://www.codecademy.com/learn/paths/learn-how-to-build-websites
You should now start learning PHP! This is a server-side language that is used for web development.
https://www.codecademy.com/learn/learn-php
Now that you have an understanding of the command line. Find out how to start your apache service and host the files in your /var/www/html so you can easily practice PHP and web design.
Follow this tutorial to make your first authenticated web application:
https://www.tutorialrepublic.com/php-tutorial/php-mysql-login-system.php
Burpsuite:
The main tool we use is burpsuite, this has a free community edition available. There are many tutorials on how to set this up.
What is OWASP
OWASP is the Open web application security project and it is followed religiously, they research and release a top 10 vulnerabilities list, methods of exploitation and remediation. This top ten list should be learned and the vulnerable application alongside the mitigated version created to bring into interviews.
https://owasp.org/www-project-top-ten/
Once you have built these labs, you are ready for your interview! good luck!.
Whilst not always necessary, having infrastructure knowledge will make you stand out so its always worth following the infrastructure prep path as well!
------------------------------ Where to start and when to interview - Infrastructure ------------------------------
Firstly, an infrastructure tester know the ins and outs of TCP/IP and UDP. These are the protocols that allow data transfer. A very common interview question is "what is the difference between TCP and UDP". Infrastructure testers will also be expected to know common port numbers and what services are hosted on them.
Network security assessment is the first book you should read. This covers the basics of performing an assessments and also talks about TCP/IP, UDP and services.
https://amzn.to/3apJpkX (UK link)
https://amzn.to/3nFhilQ (US link)
Download and install kali as a virtual machine with either vmware or virtualbox. virtualbox is free
https://www.kali.org/downloads/
https://www.virtualbox.org/wiki/Downloads
https://phoenixnap.com/kb/how-to-install-kali-linux-on-virtualbox
In web applications, we created a vulnerable application to demonstrate our knowledge and learn. In infrastructure, it is useful to create multiple virtual machines that are running vulnerable software and exploit it using metasploit. Metasploit is installed by default in kali and you can learn how to use it with the following:
https://www.tutorialspoint.com/metasploit/index.htm
Capture the flag challenges are also a great resource, they are purposely vulnerable machines created by users for you to hack. The best site at the moment is hackthebox
Hackthebox has a free version, once you have followed some walkthroughs and out your knowledge from the book to practice you should start creating your own vulnerable virtual machines in a CTF style to bring with you to interviews.
Once you have created a few hackthebox style challenges, you are ready to apply for your first interview! remember to bring these with and explain them.
exploitdb
exploitdb is a massive database of pre-written exploits. Often, alongside the exploit vulnerable software is also hosted. You can download the software and use the exploit, this should help with creating your CTF
Typical exam paths
You do not necessarily need to hold any qualifications before interviewing in the UK but I have included the typical career path of a penetration tester. I believe junior pen testers in the USA will often hold Net+ and Sec+
UK:
Two main awarding bodies, CREST and CHECK. The end goal is to achieve check team member and check team leader, these can be achieved through multiple pathways between bodies but the typical is:
Crest practitioner security analyst > crest registered tester (check team member equivalent) > Check team leader
https://www.crest-approved.org/examination/practitioner-security-analyst/index.html
https://www.crest-approved.org/examination/registered-tester/index.html
https://www.tigerscheme.org/qualifications.php
USA:
Net+, Sec+
https://www.comptia.org/certifications/security
https://www.comptia.org/certifications/network
(If anyone would like to contribute to the USA section for exam paths, please pm me - arkiona)

