Penetration Testing: Basic Guide For Beginners

Penetration Testing: Basic Guide - picateshackz.com

Now, hackers come in all shapes, sizes and colors. Hacking is a very wide term. And by the first sentence, I’m not referring to the physical characters of the hackers, I’m talking about the field of specialization. Believe me, there is a lot of work to do on the Wireless domain that we had been working on so far (we have only touched wireless networks for the time being – you are a beginner), but wireless hacking is but a small island in the vast sea of hacking. A relatively large landmass is unarguably Penetration Testing, and a large name in this context is Metasploit. So here’s a guide which will give you a good idea about what Penetration testing is, and if you’re feeling to lazy, I’ve got it summarized here.


Difference between hacking, etithical hacking and penetration testing


Hacker: simply a person who invades or interferes with another system with the intent to cause harm, without having any permission from the system owner.

Ethical hacker: a professional hired by an organization to review its security posture from the eyes of the hacker. Ethical hackers test vulnerabilities of the systems.

Penetration tester: a professional who goes a step beyond the ethical hacker and provides an active analysis of the system for any potential vulnerabilities that could result from poor or improper system configuration, either known and unknown hardware or software flaws, or operational weaknesses. These professionals are largely involved in remediation. The whole process involves a written consent and rules of engagement from the client, which clearly spell what they can or cannot do, “This is basically our ‘get out of jail free’ card,” Bavisi says.


I am strongly recommend you to read my latest article to know more about hacking: Beginners Guide: What is Hacking and How to Become a Social Engineer



What is a penetration test?


What is penetration testing? Penetration testing, often called “pentesting”,“pen testing”, or “security testing”, is the practice of attacking your own or your clients’ IT systems in the same way a hacker would to identify security holes. Of course, you do this without actually harming the network. The person carrying out a penetration test is called a penetration tester or pentester.


  • How legal is it?


Let’s make one thing crystal clear: Penetration testing requires that you get permission from the person who owns the system. Otherwise, you would be hacking the system, which is illegal in most countries – and trust me, you don’t look good in an orange jump suit (or maybe you do, still I don’t recommend going to jail for it, buy one if you need it). In other words: The difference between penetration testing and hacking is whether you have the system owner’s permission. If you want to do a penetration test on someone else’s system, it is highly recommended that you get written permission. Much better, get your virtual machine up and running, with your already acquired VMWare skills, and practice on your own system.


  • What is a vulnerability?


A vulnerability is a security hole in a piece of software, hardware or operating system that provides a potential angle to attack the system. A vulnerability can be as simple as weak passwords or as complex as buffer overflows or SQL injection vulnerabilities. (SQL injection is another topic I’d like to touch. Later maybe. I’m taking up too many tasks at hand at once.)


  • What is security research?

Vulnerabilities are typically found by security researchers, which is a geeky term for smart people (how much we hackers love to call our self smart, especially the beginners who get too cocky) who like to find flaws in systems and break them.


  • What is an exploit?


To take advantage of a vulnerability, you often need an exploit, a small and highly specialized computer program whose only reason of being is to take advantage of a specific vulnerability and to provide access to a computer system. Exploits often deliver a payload to the target system to grant the attacker access to the system.

The Metasploit Project host the world’s largest public database of quality-assured exploits. Have a look at their exploit database – it’s right here on the site mentioned in the beginning of the article.


  • What is a payload?


A payload is the piece of software that lets you control a computer system after it’s been exploited. The payload is typically attached to and delivered by the exploit. Just imagine an exploit that carries the payload in its backpack when it breaks into the system and then leaves the backpack there. Yes, it’s a corny description, but you get the picture.Metasploit’s most popular payload is called Meterpreter, which enables you to do all sorts of funky stuff on the target system. For example, you can upload and download files from the system, take screenshots, and collect password hashes. You can even take over the screen, mouse, and keyboard to fully control the computer. If you’re feeling particularly bad-ass, you can even turn on a laptop’s webcam and be a fly on the wall.I would say that a payload is what exploits the ‘exploit’ and gives you some control over the exploited victim. Meterpreter is THE exploit, cause it doesn’t give you ‘some’ control, it gives you ALL of it (that’s some way to put it, yes,but not completely true. It still is the best payload. Beginners/noobs really enjoy the GUI feature available in this payload)


Getting Started With Penetration Testing


I see a lot of advice given to people when they ask the question “How do I get into pentesting?”The answer usually goes like use metasploit / armitage and exploit vulnerable XP systems. This approach is incorrect. Not completely, since stuff that actually works is bound to be more interesting than boring theory, but it is definitely not gonna help you in the long run. To get into penetration testing and bug spotting you first need to know what you’re looking for. Tools will only take you so far, personally I don’t think you should automate your pentesting until you can do it manually.


Now for the basic definitions of the terms related to penetration testing, here are a few resources that you should see. While I’m condemning the method of directly moving on to using tools, ironically, that’s what we are going to do from the next tutorial onward. So before we get started, here are a set of websites that you might want to check which will give you an idea of what manual work do the tools automate. This information will be valuable once you start Penetration Testing secure networks for big security firms. Automated tools are not gonna help there.



Important Resources


  • Web Penetration Testing Lab


Web applications have become common targets for attackers. Attackers can leverage relatively simple vulnerabilities to gain access to confidential information most likely containing personally identifiable information.While traditional firewalls and other network security controls are an important layer of any Information Security Program, they can’t defend or alert against many of the attack vectors specific to web applications. It is critical for an organisation to ensure that its web applications are not susceptible to common types of attack.


Best Practice suggests that an organisation should perform a web application test in addition to regular security assessments in order to ensure the security of its web applications.In this article i will explain to you a lists of common vulnerable web applications to built your first web penetration testing lab in Kali Linux.

Read more here



  • Sql Injection

A SQL injection attack consists of insertion or “injection” of a SQL query via the input data from the client to the application. A successful SQL injection exploit can read sensitive data from the database, modify database data (Insert/Update/Delete), execute administration operations on the database (such as shutdown the DBMS), recover the content of a given file present on the DBMS file system and in some cases issue commands to the operating system. 


SQL injection attacks are a type of injection attack, in which SQL commands are injected into data-plane input in order to effect the execution of predefined SQL commands.

Read more here


  • Metasploit

Metasploit is one of the most popular open source penetration testing frameworks available today. It offers tons of tools that range from scanning utilities to easy to launch exploits that include encoders used to bypass common security defenses. I’ll walk you through an example by compromising a Windows based authentication server that is not properly patched.


The easiest way to start using metasploit is to download a penetration testing arsenal that includes the metasploit framework such as Kali Linux. Kali Linux is an operating system designed for digital forensics and penetration testing . From Kali, you can run metasploit directly through command line, access a Metasploit GUI front end called Armitage or use Metasploit packages available in tools like the Social Engineering Toolset (SET). In my example, I’ll use the traditional command line.

Read more here


What to do next

Go ahead learning more tutorials, 🙂here is a list of all related posts from this blog.

  • Here is 6 levels of pentesting, you should most probably go in this order.

Level 1: [METASPLOIT TUTORIAL] Hacking Windows XPLevel 2: Kali Linux Tutorial: Find Vulnerabilities for Any Website Using NiktoLevel 3: Kali Linux Tutorial: Hack Your Own Network and Beef Up Its SecurityLevel 4: Crack Online Passwords Using THC-Hydra in Kali LinuxLevel 5: Hack Wi-Fi WPA/WPA2 With Kali LinuxLevel 6: Hack Android Remotely Using Kali Linux


You may also like...

4 Responses

  1. Parni Nair says:

    Thank you for sharing a great information about hacker, ethical hackers and penetration testing services. This is the most beneficial information for us. Due to increasing number of cyber attacks, it becomes essential to avail the security services from top-notch companies like Avyaan, that keeps companies information assets secure and help you fight against cyber attacks.

  2. Ben Hacker says:

    We are part of a team consisting of highly efficient developers and hackers. We investigate cheating partners via mobile phone hacks,e-mail hacks, Bank account hacking, We also develop hacked facebook, twitter, instagram, college grade upgrade, expunge criminal records and sever/database penetration etc.
    contact benhacker127001@gmail.com or +19562551363 (sms only)

Close