Lesson finished
Up next: Maintaining Access, Covering Tracks and Types of Security Testing
Unlock all 67 lessons of The Ethical Hacking Course (TEHC)Full course ₹40,000 · paid
Five Phases of Ethical Hacking: Recon, Scanning, Access
A free lesson from Skill-Lync's The Ethical Hacking Course (TEHC) course, on Grow by Skill-Lync · Last updated 16 Nov 2026 · Session: “Week 1 Session 1 Part 2”
What will you learn in this free The Ethical Hacking Course (TEHC) lesson?
The instructor links risk, vulnerability and mitigation, then lists the five phases of ethical hacking. The lesson covers passive reconnaissance (social engineering, dumpster diving, network sniffing), active reconnaissance with tailgating, scanning with port scanners and network mappers, and the start of gaining access.
- Risk, vulnerability and mitigation relationship
- Passive versus active reconnaissance
- Network mapping and port scanning basics
- Denial of service and session hijacking
What comes after lesson 2?
The next free lesson is lesson 3, “Maintaining Access, Covering Tracks and Types of Security Testing” (39 min). Later in Skill-Lync's The Ethical Hacking Course (TEHC) course (paid): lesson 4, Week 1 Session 3; lesson 5, Week 1 Session 4 Part 1; lesson 6, Week 1 Session 4 Part 2. The full course has 67 lessons (29 h 53 min of video); see the course overview or its price and syllabus.
Lesson transcript
Machine transcript of the lesson audio (lightly cleaned). Technical terms may contain errors; the video is the reference.
So putting things together. So if you could see the risk is resolved by mitigation. So mitigation is something where the remediation takes place. So whatever vulnerability, the weakness that is identified, that is being resolved by mitigation. So mitigation is a process where remediation is done patching or fixing the problem. So that is the mitigation. So mitigation. So once the problem is solved, it would affect the threat. So the once the problem is solved, then the attacker finds it hard to get into the system. So that affects the threat source of the attack. So vulnerability, when we say vulnerability, that is the weakness and that vulnerabilities is exploited by the threat, the threat actor or the attacker.
So the risk leads to vulnerability. So the risk leads to vulnerability. So a risk is something that is the consequence of the attacker trying to exploit the vulnerability. So let us say if the credit card details are stolen by the attacker. So what is the risk in that? These credit card details can be used by the attacker to get money from the banks, right? So to get us to steal the money using those credit card details. And that is the risk where the credit card holders have. So the risk is now the money getting stolen. So that is the risk. So that is the, you know, interdependent activity that goes on. So that's what we look at here.
So now let us see the different phases in ethical hacking. So basically there are five phases of ethical hacking, similar to the modus operandi of a malicious hacker. So modus operandi is the mode of operation. So the phases of ethical hacking. So though it is ethical hacking, but we need to follow the footsteps of a real time hacker. So only then we can do the testing and identify vulnerabilities in a way which the hacker, actual criminal hacker would try to, you know, attack. So this would follow the five phases. So initially we'll start with reconnaissance and then scanning and gaining access, maintaining access and covering the tracks.
So each phase will be discussed in detail in further slides. So irrespective of the intention of a hacker, the steps involved in exploiting and gaining access to a computer system remain the same. So the intention. So in the previous slide, we saw it is only the intention that differentiates an ethical hacker and the malicious hacker. So now the knowledge is the same, whereas the intention is different. So that's what it is. So the phase of attack. So how the, you know, identifying of vulnerabilities is done.
So how the identification is done. So, so even the ethical hacker as well as the, you know, criminal hacker would try to perform the same activities. So they would follow the same steps to identify vulnerabilities and try to exploit them, whereas the ethical hacker would identify the vulnerabilities, report them and have them remediated or fixed. So whatever vulnerabilities or weakness is found, they will be fixed by the recommendation from the ethical hacker. Whereas a malicious hacker would take advantage of those vulnerabilities and try to steal the data.
And once the data is stolen, the organization may not even know that data has been stolen. So the ethical hacker would try to patch up those weaknesses in the system. So let us look at the first phase, which is reconnaissance. So reconnaissance is simply the information gathering. So if you have watched the movie Avengers Endgame, so Captain Marvel would say this sentence like this term. I'll head down for a recon. So reconnaissance. Recon is reconnaissance. So where it's simply information gathering. So most of the activities done by ethical hacker or in cyber security, most of the steps we take are similar to what is done during a war or some military operations.
So even in a military operation, they would do a reconnaissance initially before they could attack the enemy boundaries. So from a distance, they will understand what are the strengths and weaknesses of the enemies. So based on that, they would, you know, get themselves equipped. So that information gathering is more essential to make ourselves equipped with, you know, all the options available to attack and succeed in the operation. So in reconnaissance, we have two types. One is active reconnaissance and another one is passive reconnaissance. So we'll look at that in further slides.
So passive reconnaissance. Passive reconnaissance is something where the information gathering is done mostly without the potential target's knowledge. So the target could be an individual or an organization. So social engineering, dumpster driving and network sniffing. So these are the three types. So social engineering is something where, so as I told, passive reconnaissance is done without the knowledge of the target, right? So in social engineering, let us say, I simply call you and say I'm calling from so-and-so bank and I just have an option for you to get a corporate credit card or something of that sort.
So I would ask you in which organization you are working. So I may ask you your, what is the designation of you in the organization? You know, where is your office located? So all these things. So these are getting socially connected with the, you know, individual or the organization or in some other cases, I could get your details from your Facebook account or from your LinkedIn account or, you know, some other sources from the internet. So all these come under social engineering. So social engineering is getting in touch with the individual socially or maybe through social media or social networks.
So dumpster diving, so dumpster diving is something where we get the information from the trash. Let us say you have got your credit card bill this for this month and that is being sent to you. I have post, let us say, for example, so that post you have got in an envelope cover and the credit card bill is a physical paper, right? So that sheet, you simply have some information, right, about your credit card number and other details. So how much you have, you know, balance and how much you have swipe for.
So all this information will be there and you simply look at it and you simply, you know, trash it. You put it into a dustbin and so these kind of things which go into the dustbin or the trash can. So when an attacker physically has access to your home or your office location, so he or she may get into the trash can and, you know, find out that particular paper. So this is one scenario. There may be various types of information. So it's always necessary and it is always imperative that any sensitive information, any sensitive paperwork or something that contains sensitive information that should be shredded completely and then dumped.
It should not be, you know, directly dumped into the trash can. So this kind of thing can happen where someone can get a knowledge of something sensitive about you or the organization. So that is dumpster diving, getting into the trash can and looking for some information. So some of the organizations also take printouts on a previously used papers on the other side of the paper, whereas the backside may have some, you know, very sensitive information like how much transaction has happened with another party, how much they have procured a particular tool or a software for.
So these things, so people in the organization, so who are handling the printing machine or something, so they don't know about these things and they simply use the same paper for something else. So guys, thank you. past It's down to someone outside the organization and some way or the other the information gets leaked. So these things should be avoided. So next is network sniffing. Network sniffing is done by simply you can have an attacker can have a sniffer, a small gadget that can be installed in a network server room or a network room.
So in a switch to a switch or to a router when a sniffer machine or a sniffer gadget is being placed, then automatically whatever traffic that goes to and fro is being captured by the attacker as well. So nobody knows that a sniffer is being placed and every network traffic would be monitored by the attacker. So that is one kind of reconnaissance. So from that there could be so much of juicy information that an attacker could get. So that is also part of passive reconnaissance. Now let's look at active reconnaissance. So active reconnaissance, it involves network probing to discover hosts, IP addresses and services on the network.
So when we say active reconnaissance, it is like we are directly hitting the target and trying to send some malicious requests to the target and getting the response. And from the response and from the response we are trying to get something sensitive about that particular target. So here we may use sophisticated tools to perform the active reconnaissance. So we can discover the hosts, so host names, so the PC name or the servers name and the IP addresses and what are the services that are available. So whether it is hosting a web application, so web application service or a file transfer service, FTP, file transfer protocol service, so these kind of things.
So basically active reconnaissance is a risky process which is susceptible to detection. That's why it's called rattling the doorknobs. So why we say it is susceptible to detection because in passive reconnaissance, we are not going to directly, you know, send some malicious request to get a response to identify something. We are going to simply, you know, stalk at the, we are doing a stalking at the target in passive reconnaissance. Whereas in active reconnaissance, we are actually the attacker may get into the organization to, you know, access a computer or to, you know, to steal particular physical drive or something.
So these are having a higher risk when compared to passive reconnaissance. So to gather information in active reconnaissance, a hacker would use some tools which send a malicious traffic or huge number of traffic for that traffic, the system may respond with some information that could be of use for further attacks by the hacker. So if you could see the software tools, probing a network, tailgating are the attempts in active reconnaissance. So software tools can be used, so software tools can be used, which we'll discuss and we'll know those tools in future sessions.
So probing a network, so getting to network, sending requests to the network. So that is one option and tailgating. So tailgating is something where when you get into a organization, right? So, or a bank or, you know, any, any place where, uh, uh, the access is restricted only to, uh, the employees. So when the employees can access that particular, uh, area, so they have an access card. So to get into that particular area, they would have, uh, use a access card, whereas the hacker or the third party, a malicious, uh, person, they would not have, uh, access to it.
So they do a tailgating. So tailgating is something where when, uh, authorized legitimate person enters a restricted area, when the door is open, the attacker also, uh, enters along the, uh, legitimate, uh, person. So that is called tailgating. So without the knowledge of the organization, uh, he or she may tailgate, uh, behind, uh, authorized, uh, or an, uh, you know, actual, uh, employee of the organization, you know, so that is tailgating. So active reconnaissance, it basically attempts to engage directly with the target of evaluation for relatively reliable and valuable information.
So the next phase in, uh, you know, the, uh, ethical hacking is scanning. So scanning is something. So previously from reconnaissance, we have gathered some information. We have gathered, uh, information about the location, uh, the, some of the names, uh, or, uh, we know what is the target. So in reconnaissance, we would understand the target. So we know what is the target. Uh, so how to get to the target. So those things we know now from the reconnaissance, whereas we don't know, uh, the weaknesses in the target.
So to first reconnaissance is done to, uh, define the targets. So to identify the targets and, uh, define the scope, whereas in the scanning, we will understand what are the vulnerabilities or weaknesses in the target. So examining the target network using the information gathered during reconnaissance is called scanning. So tools that a hacker may leverage during this phase include network mappers, vulnerability scanners, port scanners. So network mappers, so as I told, um, during reconnaissance, we now have the target, but, uh, inside the target organization, let us say, uh, we have an organization, uh, in the organization, we need to identify, uh, how the network structure is.
So we need to map the network. So where the firewall is placed, where the, uh, PCs are placed and where the servers are placed. So, uh, which server has the, uh, sensitive information and what, where it is placed and, uh, uh, you know, this network mapping needs to be done. So for that, we use multiple, uh, tools and techniques to identify the vulnerabilities, uh, and, uh, mapping the, uh, network based on that. So vulnerability scanners, let us say, for example, I have access to, uh, a particular, uh, website of that organization, which is openly available in the internet.
So let us say I try to access the application and, uh, through that application, I, uh, understand, okay, this is the, uh, software on which the application is running. This is the version of it, this is the platform, uh, or which it is, uh, supported. So these things, so these kinds of things. So through scanning, we get to know some, uh, furthermore, uh, you know, target specific details. So port scanning, so port scanning is nothing but, uh, so basically a set of ports, right? So something which, uh, runs services, uh, let us say, um, a server is running.
Three, uh, services, one is the web application service, another is a mail service, another is a FTP service. So each service will run on a different port. So each port will have a number to it. So we'll look at it, uh, on future, uh, you know, further sessions, but, uh, for now a port is something, uh, which is a logical, uh, uh, port. It's not a physical port, rather it could, it's a logical, it's a digital port where, uh, a service runs. For example, if, uh, a server is running, uh, a web application.
If we access, uh, www.example.com, uh, the server on which the example.com web application is running. So it is running on a web service. So it's a web service because it is a web application. So it runs on the, uh, web service port. So web service port would be port 80 or port 443. So these are the ports, uh, which support web services basically. So using scanning, we'll understand. So what is the network, uh, structure, how the network, uh, architecture is made and, uh, what are the vulnerabilities in the, uh, target systems?
So all these things. So scanning looks for information such as host names, operating systems, installed softwares, IP addresses, user accounts, etc. For further attack attempts. So, uh, phase three gaining access. So the next phase is gaining access. So we have, uh, done with the scanning. While, uh, the scanning is done. We'll understand what are the vulnerabilities and weaknesses. So now we'll try to exploit those vulnerabilities. So gaining access is something where the attacker gets access to the target or, uh, uh, specifically it would be a vulnerable target.
So vulnerabilities identified during the reconnaissance and scanning phase are now tried to be exploited. The exploit is delivered to the target via a LAN network, which could be wired or wireless, or the internet or off. So when we say offline, it could be a pen drive which has a virus in it. So the exploit could be delivered in various ways. There are various options that an attacker would use to deliver the exploit package. So it could be through internet where through a web application the attacker sends uploads a malicious file through the upload option in the web application.
So that is through the internet or maybe through the LAN network. So when the attacker, you know, is, let us assume the attacker is within the organization network. So it could be the LAN network which the attacker has access to. So he would deliver the malicious payload through the LAN network. So examples include denial of service and session hijacking. So denial of service, DOS attack, as we discussed in previous slide, it could affect the availability of the system. So that is one kind of attack and session hijacking.
So whenever we use an application, each user is provided a session in the server. So the server maintains a session of a particular user whenever we log in. So that login session identifies the particular user. So hijacking the session. So stealing the session tokens or session cookies. So that would be a session hijacking.