So, You Wanna Be A Pen-tester? - By Paid Hackers

penetration tester

So, You Wanna Be A Pen-tester?



Do You Need To Know A Programming Language?

I attended a conference by a very well-known ethical hacker. The guy surveyed a few hundred ethical hackers and the general consensus was: No……BUT….it does help. A lot. This pen-tester was a web developer and had an expert level of knowledge in PHP, Javascript, Jquery before becoming a pen-tester by the way.

What Languages Should I learn?

This is where the plot thickens. Just knowing a language wont help you *that* much. For example, if you want to use SQLi attacks, you’ll need to understand SQL. So you’ll need to know how to select tables, drop tables (dangerous command!), join tables etc. What’s a table? You should really look at database design. I have studied it at length at University level. Let me tell you – it sucks so bad. I hated it with a passion. But if you truly wish to understsand SQLi, you need to know it. So you’ll need to learn about entity relationship diagrams, primary keys, foreign keys. Click the spoiler to see an image of how it all looks:
Look difficult? No? Well that’s because that’s the easy part. You need to look at cardinality. Cardinality is the relationships such as: many-to-many, one-to-many etc. Click here for a little bit more info on that. See what I mean about the plot thickening? You asked what language should you learn and I mentioned SQL and look where it got us. I didn’t even mention C or C++. You need to learn more than just the language. You need to learn HOW things work at a low level.

Should I Know About Networking?

Yes. Yes you should. You don’t have to be an expert, but you need to understand about TCP/IP and various different protocols. You need to read up on reverse-shells, bind-shells. You’ll need to run Wireshark and look at protocols that are encrypted vs ones that aren’t encrypted – look at what the packets contain.

Different Kinds Of Attacks

You hear people on HF talk about privilege escalation, SQLi, getting shells etc. What is all of that? Where do you begin? Well, I’ll give you a quick example. A buddy of mine specialises in web attacks. I couldn’t find the email he sent me, but recently he got paid £2,000 because he found a vuln on a VERY popular site. When he went to the ‘delete account’ section of a website, the URL was something like this:

Quote:https://sitename.com/members/deleteMember=’20320324’

He noticed that the string of numbers was his user ID. By entering someone elses user ID, he could delete their account – WITHOUT KNOWING THEIR PASSWORD. My buddy created a script which he could have ran against the website and deleted their entire userbase. As my friend is a white-hat, he told me to create an account on the website. I created an account and within 2 mins, I got an email saying that my account was deleted. WTF. I hadn’t told him my username.

Well, it turned out that this website says: ‘Welcome to our site’. By simply clicking on the member’s name, he got the ID number. So entering the member number into the string deleted my account. Yes – it was poor programming that allowed this to happen, but that’s what hacking IS! Hackers/pen-testers take advantage of mistakes in code. Buffer overflows are a perfect example of this. C and C++ don’t provide built in protection from buffer overflow attacks, so you’ll find that many programs written in C or C++ may have had a buffer overflow vulnerability at one point. A buffer overflow is where a variable that lets too much data be stored in it, meaning an attacker can execute malicious code and potentially gain access to a machine.

So What Else Is There?

Well we’ve had a very brief discussion about SQLi, web attacks, buffer overflows, but one of the main ways people attack a system is by scanning for open ports. NMAP is the mack daddy of all networking tools. My security teacher literally got moist when he talked about NMAP. But again, you need to learn about banner grabbing. You need to learn about what to look for when you scan a computer. If you scan too aggressively, a sys admin will notice the traffic on his network monitoring system. I could write about NMAP for weeks. But I hope you’re getting the theme of this thread: Read, learn, try it and repeat over and over again.
Notice I’ve still not got to talk about Kali Linux yet. Kali Linux should be your distro for pen-testing. You’ll eventually want to look at the likes of BURP Suite and XSS attacks but that’s a short while off. Don’t overload yourself with information. Learn weekly at a steady pace. Read books. I absolutely hate reading. I find it boring, but I’ve learned a ton of stuff from reading books – and you can too.

Finally, I will say this: learn how to write. When you’re a pen-tester, as some guys on here will tell you, you need to write reports for your clients. You need to say what you found, how you found it and how to fix it. If you lie, if you aren’t good at writing, you’re going to look dumb and you are risking your career. Here is a very, very bad example of a bad pen-tester: http://it.toolbox.com/blogs/securitymonk...ster-58747

I highly, highly suggest you join groups online and in real life. Don’t learn on your own unless you have no choice. Join a computer club/hacking society. Go out of your way to find one. Don’t just use HF, join other security forums. Go on twitter and follow real pen-testers. I joined twitter and made a name for myself because I put the work in and was prepared to learn (forensics, not pen-testing).

My advice for those wanting to be pen-testers is this: Learn how a computer works. Learn how every little aspect of your computer functions. Take my friend’s web attack as an example. When you look at the string

Quote:https://sitename.com/members/deleteMember=’20320324’
– don’t think: “Yes! I’ve deleted my account!”…instead, think: “How can I make this do something it’s not supposed to?” That’s the difference between a hacker/pen-tester and someone who isn’t. A pen-tester thinks outside the box.

Should I Read Books?

Yes! That's like a fat person asking if they should run on the treadmill. There are so many security books out there it's not even funny. Look at books on networking, Kali linux, digital forensics, metasploit. There is so much information in books you wont believe it until you read them.

Should I Set Up VM's?

Yes. If I get enough people requesting, I will set up some VM's myself and perform some privilege escalation and some other attacks to teach you guys how it all works. VM's are awesome because you can break them and learn lots from attacking your other VM's. For example, if I set up XP on VM-1 and Kali on VM-2, I can attack XP and if I destroy it, it's ok, I can just load up a copy of the XP image before it broke.
                                          Sincerely Paid hackers
So, You Wanna Be A Pen-tester? - By Paid Hackers So, You Wanna Be A Pen-tester? - By Paid Hackers Reviewed by amit on 01:34 Rating: 5

1 comment:

Powered by Blogger.