WEBVTT

00:00:00.000 --> 00:00:10.090 align:middle line:90%


00:00:10.090 --> 00:00:13.700 align:middle line:84%
Website Reconnaissance and
Footprinting, in this video,

00:00:13.700 --> 00:00:16.059 align:middle line:84%
we're going to be exploring
the process of performing

00:00:16.059 --> 00:00:18.700 align:middle line:84%
a passive reconnaissance
or passive information

00:00:18.700 --> 00:00:19.998 align:middle line:90%
gathering on a website.

00:00:19.998 --> 00:00:21.790 align:middle line:84%
And, of course, we're
going to be exploring

00:00:21.790 --> 00:00:23.410 align:middle line:90%
footprinting a little bit.

00:00:23.410 --> 00:00:24.460 align:middle line:90%
What is footprinting?

00:00:24.460 --> 00:00:27.010 align:middle line:84%
Footprinting is essentially
the same as reconnaissance.

00:00:27.010 --> 00:00:29.590 align:middle line:84%
The only difference
is, we're identifying

00:00:29.590 --> 00:00:31.840 align:middle line:84%
more important
information that's

00:00:31.840 --> 00:00:33.680 align:middle line:84%
pertinent to a
particular target.

00:00:33.680 --> 00:00:36.250 align:middle line:84%
So again, in this case,
we'll be taking a look

00:00:36.250 --> 00:00:38.080 align:middle line:90%
at a couple of websites.

00:00:38.080 --> 00:00:39.730 align:middle line:90%
One of them is my own.

00:00:39.730 --> 00:00:43.080 align:middle line:84%
I'm not giving you permission
to do anything to it.

00:00:43.080 --> 00:00:45.740 align:middle line:84%
As I said, from a
passive perspective,

00:00:45.740 --> 00:00:47.410 align:middle line:84%
you can go ahead
and use this site.

00:00:47.410 --> 00:00:50.780 align:middle line:84%
But we'll be using others
that you can also use.

00:00:50.780 --> 00:00:52.450 align:middle line:84%
In my case, you do
have the permission

00:00:52.450 --> 00:00:57.260 align:middle line:84%
to do passive reconnaissance on
the site, so no problem there.

00:00:57.260 --> 00:01:00.970 align:middle line:84%
So with regards to what
we are going to be doing

00:01:00.970 --> 00:01:02.960 align:middle line:84%
or the information
we are looking for,

00:01:02.960 --> 00:01:04.400 align:middle line:90%
this is it right over here.

00:01:04.400 --> 00:01:07.030 align:middle line:84%
So the first bit of information
we are going to look for

00:01:07.030 --> 00:01:10.960 align:middle line:84%
is the IP address of the actual
website or the web server

00:01:10.960 --> 00:01:14.140 align:middle line:84%
that's hosting that website,
any directories that

00:01:14.140 --> 00:01:17.470 align:middle line:84%
might be hidden from
search engines, any names

00:01:17.470 --> 00:01:20.170 align:middle line:84%
on the website, email
addresses, phone numbers,

00:01:20.170 --> 00:01:22.540 align:middle line:84%
physical addresses,
anything that

00:01:22.540 --> 00:01:25.660 align:middle line:84%
can give us a better
understanding of our target,

00:01:25.660 --> 00:01:28.810 align:middle line:84%
and, of course, in the
case of the website itself,

00:01:28.810 --> 00:01:31.970 align:middle line:84%
the web technologies
being used on the website.

00:01:31.970 --> 00:01:34.880 align:middle line:84%
So we can actually
get started with this.

00:01:34.880 --> 00:01:37.930 align:middle line:84%
I'm just going to switch over to
my Kali Linux virtual machine.

00:01:37.930 --> 00:01:40.690 align:middle line:84%
As I said, this
lab or this course

00:01:40.690 --> 00:01:44.650 align:middle line:84%
will not really use a
lot of lab environments

00:01:44.650 --> 00:01:46.750 align:middle line:84%
because we're doing
this, especially

00:01:46.750 --> 00:01:48.910 align:middle line:84%
in the case of passive
information gathering,

00:01:48.910 --> 00:01:50.560 align:middle line:84%
we're doing this
on the internet.

00:01:50.560 --> 00:01:52.930 align:middle line:84%
So I'm just going to
switch over to my Kali VM

00:01:52.930 --> 00:01:54.710 align:middle line:90%
and we can actually get started.

00:01:54.710 --> 00:01:55.705 align:middle line:90%
So give me a moment.

00:01:55.705 --> 00:01:58.620 align:middle line:90%


00:01:58.620 --> 00:02:01.400 align:middle line:84%
All right so I'm
back on my Kali VM.

00:02:01.400 --> 00:02:04.770 align:middle line:84%
And as you can see, I've
just opened up Firefox here.

00:02:04.770 --> 00:02:07.010 align:middle line:84%
And in this case,
we're going to be

00:02:07.010 --> 00:02:09.440 align:middle line:84%
utilizing my own
website or my own blog,

00:02:09.440 --> 00:02:12.230 align:middle line:90%
which is hackersploit.org.

00:02:12.230 --> 00:02:14.010 align:middle line:90%
So we'll just open this up.

00:02:14.010 --> 00:02:16.520 align:middle line:84%
And for the sake
of this video, this

00:02:16.520 --> 00:02:19.220 align:middle line:84%
is going to be the actual
target website that we're

00:02:19.220 --> 00:02:22.610 align:middle line:84%
going to be performing
passive reconnaissance on

00:02:22.610 --> 00:02:24.600 align:middle line:84%
or passive information
gathering on.

00:02:24.600 --> 00:02:27.110 align:middle line:84%
So you can see, this
is the website here.

00:02:27.110 --> 00:02:28.040 align:middle line:90%
This is a blog.

00:02:28.040 --> 00:02:30.470 align:middle line:84%
It's not really a
company website.

00:02:30.470 --> 00:02:31.710 align:middle line:90%
But there we are.

00:02:31.710 --> 00:02:36.740 align:middle line:84%
We can see that it looks
fairly simple enough.

00:02:36.740 --> 00:02:39.050 align:middle line:84%
But we really don't know
anything about this site.

00:02:39.050 --> 00:02:42.980 align:middle line:84%
So what is our first
order of business?

00:02:42.980 --> 00:02:44.930 align:middle line:84%
Well, the first
thing we can do is

00:02:44.930 --> 00:02:48.560 align:middle line:84%
we can obtain the IP
address of the web server

00:02:48.560 --> 00:02:49.980 align:middle line:90%
that's hosting this website.

00:02:49.980 --> 00:02:52.230 align:middle line:84%
Now, in some cases,
or in most cases,

00:02:52.230 --> 00:02:54.080 align:middle line:84%
when you're dealing
with production sites,

00:02:54.080 --> 00:02:58.880 align:middle line:84%
the website might be behind
a proxy or a firewall

00:02:58.880 --> 00:03:00.890 align:middle line:90%
like Cloudflare or Sucuri.

00:03:00.890 --> 00:03:03.710 align:middle line:84%
So in order to do this,
just open up a terminal.

00:03:03.710 --> 00:03:06.020 align:middle line:84%
And we're going to be
utilizing the host command.

00:03:06.020 --> 00:03:08.900 align:middle line:84%
Now,if you want to learn more
about a command on Linux,

00:03:08.900 --> 00:03:11.480 align:middle line:84%
you can always utilize the
what is command and then type

00:03:11.480 --> 00:03:14.570 align:middle line:84%
the name of the command, so in
this case, the host command.

00:03:14.570 --> 00:03:17.570 align:middle line:84%
You can see that this
is a DNS lookup utility.

00:03:17.570 --> 00:03:21.300 align:middle line:84%
Now, we'll be covering DNS
lookups when we get there.

00:03:21.300 --> 00:03:22.910 align:middle line:84%
But for now, all
we are doing is we

00:03:22.910 --> 00:03:26.750 align:middle line:84%
are trying to resolve the
domain name to an IP address.

00:03:26.750 --> 00:03:28.880 align:middle line:84%
So whenever you
open up your browser

00:03:28.880 --> 00:03:31.520 align:middle line:84%
and you type in a
website, the browser

00:03:31.520 --> 00:03:34.740 align:middle line:84%
really doesn't know what to
do with that information.

00:03:34.740 --> 00:03:37.430 align:middle line:84%
And this is where
DNS comes into place.

00:03:37.430 --> 00:03:41.930 align:middle line:84%
So whenever you type in a
website into your browser,

00:03:41.930 --> 00:03:44.780 align:middle line:84%
your browser says, OK,
I have this website.

00:03:44.780 --> 00:03:46.730 align:middle line:84%
I need to resolve
it to an IP address

00:03:46.730 --> 00:03:52.580 align:middle line:84%
because that's really the
only way I can communicate

00:03:52.580 --> 00:03:55.970 align:middle line:84%
with that web server because
remember, on the internet,

00:03:55.970 --> 00:03:58.970 align:middle line:84%
systems are identified
via the IP addresses

00:03:58.970 --> 00:04:00.570 align:middle line:90%
and not via domain names.

00:04:00.570 --> 00:04:02.570 align:middle line:84%
Domain names were
essentially set

00:04:02.570 --> 00:04:05.690 align:middle line:84%
up so that we don't have
to remember IP addresses.

00:04:05.690 --> 00:04:08.270 align:middle line:84%
Just imagine if you had
to remember the IP address

00:04:08.270 --> 00:04:09.720 align:middle line:90%
of every website you visit.

00:04:09.720 --> 00:04:11.130 align:middle line:90%
So that's why they were created.

00:04:11.130 --> 00:04:14.600 align:middle line:84%
So whenever you type in an
address in your browser,

00:04:14.600 --> 00:04:18.230 align:middle line:84%
your address will perform a
lookup on your configured DNS

00:04:18.230 --> 00:04:21.589 align:middle line:84%
server and it'll
tell it essentially,

00:04:21.589 --> 00:04:23.780 align:middle line:90%
hey, I have this website.

00:04:23.780 --> 00:04:26.690 align:middle line:84%
Could you please tell me the
IP address of this website?

00:04:26.690 --> 00:04:27.890 align:middle line:90%
It'll look through.

00:04:27.890 --> 00:04:31.550 align:middle line:84%
And it'll say, OK, I have this
website here or this domain.

00:04:31.550 --> 00:04:33.980 align:middle line:84%
It is mapped to the
following IP address.

00:04:33.980 --> 00:04:35.190 align:middle line:90%
And here you go.

00:04:35.190 --> 00:04:36.170 align:middle line:90%
Here's the IP address.

00:04:36.170 --> 00:04:38.240 align:middle line:84%
Your browser then
sends a get request.

00:04:38.240 --> 00:04:41.450 align:middle line:84%
And the server then
responds and sends

00:04:41.450 --> 00:04:44.840 align:middle line:84%
back the website in
HTML, CSS format.

00:04:44.840 --> 00:04:47.000 align:middle line:84%
And your browser then
renders it to you.

00:04:47.000 --> 00:04:49.250 align:middle line:84%
And that happens within
a couple of seconds,

00:04:49.250 --> 00:04:50.460 align:middle line:90%
which is really cool.

00:04:50.460 --> 00:04:54.980 align:middle line:84%
So I can type in host
and hackersploit.org.

00:04:54.980 --> 00:04:58.280 align:middle line:84%
And you can see that will
perform a DNS lookup.

00:04:58.280 --> 00:05:01.280 align:middle line:84%
And in this case, it tells
us that hackersploit.org

00:05:01.280 --> 00:05:04.220 align:middle line:84%
has two addresses,
two IPv4 addresses,

00:05:04.220 --> 00:05:05.510 align:middle line:90%
which is a little bit strange.

00:05:05.510 --> 00:05:10.850 align:middle line:84%
And the reason for that is
because my website, as it were,

00:05:10.850 --> 00:05:14.930 align:middle line:84%
is behind Cloudflare, which
is a firewall slash proxy.

00:05:14.930 --> 00:05:16.790 align:middle line:84%
So it's not giving
us one IP, which,

00:05:16.790 --> 00:05:18.270 align:middle line:90%
again, can be quite confusing.

00:05:18.270 --> 00:05:20.690 align:middle line:84%
So if you ever see that,
just know from that point

00:05:20.690 --> 00:05:23.490 align:middle line:84%
that you're dealing
with some form of proxy.

00:05:23.490 --> 00:05:27.140 align:middle line:84%
Now, the host command also
displays the IPv6 addresses

00:05:27.140 --> 00:05:30.180 align:middle line:90%
for that particular web server.

00:05:30.180 --> 00:05:31.910 align:middle line:84%
And in this case, as
I said, because it's

00:05:31.910 --> 00:05:35.190 align:middle line:84%
going through Cloudflare,
we have that there.

00:05:35.190 --> 00:05:38.930 align:middle line:84%
We also get the
actual mail server.

00:05:38.930 --> 00:05:41.000 align:middle line:84%
And it provides us
with the actual domain

00:05:41.000 --> 00:05:42.110 align:middle line:90%
for that mail server.

00:05:42.110 --> 00:05:45.140 align:middle line:84%
We'll be touching upon
that as we proceed

00:05:45.140 --> 00:05:46.950 align:middle line:84%
or as we move along
in this course.

00:05:46.950 --> 00:05:47.700 align:middle line:90%
But there we are.

00:05:47.700 --> 00:05:52.310 align:middle line:84%
We have identified the IP
address of the actual target

00:05:52.310 --> 00:05:53.600 align:middle line:90%
website.

00:05:53.600 --> 00:05:56.330 align:middle line:84%
Now, on the website
itself, there's

00:05:56.330 --> 00:06:00.500 align:middle line:84%
a couple of other checks that
we can perform with regards

00:06:00.500 --> 00:06:02.000 align:middle line:90%
to identifying information.

00:06:02.000 --> 00:06:03.800 align:middle line:84%
As I said, one of
the important things

00:06:03.800 --> 00:06:06.620 align:middle line:84%
is to try and see if we
can identify any names

00:06:06.620 --> 00:06:08.072 align:middle line:90%
or any email addresses.

00:06:08.072 --> 00:06:09.530 align:middle line:84%
In this case, at
the bottom, we can

00:06:09.530 --> 00:06:11.540 align:middle line:84%
see that we have a
Facebook link, a Twitter

00:06:11.540 --> 00:06:13.670 align:middle line:90%
link, and a YouTube channel.

00:06:13.670 --> 00:06:15.860 align:middle line:90%
So that can be quite useful.

00:06:15.860 --> 00:06:19.130 align:middle line:84%
However, when we talk
about scouring a website

00:06:19.130 --> 00:06:22.160 align:middle line:84%
or looking for
information on a website,

00:06:22.160 --> 00:06:26.780 align:middle line:84%
the best place to start
is the robots.txt file.

00:06:26.780 --> 00:06:29.880 align:middle line:84%
Now, I'll explain what this
file is used for in a second.

00:06:29.880 --> 00:06:31.790 align:middle line:84%
But if we click
on it, you can see

00:06:31.790 --> 00:06:35.390 align:middle line:84%
that it is a text file that
contains a few entries.

00:06:35.390 --> 00:06:39.080 align:middle line:84%
Now, when you have
a website, it's

00:06:39.080 --> 00:06:41.510 align:middle line:84%
pretty common that
a search engine

00:06:41.510 --> 00:06:44.210 align:middle line:84%
like Google or
Bing or DuckDuckGo

00:06:44.210 --> 00:06:45.670 align:middle line:90%
will crawl the website.

00:06:45.670 --> 00:06:46.670 align:middle line:90%
What does crawling mean?

00:06:46.670 --> 00:06:48.930 align:middle line:84%
It essentially
scours the website

00:06:48.930 --> 00:06:51.410 align:middle line:84%
and then it indexes
it on google.com

00:06:51.410 --> 00:06:54.920 align:middle line:84%
so that when someone
searches hackersploit,

00:06:54.920 --> 00:06:56.360 align:middle line:90%
that website is brought up.

00:06:56.360 --> 00:07:00.130 align:middle line:84%
So when search
engines do this, they

00:07:00.130 --> 00:07:03.220 align:middle line:84%
could potentially be revealing
information that you do not

00:07:03.220 --> 00:07:05.320 align:middle line:90%
want to be made public.

00:07:05.320 --> 00:07:08.440 align:middle line:84%
And this is where the robots.txt
file comes into place.

00:07:08.440 --> 00:07:10.720 align:middle line:90%
Almost every website has it.

00:07:10.720 --> 00:07:12.730 align:middle line:84%
If a website doesn't
have it, then they're

00:07:12.730 --> 00:07:15.970 align:middle line:84%
really doing something
wrong because it essentially

00:07:15.970 --> 00:07:19.360 align:middle line:84%
allows you to
specify what folders

00:07:19.360 --> 00:07:23.000 align:middle line:84%
or what files you don't want
search engines to index.

00:07:23.000 --> 00:07:26.680 align:middle line:84%
So in this case, you can see
that it specifies the we have

00:07:26.680 --> 00:07:28.990 align:middle line:90%
a disallowed rule here.

00:07:28.990 --> 00:07:30.050 align:middle line:90%
So what does that mean?

00:07:30.050 --> 00:07:32.980 align:middle line:84%
It means that we are telling
search engines, whenever you're

00:07:32.980 --> 00:07:36.070 align:middle line:84%
crawling through this
website, please disregard

00:07:36.070 --> 00:07:39.010 align:middle line:90%
the following directory.

00:07:39.010 --> 00:07:42.670 align:middle line:84%
Now, in this case, the
directory is WP Admin.

00:07:42.670 --> 00:07:45.310 align:middle line:84%
Now WP is in reference
to WordPress.

00:07:45.310 --> 00:07:47.710 align:middle line:84%
So we have already
identified that this website

00:07:47.710 --> 00:07:49.120 align:middle line:90%
is running WordPress.

00:07:49.120 --> 00:07:54.160 align:middle line:84%
And why would you not want
this folder or this directory

00:07:54.160 --> 00:07:57.520 align:middle line:84%
leaked to or made
available on Google?

00:07:57.520 --> 00:08:01.840 align:middle line:84%
Well, that's because this
is a restricted directory.

00:08:01.840 --> 00:08:04.570 align:middle line:84%
This is the WordPress
admin directory.

00:08:04.570 --> 00:08:06.910 align:middle line:84%
And it's only restricted
to administrators.

00:08:06.910 --> 00:08:09.520 align:middle line:84%
And generally speaking,
it's good security practice

00:08:09.520 --> 00:08:11.950 align:middle line:84%
to prevent this
from being indexed

00:08:11.950 --> 00:08:15.400 align:middle line:90%
by a search engine like Google.

00:08:15.400 --> 00:08:18.550 align:middle line:84%
Now, just by viewing this file,
which is publicly accessible,

00:08:18.550 --> 00:08:21.340 align:middle line:84%
it needs to be so that Google
can actually go through it

00:08:21.340 --> 00:08:24.280 align:middle line:84%
and disallow the directories
or the files that

00:08:24.280 --> 00:08:27.010 align:middle line:84%
have been specified by
the website administrator.

00:08:27.010 --> 00:08:30.160 align:middle line:84%
We can identify that this
website is running WordPress

00:08:30.160 --> 00:08:32.500 align:middle line:84%
because that
directory tells us so.

00:08:32.500 --> 00:08:35.289 align:middle line:84%
And we have a couple of other
directories right over here

00:08:35.289 --> 00:08:37.510 align:middle line:84%
that, essentially,
are in reference

00:08:37.510 --> 00:08:40.030 align:middle line:90%
to a specific WordPress plugin.

00:08:40.030 --> 00:08:43.039 align:middle line:90%
So that's the first file.

00:08:43.039 --> 00:08:44.800 align:middle line:84%
The second one
that's very important

00:08:44.800 --> 00:08:47.320 align:middle line:90%
is the sitemap.xml file.

00:08:47.320 --> 00:08:49.960 align:middle line:90%
So I'll type in sitemap.xml.

00:08:49.960 --> 00:08:54.040 align:middle line:84%
Now, this is typically called
sitemap or sitemaps.xml.

00:08:54.040 --> 00:08:55.928 align:middle line:84%
So I'll just give this
a couple of seconds.

00:08:55.928 --> 00:08:56.470 align:middle line:90%
There we are.

00:08:56.470 --> 00:08:57.610 align:middle line:90%
So what's a sitemap?

00:08:57.610 --> 00:08:59.920 align:middle line:84%
A sitemap is
essentially a file, it's

00:08:59.920 --> 00:09:04.000 align:middle line:84%
typically XML,
that is essentially

00:09:04.000 --> 00:09:10.630 align:middle line:84%
used to provide search engines,
really, with an organized

00:09:10.630 --> 00:09:12.220 align:middle line:90%
way of indexing the website.

00:09:12.220 --> 00:09:14.950 align:middle line:84%
So you can see because
this is a blog,

00:09:14.950 --> 00:09:18.670 align:middle line:84%
there's a post sitemap, a page
sitemap, a category sitemap,

00:09:18.670 --> 00:09:19.780 align:middle line:90%
and an author the sitemap.

00:09:19.780 --> 00:09:21.940 align:middle line:84%
So already from this,
you can pretty much

00:09:21.940 --> 00:09:26.270 align:middle line:84%
tell what type of
information we can obtain.

00:09:26.270 --> 00:09:29.410 align:middle line:84%
So if we wanted
to view authors--

00:09:29.410 --> 00:09:34.090 align:middle line:84%
and again, this is just used
to tell search engines more

00:09:34.090 --> 00:09:36.440 align:middle line:84%
about the website
itself.-- so in this case,

00:09:36.440 --> 00:09:41.920 align:middle line:84%
the author site map tells Google
or any other search engine

00:09:41.920 --> 00:09:43.690 align:middle line:90%
about the authors on this blog.

00:09:43.690 --> 00:09:45.720 align:middle line:84%
In this case, we can
see that the blog has

00:09:45.720 --> 00:09:47.380 align:middle line:90%
an author called hackersploit.

00:09:47.380 --> 00:09:49.780 align:middle line:84%
All right, that really
doesn't tell us much.

00:09:49.780 --> 00:09:53.500 align:middle line:84%
It doesn't give us any concrete
names or email addresses.

00:09:53.500 --> 00:09:55.810 align:middle line:84%
We then have the
page site map, which

00:09:55.810 --> 00:10:00.970 align:middle line:84%
will give us a list of pages
that can be publicly accessible

00:10:00.970 --> 00:10:04.040 align:middle line:84%
or that can be indexed by a
search engine like Google.

00:10:04.040 --> 00:10:09.640 align:middle line:84%
So this is very useful because
if a particular page was not

00:10:09.640 --> 00:10:13.180 align:middle line:84%
linked on the main website or
the front end of a website,

00:10:13.180 --> 00:10:15.690 align:middle line:84%
then this could tell us
or provide us with an idea

00:10:15.690 --> 00:10:18.490 align:middle line:84%
as to some of the other links
or some of the other pages

00:10:18.490 --> 00:10:21.760 align:middle line:90%
that can be accessed publicly.

00:10:21.760 --> 00:10:24.735 align:middle line:84%
So we can see that we have all
of these pages on the site.

00:10:24.735 --> 00:10:26.860 align:middle line:84%
And, of course, this really
doesn't make any sense.

00:10:26.860 --> 00:10:29.230 align:middle line:84%
As I said, this is
my own personal blog.

00:10:29.230 --> 00:10:31.240 align:middle line:84%
But you're starting to
get an understanding.

00:10:31.240 --> 00:10:33.040 align:middle line:84%
We then have the
category sitemap,

00:10:33.040 --> 00:10:34.720 align:middle line:84%
which, again, in
the case of a blog,

00:10:34.720 --> 00:10:36.980 align:middle line:84%
just displays the
list of categories.

00:10:36.980 --> 00:10:40.150 align:middle line:84%
This is very, very useful when
you're performing a penetration

00:10:40.150 --> 00:10:41.980 align:middle line:90%
test on a WordPress website.

00:10:41.980 --> 00:10:44.200 align:middle line:84%
Always look out for
categories because there

00:10:44.200 --> 00:10:47.800 align:middle line:84%
could be some categories that
are hidden on the front end.

00:10:47.800 --> 00:10:49.960 align:middle line:84%
And then, of course, we
have the post sitemap,

00:10:49.960 --> 00:10:54.670 align:middle line:84%
which just gives Google or
search engines a list of posts

00:10:54.670 --> 00:10:57.410 align:middle line:90%
on that particular website.

00:10:57.410 --> 00:11:01.660 align:middle line:84%
So yeah, that is the robots.txt
file and the sitemap file.

00:11:01.660 --> 00:11:04.570 align:middle line:84%
Now, there's a couple of
other really cool resources

00:11:04.570 --> 00:11:06.070 align:middle line:84%
that I recommend
taking a look at.

00:11:06.070 --> 00:11:08.590 align:middle line:90%
I'm just going to zoom out here.

00:11:08.590 --> 00:11:10.630 align:middle line:90%
And these are browser plug-ins.

00:11:10.630 --> 00:11:12.910 align:middle line:90%
So I'm currently using Firefox.

00:11:12.910 --> 00:11:16.300 align:middle line:84%
There are equivalents for
Google Chrome or Chromium.

00:11:16.300 --> 00:11:22.230 align:middle line:84%
So I'll just perform a Google
search for Mozilla add-ons

00:11:22.230 --> 00:11:23.520 align:middle line:90%
like so.

00:11:23.520 --> 00:11:27.080 align:middle line:84%
And I'll just open up
the add-ons page here.

00:11:27.080 --> 00:11:29.210 align:middle line:84%
And the first one
we're going to look for

00:11:29.210 --> 00:11:33.260 align:middle line:90%
is a add-on called BuiltWith.

00:11:33.260 --> 00:11:37.250 align:middle line:84%
This is a technology profiler
that will essentially tell you

00:11:37.250 --> 00:11:39.710 align:middle line:84%
what is running on
that website or what

00:11:39.710 --> 00:11:42.290 align:middle line:84%
web technology or
content management system

00:11:42.290 --> 00:11:43.460 align:middle line:90%
is running on that website.

00:11:43.460 --> 00:11:46.140 align:middle line:84%
So I'll just add
it to Firefox here.

00:11:46.140 --> 00:11:46.700 align:middle line:90%
There we are.

00:11:46.700 --> 00:11:48.260 align:middle line:90%
Add that there.

00:11:48.260 --> 00:11:50.900 align:middle line:84%
And we can head back
over into my blog.

00:11:50.900 --> 00:11:53.090 align:middle line:84%
And I'll just
refresh that there.

00:11:53.090 --> 00:11:56.480 align:middle line:84%
And we'll give this
a couple of seconds.

00:11:56.480 --> 00:11:57.060 align:middle line:90%
There we go.

00:11:57.060 --> 00:11:59.420 align:middle line:84%
And we click on the
BuiltWith icon here,

00:11:59.420 --> 00:12:01.850 align:middle line:84%
you can see that
it will give you,

00:12:01.850 --> 00:12:03.680 align:middle line:90%
essentially, various categories.

00:12:03.680 --> 00:12:06.150 align:middle line:84%
But it'll tell you what's
running on this website.

00:12:06.150 --> 00:12:08.700 align:middle line:84%
So let's take a look
at the detailed view.

00:12:08.700 --> 00:12:12.260 align:middle line:84%
So you can see that this website
has Google Analytics, which

00:12:12.260 --> 00:12:15.920 align:middle line:84%
means the analytics are
being aggregated and analyzed

00:12:15.920 --> 00:12:18.230 align:middle line:84%
on the Google
Analytics dashboard.

00:12:18.230 --> 00:12:20.480 align:middle line:84%
It also tells us
that this site is

00:12:20.480 --> 00:12:26.330 align:middle line:84%
using a few widgets like Yoast,
Mailchimp, WordPress plugins.

00:12:26.330 --> 00:12:29.810 align:middle line:84%
So we can pretty much tell that
the site is running WordPress.

00:12:29.810 --> 00:12:32.700 align:middle line:84%
It's pretty self-explanatory
by this point.

00:12:32.700 --> 00:12:36.020 align:middle line:84%
So this is one of the really
cool things about BuiltWith.

00:12:36.020 --> 00:12:38.510 align:middle line:84%
In the context of content
management systems,

00:12:38.510 --> 00:12:40.190 align:middle line:84%
it actually tells
us what widgets

00:12:40.190 --> 00:12:43.400 align:middle line:84%
or what plugins are installed
on this WordPress site.

00:12:43.400 --> 00:12:46.010 align:middle line:84%
And then, of course,
if we take a look

00:12:46.010 --> 00:12:48.330 align:middle line:84%
at some of the
other information,

00:12:48.330 --> 00:12:51.410 align:middle line:84%
we can see that these are
the web technologies or web

00:12:51.410 --> 00:12:52.980 align:middle line:90%
frameworks being used.

00:12:52.980 --> 00:12:57.560 align:middle line:84%
So we can see that this website
utilizes jQuery CDN or content

00:12:57.560 --> 00:12:59.360 align:middle line:90%
delivery network.

00:12:59.360 --> 00:13:01.700 align:middle line:90%
There's a YouTube plugin.

00:13:01.700 --> 00:13:06.230 align:middle line:84%
Let's see what
else we have here.

00:13:06.230 --> 00:13:09.860 align:middle line:84%
These are the subdomains here,
which I'll get to in a second.

00:13:09.860 --> 00:13:12.090 align:middle line:90%
This is very, very important.

00:13:12.090 --> 00:13:13.940 align:middle line:84%
But it essentially
gives you a list

00:13:13.940 --> 00:13:19.530 align:middle line:84%
of subdomains associated
with this particular domain.

00:13:19.530 --> 00:13:22.340 align:middle line:84%
We'll get into sub-domain
enumeration later.

00:13:22.340 --> 00:13:24.230 align:middle line:84%
But you can take a
look at BuiltWith

00:13:24.230 --> 00:13:27.050 align:middle line:84%
to learn more about
a target site.

00:13:27.050 --> 00:13:29.930 align:middle line:84%
We can also perform
this on ine.com,

00:13:29.930 --> 00:13:33.840 align:middle line:84%
just to have a different
site to run this on as well.

00:13:33.840 --> 00:13:36.750 align:middle line:90%
So I'll click on BuiltWith here.

00:13:36.750 --> 00:13:41.150 align:middle line:84%
And if we take a look at the
actual Detailed tab here,

00:13:41.150 --> 00:13:43.970 align:middle line:84%
you can see that my
free lookups have ended.

00:13:43.970 --> 00:13:45.800 align:middle line:90%
So no problem there.

00:13:45.800 --> 00:13:47.930 align:middle line:84%
But if we click on
this here, you can see,

00:13:47.930 --> 00:13:50.810 align:middle line:84%
it just gives you an idea
as to what technologies

00:13:50.810 --> 00:13:55.290 align:middle line:84%
are being used on this site,
fairly simple to understand.

00:13:55.290 --> 00:13:57.470 align:middle line:84%
So it just gives
you a better idea

00:13:57.470 --> 00:13:59.750 align:middle line:84%
as to what website
you're dealing with.

00:13:59.750 --> 00:14:02.690 align:middle line:84%
So yeah, that is how
to use BuiltWith.

00:14:02.690 --> 00:14:07.040 align:middle line:84%
There are a couple of other
add-ons that you can use,

00:14:07.040 --> 00:14:10.880 align:middle line:84%
one of which is, let me
see if I can find it here,

00:14:10.880 --> 00:14:12.020 align:middle line:90%
is Wappalyzer.

00:14:12.020 --> 00:14:15.140 align:middle line:90%


00:14:15.140 --> 00:14:18.640 align:middle line:84%
Wappalyzer's also another
web technology profiler.

00:14:18.640 --> 00:14:21.450 align:middle line:84%
So as you can see, it identifies
technologies on websites.

00:14:21.450 --> 00:14:23.230 align:middle line:90%
So I'll just add that there.

00:14:23.230 --> 00:14:27.500 align:middle line:84%
And we'll give that
a couple of seconds.

00:14:27.500 --> 00:14:29.070 align:middle line:90%
There we go.

00:14:29.070 --> 00:14:31.070 align:middle line:84%
And we'll go back
to my blog here.

00:14:31.070 --> 00:14:34.070 align:middle line:90%


00:14:34.070 --> 00:14:35.930 align:middle line:84%
And I'll just click
on that there.

00:14:35.930 --> 00:14:38.790 align:middle line:84%
And you can see, I'll
just click on OK.

00:14:38.790 --> 00:14:41.390 align:middle line:84%
And in this case, it tells
us that no technologies

00:14:41.390 --> 00:14:43.790 align:middle line:90%
were detected.

00:14:43.790 --> 00:14:44.640 align:middle line:90%
That's really weird.

00:14:44.640 --> 00:14:46.057 align:middle line:84%
So I'm just going
to refresh that.

00:14:46.057 --> 00:14:47.510 align:middle line:90%
Hopefully this works here.

00:14:47.510 --> 00:14:49.910 align:middle line:84%
I think this requires
me to actually sign in.

00:14:49.910 --> 00:14:54.410 align:middle line:84%
But this does, in certain cases,
display the web technologies

00:14:54.410 --> 00:14:54.950 align:middle line:90%
being used.

00:14:54.950 --> 00:14:58.220 align:middle line:84%
Either way, you can use
BuiltWith or Wappalyzer.

00:14:58.220 --> 00:15:01.250 align:middle line:84%
I personally prefer
utilizing BuiltWith

00:15:01.250 --> 00:15:03.650 align:middle line:90%
because it works quite a lot.

00:15:03.650 --> 00:15:06.080 align:middle line:84%
And of course, you
can also log in

00:15:06.080 --> 00:15:08.900 align:middle line:90%
and sign up for a subscription.

00:15:08.900 --> 00:15:11.420 align:middle line:84%
Another really,
really cool utility

00:15:11.420 --> 00:15:15.350 align:middle line:84%
that you can use to perform
web technology footprinting

00:15:15.350 --> 00:15:18.390 align:middle line:84%
for a particular website
is the WhatWeb utility.

00:15:18.390 --> 00:15:21.860 align:middle line:84%
So WhatWeb, which comes
prepackaged with Kali,

00:15:21.860 --> 00:15:23.870 align:middle line:90%
so there we are.

00:15:23.870 --> 00:15:25.730 align:middle line:90%
WhatWeb is fairly simple to use.

00:15:25.730 --> 00:15:32.790 align:middle line:84%
We can, in this case,
perform a stealthy scan.

00:15:32.790 --> 00:15:34.530 align:middle line:90%
But it's very simple.

00:15:34.530 --> 00:15:38.840 align:middle line:84%
We just type in WhatWeb and
hackersploit.org or the domain

00:15:38.840 --> 00:15:40.070 align:middle line:90%
that you're trying to check.

00:15:40.070 --> 00:15:44.050 align:middle line:84%
So I'll give this a
couple of seconds.

00:15:44.050 --> 00:15:46.440 align:middle line:84%
As you can see here,
it's going to provide you

00:15:46.440 --> 00:15:52.170 align:middle line:84%
with a somewhat comprehensive
view of the actual web

00:15:52.170 --> 00:15:53.460 align:middle line:90%
technologies on the site.

00:15:53.460 --> 00:15:56.100 align:middle line:84%
So it's not going to
display it very neatly.

00:15:56.100 --> 00:15:58.810 align:middle line:84%
But I'll just go
through this here.

00:15:58.810 --> 00:16:01.500 align:middle line:84%
So you can see that there
is a redirect, which

00:16:01.500 --> 00:16:04.770 align:middle line:84%
is where it tells you
301 moved permanently.

00:16:04.770 --> 00:16:07.230 align:middle line:84%
The HTTP server is going
through Cloudflare,

00:16:07.230 --> 00:16:08.670 align:middle line:90%
then provides us with the IP.

00:16:08.670 --> 00:16:10.650 align:middle line:84%
The redirect is
completed because it's

00:16:10.650 --> 00:16:11.610 align:middle line:90%
going through a proxy.

00:16:11.610 --> 00:16:13.080 align:middle line:90%
Remember that.

00:16:13.080 --> 00:16:16.000 align:middle line:84%
We then have the actual
get request here.

00:16:16.000 --> 00:16:19.140 align:middle line:84%
So this was the redirect because
it's going through Cloudflare.

00:16:19.140 --> 00:16:23.400 align:middle line:84%
So you can see that it's
using jQuery, Modernizr.

00:16:23.400 --> 00:16:26.220 align:middle line:84%
These are the web frameworks,
and then of course PHP.

00:16:26.220 --> 00:16:27.430 align:middle line:90%
This is very important.

00:16:27.430 --> 00:16:29.550 align:middle line:84%
It tells us the
version of PHP that's

00:16:29.550 --> 00:16:32.680 align:middle line:84%
running on the web server, and
then, of course, the script.

00:16:32.680 --> 00:16:35.250 align:middle line:84%
In this case, that
really isn't useful.

00:16:35.250 --> 00:16:38.700 align:middle line:84%
It provides us with
the actual site title,

00:16:38.700 --> 00:16:41.250 align:middle line:84%
and then, of course,
the HTTP headers.

00:16:41.250 --> 00:16:43.830 align:middle line:84%
So these are all
the headers that

00:16:43.830 --> 00:16:47.790 align:middle line:84%
are passed with each request
or with each response, which

00:16:47.790 --> 00:16:50.490 align:middle line:84%
may give you an idea as to what
WordPress plug-ins are being

00:16:50.490 --> 00:16:51.420 align:middle line:90%
used.

00:16:51.420 --> 00:16:54.360 align:middle line:84%
And then, of course, it tells
us that it's running WordPress

00:16:54.360 --> 00:16:58.150 align:middle line:90%
and it's powered by PHP 7.4.29.

00:16:58.150 --> 00:17:02.070 align:middle line:84%
So you can always utilize
WhatWeb because it's free.

00:17:02.070 --> 00:17:04.690 align:middle line:84%
And if you don't
want to go through

00:17:04.690 --> 00:17:08.220 align:middle line:84%
or if you don't utilize any
of the built-in, browser-based

00:17:08.220 --> 00:17:12.300 align:middle line:84%
technology profilers, then you
can always rely on WhatWeb.

00:17:12.300 --> 00:17:14.220 align:middle line:84%
Now, the final
technique that I'll

00:17:14.220 --> 00:17:16.500 align:middle line:84%
be highlighting or
covering here is

00:17:16.500 --> 00:17:20.069 align:middle line:84%
the process of downloading
an entire website.

00:17:20.069 --> 00:17:21.550 align:middle line:84%
All right, so what
does this mean?

00:17:21.550 --> 00:17:23.520 align:middle line:84%
Well, let's say you
are analyzing website

00:17:23.520 --> 00:17:27.119 align:middle line:84%
and maybe you want to analyze
the source code of a website.

00:17:27.119 --> 00:17:29.430 align:middle line:84%
You can actually download
the entire website

00:17:29.430 --> 00:17:36.015 align:middle line:84%
as is through the use of a tool
called HTTrack or HT Track,

00:17:36.015 --> 00:17:37.390 align:middle line:84%
however you want
to pronounce it.

00:17:37.390 --> 00:17:40.350 align:middle line:84%
So you can see, it's
called Website Copier.

00:17:40.350 --> 00:17:42.510 align:middle line:84%
This is fairly
simple to understand.

00:17:42.510 --> 00:17:44.490 align:middle line:84%
It allows you to
download a website

00:17:44.490 --> 00:17:49.080 align:middle line:84%
from the internet to a
local directory, building

00:17:49.080 --> 00:17:51.030 align:middle line:84%
recursively, all
the directories,

00:17:51.030 --> 00:17:54.210 align:middle line:84%
getting HTML images and
other files from the server

00:17:54.210 --> 00:17:55.980 align:middle line:90%
onto your computer.

00:17:55.980 --> 00:17:58.110 align:middle line:84%
This works on both
Windows and Linux.

00:17:58.110 --> 00:18:04.900 align:middle line:84%
And you can install it on Linux
by installing the actual Web

00:18:04.900 --> 00:18:09.990 align:middle line:84%
HTTrack command or the
installing the Web HTTrack

00:18:09.990 --> 00:18:14.445 align:middle line:84%
package, so sudo apt-get
install webhttrack.

00:18:14.445 --> 00:18:17.280 align:middle line:90%


00:18:17.280 --> 00:18:19.290 align:middle line:84%
I believe I already
have it installed.

00:18:19.290 --> 00:18:21.870 align:middle line:84%
I'll just provide my
password for the Kali user.

00:18:21.870 --> 00:18:24.180 align:middle line:84%
And if I open up
my Start menu here,

00:18:24.180 --> 00:18:29.370 align:middle line:84%
I can just search for it, so
Web HTTrack Website Copier.

00:18:29.370 --> 00:18:30.760 align:middle line:90%
And I'll just open this up.

00:18:30.760 --> 00:18:32.800 align:middle line:84%
This will open up
the web instance.

00:18:32.800 --> 00:18:35.280 align:middle line:84%
So it's going to start
the server on port 8080

00:18:35.280 --> 00:18:38.910 align:middle line:84%
on your local host or on
your Kali Linux system.

00:18:38.910 --> 00:18:40.890 align:middle line:84%
My language
preference is English.

00:18:40.890 --> 00:18:45.760 align:middle line:84%
And then next, you can specify
an existing project name.

00:18:45.760 --> 00:18:48.510 align:middle line:84%
Or in this case, I can
just type in hackersploit,

00:18:48.510 --> 00:18:52.950 align:middle line:84%
although I may want to run
this on another website.

00:18:52.950 --> 00:18:56.130 align:middle line:84%
But we'll just do it
on hackersploit here.

00:18:56.130 --> 00:18:58.240 align:middle line:84%
Project category,
we don't have one.

00:18:58.240 --> 00:19:01.800 align:middle line:84%
We can save this under
/home/kali/websites.

00:19:01.800 --> 00:19:03.490 align:middle line:90%
That's perfectly fine.

00:19:03.490 --> 00:19:06.570 align:middle line:84%
And then next, we can
download the website.

00:19:06.570 --> 00:19:08.580 align:middle line:84%
We can also get
individual files,

00:19:08.580 --> 00:19:12.990 align:middle line:84%
download all the sites
in pages, or we can just

00:19:12.990 --> 00:19:15.310 align:middle line:84%
go for the default, which
is download the website.

00:19:15.310 --> 00:19:19.710 align:middle line:84%
So we can add the URL,
so hackersploit.org.

00:19:19.710 --> 00:19:23.070 align:middle line:84%
If there is authentication,
you can provide a username

00:19:23.070 --> 00:19:23.740 align:middle line:90%
and password.

00:19:23.740 --> 00:19:25.350 align:middle line:90%
So I'll just hit OK.

00:19:25.350 --> 00:19:28.320 align:middle line:84%
Or you can also
specify a list of URLs

00:19:28.320 --> 00:19:30.660 align:middle line:84%
if you want to download
multiple websites.

00:19:30.660 --> 00:19:32.490 align:middle line:90%
And hit next.

00:19:32.490 --> 00:19:36.433 align:middle line:84%
And in this case,
we can hit start.

00:19:36.433 --> 00:19:38.850 align:middle line:84%
All right, so it's going to
begin downloading the website.

00:19:38.850 --> 00:19:43.290 align:middle line:84%
Now, in my case, you can see
that, in this case, it failed.

00:19:43.290 --> 00:19:46.980 align:middle line:84%
And of course, I knew that it
was going to fail because--

00:19:46.980 --> 00:19:48.300 align:middle line:90%
or maybe it didn't fail.

00:19:48.300 --> 00:19:50.040 align:middle line:84%
We can actually
check the directory

00:19:50.040 --> 00:19:52.660 align:middle line:84%
because I'm not sure whether
the proxy would allow that.

00:19:52.660 --> 00:19:54.120 align:middle line:84%
So if I click on
websites, you can

00:19:54.120 --> 00:19:57.000 align:middle line:90%
see we have hackersploit.org.

00:19:57.000 --> 00:19:58.680 align:middle line:84%
If we click on that
there, yeah, it

00:19:58.680 --> 00:20:03.300 align:middle line:84%
doesn't look like it's saved it
or downloaded it successfully.

00:20:03.300 --> 00:20:05.940 align:middle line:84%
Just trying to see if I have
a website that we can actually

00:20:05.940 --> 00:20:07.920 align:middle line:84%
perform this on,
although we really

00:20:07.920 --> 00:20:09.180 align:middle line:90%
don't need to go into that.

00:20:09.180 --> 00:20:10.590 align:middle line:84%
This can be very
useful if you're

00:20:10.590 --> 00:20:13.890 align:middle line:84%
trying to analyze the source
code of a website to learn more

00:20:13.890 --> 00:20:15.450 align:middle line:84%
about the website,
whether you're

00:20:15.450 --> 00:20:17.070 align:middle line:84%
trying to identify
vulnerabilities

00:20:17.070 --> 00:20:19.290 align:middle line:84%
or you're trying to
get an understanding

00:20:19.290 --> 00:20:21.890 align:middle line:84%
of the actual structure
of the website.

00:20:21.890 --> 00:20:25.230 align:middle line:84%
So that is going to conclude
the practical demonstration

00:20:25.230 --> 00:20:27.370 align:middle line:90%
site of this video.

00:20:27.370 --> 00:20:30.630 align:middle line:84%
All right, so we've been able to
perform passive reconnaissance

00:20:30.630 --> 00:20:32.670 align:middle line:90%
and footprinting on a website.

00:20:32.670 --> 00:20:34.320 align:middle line:84%
We've taken a look
at the various tools

00:20:34.320 --> 00:20:35.800 align:middle line:90%
that can be used to do it.

00:20:35.800 --> 00:20:38.670 align:middle line:84%
In the next video, we're going
to be taking a look at how

00:20:38.670 --> 00:20:40.810 align:middle line:90%
to enumerate whois information.

00:20:40.810 --> 00:20:44.600 align:middle line:84%
So this will essentially
entail into learning more

00:20:44.600 --> 00:20:47.030 align:middle line:84%
about a particular
domain name, who

00:20:47.030 --> 00:20:51.290 align:middle line:84%
it was purchased by, who owns
it, when it expires, et cetera.

00:20:51.290 --> 00:20:55.000 align:middle line:84%
So I'll be seeing you
in the next video.