Welcome back, and in this bonus video, we're going to be covering the tool that I created in Python
three that is used together, emails.
Now, even though later in the course we will be quoting some of our own fighting tools.
This is one that we will not code.
So we'll just see how it works.
I will explain how it works, of course, and we are going to see how many emails it can gather.
So this is the tool right here called email scraper.
And you will have this to download in the resources of this lecture.
But let me show you how you can transfer it on the clinic's desktop.
If you go up here on the devices and you go on drag and drop and click on Bidirectional, then anything
that you have on your desktop since I had the program right here, if you go and track it to your Linux
machine, it will get moved onto your desktop.
As you can see right here, this folder already contains this file since I already have it on my desktop.
So I'll just skip this.
But you, after setting this to bidirectional, can transfer any file from your host desktop to your
Linux desktop.
OK, good.
Now that we know how we can transfer it, let us see what this tool is and how we can run it.
So just to check out the code of this tool real quick, let us double click on it and let me enlarge
all of this.
And what this tool essentially does is it asks us for the euro and we provide it with the earl of a
certain domain name.
Then what this tool does is it tries to extract all of the emails that are in the HTML page of the URL
that you specified.
But what it also does is it tries to crawl within other URLs that are found inside of that page.
For example, discount variable right here that is equal to one hundred means that we will be searching
for emails in one hundred different links.
So you specify the main euro, then it goes to that euro.
It extracts all of the emails, but it also extracts all of the other URLs that are leading to different
pages.
Then it goes to those different pages and performs the same thing.
It tries to find emails and it also finds more URLs.
And it does that until it reaches one hundred URLs.
This is a number that you can change if you want to.
So you can set this to be lower or higher depending on how much results you want to find down here.
We can see that it is finding those emails using FedEx.
So this is the pattern that we are searching for.
And don't worry, if you don't understand any of this is just a way for us to find certain patterns
in a lot of text.
So, for example, this is a pattern that will allow us to find emails in the HTML code of the page.
And then we at the end of this print, all of the emails that we found, so that is the basic principle
behind this, to let us see how it runs and whether we manage to find more emails than we did with Hunter
Dot, Io and the Covestor.
So let's close this.
Go to our terminal, find where you have this file, download it and I have it on my desktop, and to
just run it, we can type fight on three and then the name of the file.
It will tell us and to target your skin and here I'm going to specify the full URL.
To the same domain name that we used for the Harvester and Hunter, that Io, just so we can compare
how many results we get with this tool and how many results we got, we can't that I.
Oh, and the harvester.
So if I type the domain name and press here, enter.
This will go and process one hundred things.
And depending on whether you change that number, it might be higher or lower, and at the end of processing
these links, it will print out all of the emails that it managed to find.
So if you remember, we hunter that Eyo, the website that we used with the free account, we managed
to gather 10 different emails with the Harvester.
First time we didn't manage to get any email, but after running it a couple of times, we might be
able to get around 10 to 15 different emails with the harvester.
But let's see how many this total will find.
So let's just wait for this to finish and I will get back to you as soon as it's done.
OK, so the tunnel has finished scanning and here all of the emails that we managed to find.
You can see there is at least 100 or 150 of them and they all belong to the same domain.
Now, we might occasionally find some email that doesn't belong to this domain.
And we saw one down here.
I believe we just find it this one.
It doesn't have the domain name inside of the email, but all of the others do.
And we got at least five to 10 times more results than we managed to get with the Harvester, which
is Kalyn Extoll, or with the free account of that IO.
And here are all the links that it processed, so it clicked on all of these links and it tried to extract
as much emails as it could from these links.
Right.
So now you have a tool that would be able to capture a lot of emails based on the specified domain.
Just make sure that once you run the goal, you specify HTP or https before the domain name.
OK, so this toll is now yours, feel free to use it as much as you want, and later on in the course
we will also be coding our own python tools.
They will not be some to advance tools, but we will be covering basics of creating our own hacking
tools, which is something that every hacker should, at some point of their journey, learn.
Great.
So now that we are finished with the information gathering section, we are ready to start off with
scanning section.
And you might be wondering how are you going to be able to follow the scanning section and all the other
sections since you don't really have permission to scan any Web site?
Don't worry.
There are a lot of very vulnerable machines and websites that we can download and practice on them,
and we're going to be seeing how we can find them and install them inside of our virtual box.
So we will have our own vulnerable lab where we can practice our hacking.
So thank you for watching this section and I will see you in the next one.