WEBVTT

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


00:00:04.840 --> 00:00:08.228 align:middle line:90%
[MUSIC PLAYING]

00:00:08.228 --> 00:00:10.170 align:middle line:90%


00:00:10.170 --> 00:00:11.820 align:middle line:90%
Whois enumeration.

00:00:11.820 --> 00:00:13.680 align:middle line:84%
In this video, we're
going to be exploring

00:00:13.680 --> 00:00:19.260 align:middle line:84%
the process of performing Whois
lookups to identify information

00:00:19.260 --> 00:00:21.280 align:middle line:90%
regarding a particular domain.

00:00:21.280 --> 00:00:23.530 align:middle line:84%
So if you're
targeting a website,

00:00:23.530 --> 00:00:26.040 align:middle line:84%
then it's always important
to perform a Whois

00:00:26.040 --> 00:00:29.790 align:middle line:84%
lookup to essentially get an
idea as to when the site was

00:00:29.790 --> 00:00:33.060 align:middle line:84%
registered, who owns it, what
registrar it was registered

00:00:33.060 --> 00:00:34.510 align:middle line:90%
with, so on and so forth.

00:00:34.510 --> 00:00:37.500 align:middle line:84%
So again, I'm also
going to be performing

00:00:37.500 --> 00:00:39.210 align:middle line:90%
this on my Kali Linux VM.

00:00:39.210 --> 00:00:43.440 align:middle line:84%
As I said, within the passive
information gathering phase,

00:00:43.440 --> 00:00:45.150 align:middle line:84%
you can perform
this on the sites

00:00:45.150 --> 00:00:48.070 align:middle line:84%
that I will be
showcasing in this video.

00:00:48.070 --> 00:00:51.000 align:middle line:84%
And as I said,
remember that whenever

00:00:51.000 --> 00:00:55.140 align:middle line:84%
you're performing checks
on sites or property

00:00:55.140 --> 00:00:58.260 align:middle line:84%
that you do not own, you
do require authorization.

00:00:58.260 --> 00:01:02.080 align:middle line:84%
And in this case, I am giving
you authorization to do this.

00:01:02.080 --> 00:01:07.720 align:middle line:84%
So I'm just going to switch
over to my Kali Linux VM.

00:01:07.720 --> 00:01:10.670 align:middle line:84%
All right, so I'm back
on my Kali Linux VM.

00:01:10.670 --> 00:01:13.390 align:middle line:84%
And I've just performed a
quick Google search on Whois,

00:01:13.390 --> 00:01:15.820 align:middle line:84%
just so that I can
explain what it is.

00:01:15.820 --> 00:01:20.140 align:middle line:84%
All right, so Whois, as you can
see, is an internet protocol.

00:01:20.140 --> 00:01:22.510 align:middle line:84%
It's essentially a query
and response protocol

00:01:22.510 --> 00:01:24.820 align:middle line:84%
that is widely used
for querying databases

00:01:24.820 --> 00:01:27.910 align:middle line:84%
that stored the registered
users or assignees

00:01:27.910 --> 00:01:30.790 align:middle line:84%
of a particular internet
resource such as a domain

00:01:30.790 --> 00:01:34.580 align:middle line:84%
name, an IP address block,
or an autonomous system.

00:01:34.580 --> 00:01:36.310 align:middle line:84%
So in this case,
we're essentially

00:01:36.310 --> 00:01:39.680 align:middle line:84%
going to be utilizing it in the
context of a particular domain

00:01:39.680 --> 00:01:40.180 align:middle line:90%
name.

00:01:40.180 --> 00:01:43.480 align:middle line:84%
So there's tons of
Whois lookup websites

00:01:43.480 --> 00:01:46.360 align:middle line:84%
online, like for
example, who.is.

00:01:46.360 --> 00:01:51.177 align:middle line:84%
But we'll be firstly taking
a look at the actual--

00:01:51.177 --> 00:01:53.260 align:middle line:84%
we'll be taking a look at
the command line utility

00:01:53.260 --> 00:01:54.740 align:middle line:90%
available in Kali Linux.

00:01:54.740 --> 00:02:01.000 align:middle line:84%
So if I type in whois and
hackersploit.org and hit enter,

00:02:01.000 --> 00:02:03.160 align:middle line:84%
we'll give this a
couple of seconds.

00:02:03.160 --> 00:02:04.660 align:middle line:84%
And you can see
it's going to output

00:02:04.660 --> 00:02:06.380 align:middle line:90%
quite a lot of information.

00:02:06.380 --> 00:02:10.030 align:middle line:84%
So the information it'll output
is the actual domain name

00:02:10.030 --> 00:02:14.970 align:middle line:84%
itself, the registry domain
ID, the registry Whois service.

00:02:14.970 --> 00:02:17.740 align:middle line:84%
So in this case, it tells
us it's whois.namecheap.com,

00:02:17.740 --> 00:02:20.650 align:middle line:84%
which means that this domain
was registered with namecheap.

00:02:20.650 --> 00:02:24.280 align:middle line:84%
And that's confirmed
through the registrar URL

00:02:24.280 --> 00:02:29.060 align:middle line:84%
when this domain was renewed or
updated, when it was created.

00:02:29.060 --> 00:02:31.540 align:middle line:84%
So you can see 2018,
and it was recently

00:02:31.540 --> 00:02:34.030 align:middle line:90%
renewed in February of 2022.

00:02:34.030 --> 00:02:37.780 align:middle line:84%
OK, so you guys know
when I renew my domains

00:02:37.780 --> 00:02:39.560 align:middle line:90%
or this particular domain.

00:02:39.560 --> 00:02:42.800 align:middle line:84%
And of course, it tells us
when this domain will expire,

00:02:42.800 --> 00:02:44.980 align:middle line:90%
which is 2023.

00:02:44.980 --> 00:02:48.760 align:middle line:84%
We also get the actual
registrar abuse contact

00:02:48.760 --> 00:02:50.380 align:middle line:90%
email and the phone.

00:02:50.380 --> 00:02:52.450 align:middle line:84%
But this is really
not important.

00:02:52.450 --> 00:02:56.770 align:middle line:84%
What we're looking for is
going to be the actual--

00:02:56.770 --> 00:02:59.260 align:middle line:84%
let's see if I
can find it here--

00:02:59.260 --> 00:03:00.850 align:middle line:84%
the name server,
which in this case

00:03:00.850 --> 00:03:02.860 align:middle line:84%
points to Cloudflare,
which makes sense,

00:03:02.860 --> 00:03:05.800 align:middle line:84%
as I've already mentioned
that in the previous video.

00:03:05.800 --> 00:03:08.530 align:middle line:84%
But we can see
that in this case,

00:03:08.530 --> 00:03:14.290 align:middle line:84%
DNSSEC is enabled, which
means that information

00:03:14.290 --> 00:03:17.690 align:middle line:84%
like the owner of the domain,
like my personal name,

00:03:17.690 --> 00:03:19.390 align:middle line:90%
my address is all redacted.

00:03:19.390 --> 00:03:22.780 align:middle line:84%
Now if I run this
on another website--

00:03:22.780 --> 00:03:24.880 align:middle line:84%
for example, let's
just showcase it

00:03:24.880 --> 00:03:26.980 align:middle line:84%
right now because we are
going to be exploring it.

00:03:26.980 --> 00:03:30.070 align:middle line:84%
And that, of course,
is zone transfer--

00:03:30.070 --> 00:03:31.630 align:middle line:84%
let me see if I
can type that in.

00:03:31.630 --> 00:03:33.880 align:middle line:90%
Transfer.me.

00:03:33.880 --> 00:03:36.280 align:middle line:84%
This is a website
that's set up to teach

00:03:36.280 --> 00:03:40.810 align:middle line:84%
students or individuals
about DNS zone transfers.

00:03:40.810 --> 00:03:45.350 align:middle line:84%
But we can essentially just
run a quick Whois on it.

00:03:45.350 --> 00:03:47.520 align:middle line:90%
So whois zonetransfer.me.

00:03:47.520 --> 00:03:51.660 align:middle line:90%


00:03:51.660 --> 00:03:54.870 align:middle line:84%
And you can see that
this will display--

00:03:54.870 --> 00:03:56.820 align:middle line:84%
does it display any
more information?

00:03:56.820 --> 00:03:59.250 align:middle line:84%
Yeah, so it actually
displays information.

00:03:59.250 --> 00:04:02.730 align:middle line:84%
In this case, like the
registrant organization.

00:04:02.730 --> 00:04:05.850 align:middle line:84%
In this case, DigiNinja,
the registrant state,

00:04:05.850 --> 00:04:06.810 align:middle line:90%
which is Routerville.

00:04:06.810 --> 00:04:07.800 align:middle line:90%
So that was set up.

00:04:07.800 --> 00:04:10.200 align:middle line:84%
Again, as I said, it's there
to teach you about DNS.

00:04:10.200 --> 00:04:13.620 align:middle line:84%
So this is going to be really
just information that's

00:04:13.620 --> 00:04:15.070 align:middle line:90%
there to toy with you.

00:04:15.070 --> 00:04:17.220 align:middle line:84%
But you can see we have
the registrant country,

00:04:17.220 --> 00:04:19.410 align:middle line:90%
like in this case Great Britain.

00:04:19.410 --> 00:04:22.500 align:middle line:84%
And then the name servers,
which, again in this case,

00:04:22.500 --> 00:04:25.170 align:middle line:84%
look like they're going through
their own name servers, which

00:04:25.170 --> 00:04:27.600 align:middle line:84%
is quite interesting
in and of itself.

00:04:27.600 --> 00:04:29.880 align:middle line:84%
But you'll typically
gain information

00:04:29.880 --> 00:04:32.500 align:middle line:84%
like the actual
owner of the website,

00:04:32.500 --> 00:04:35.400 align:middle line:84%
unless that information
is protected or redacted.

00:04:35.400 --> 00:04:38.880 align:middle line:84%
If we take a look at the Whois
lookup sites like who.is,

00:04:38.880 --> 00:04:40.890 align:middle line:90%
we can also run the same query.

00:04:40.890 --> 00:04:42.730 align:middle line:84%
It essentially does
the same thing.

00:04:42.730 --> 00:04:44.970 align:middle line:90%
So hackersploit.org.

00:04:44.970 --> 00:04:47.400 align:middle line:84%
And you can see it'll
essentially tell us what

00:04:47.400 --> 00:04:49.470 align:middle line:90%
we were already able to obtain.

00:04:49.470 --> 00:04:54.870 align:middle line:84%
So in this case, we can see
that the registrant contact

00:04:54.870 --> 00:04:57.810 align:middle line:84%
information for some
reason is listed here.

00:04:57.810 --> 00:05:00.150 align:middle line:84%
But I can confirm that
this is incorrect,

00:05:00.150 --> 00:05:03.570 align:middle line:84%
because you can see that
that looks random, actually.

00:05:03.570 --> 00:05:04.560 align:middle line:90%
This is in Iceland.

00:05:04.560 --> 00:05:07.860 align:middle line:84%
But I can tell you for a
fact that I'm not in Iceland.

00:05:07.860 --> 00:05:10.380 align:middle line:84%
But the name is
redacted for privacy,

00:05:10.380 --> 00:05:14.880 align:middle line:84%
and the privacy service
provided by my registrar,

00:05:14.880 --> 00:05:17.550 align:middle line:84%
which is Cloudflare, has
protected my information

00:05:17.550 --> 00:05:18.820 align:middle line:90%
from being leaked.

00:05:18.820 --> 00:05:22.200 align:middle line:84%
Now this is going to be
the case in most cases.

00:05:22.200 --> 00:05:27.000 align:middle line:84%
But in some cases, you may find
domains with this information.

00:05:27.000 --> 00:05:30.540 align:middle line:84%
This information will
be publicly exposed.

00:05:30.540 --> 00:05:32.580 align:middle line:84%
So it could also give
you the email address

00:05:32.580 --> 00:05:35.220 align:middle line:84%
of the individual who owns
the domain, which, again, can

00:05:35.220 --> 00:05:37.020 align:middle line:90%
be used for a phishing attack.

00:05:37.020 --> 00:05:40.200 align:middle line:84%
I'm not giving you any
ideas, but I'm just

00:05:40.200 --> 00:05:43.380 align:middle line:84%
telling you how penetration
testers will typically

00:05:43.380 --> 00:05:44.770 align:middle line:90%
use this information.

00:05:44.770 --> 00:05:47.640 align:middle line:84%
But yeah, that's pretty much
it with regards to Whois.

00:05:47.640 --> 00:05:51.520 align:middle line:84%
It, again, can also be
performed on an IP address.

00:05:51.520 --> 00:05:56.280 align:middle line:84%
So for example, we can perform
it on one of the names of IPs

00:05:56.280 --> 00:05:57.390 align:middle line:90%
here for Cloudflare.

00:05:57.390 --> 00:05:59.250 align:middle line:84%
Of course, I don't
recommend doing this.

00:05:59.250 --> 00:06:01.710 align:middle line:84%
But let's just see
what this brings up.

00:06:01.710 --> 00:06:04.390 align:middle line:84%
So you can see it doesn't
bring up anything here.

00:06:04.390 --> 00:06:07.200 align:middle line:84%
However, if we go
ahead and run the host

00:06:07.200 --> 00:06:10.260 align:middle line:90%
command on hackersploit.org.

00:06:10.260 --> 00:06:13.830 align:middle line:84%
And we maybe perform a
Whois lookup directly

00:06:13.830 --> 00:06:14.730 align:middle line:90%
from our terminal.

00:06:14.730 --> 00:06:16.530 align:middle line:90%
Let's see what this brings up.

00:06:16.530 --> 00:06:17.260 align:middle line:90%
There we are.

00:06:17.260 --> 00:06:20.830 align:middle line:84%
So you can see this is owned by
Cloudflare, which makes sense.

00:06:20.830 --> 00:06:24.970 align:middle line:84%
This is an actual IP block
or a block of IP addresses.

00:06:24.970 --> 00:06:28.620 align:middle line:84%
So when you're performing a
Whois lookup on an IP address

00:06:28.620 --> 00:06:31.180 align:middle line:84%
or a block of IPs, this
is what will be displayed.

00:06:31.180 --> 00:06:34.410 align:middle line:84%
So we have the network
range, the CIDR annotation,

00:06:34.410 --> 00:06:36.330 align:middle line:84%
or the subnet
range, if you will.

00:06:36.330 --> 00:06:37.540 align:middle line:90%
The network name.

00:06:37.540 --> 00:06:39.330 align:middle line:84%
In this case, it
is CloudflareNet,

00:06:39.330 --> 00:06:40.470 align:middle line:90%
which makes sense.

00:06:40.470 --> 00:06:42.270 align:middle line:90%
The organization is Cloudflare.

00:06:42.270 --> 00:06:45.210 align:middle line:84%
When it was
registered, the date it

00:06:45.210 --> 00:06:48.780 align:middle line:90%
was updated on or renewed on.

00:06:48.780 --> 00:06:51.250 align:middle line:84%
The organization information
is displayed here.

00:06:51.250 --> 00:06:55.030 align:middle line:84%
So this is very important if we
were targeting an organization.

00:06:55.030 --> 00:06:58.380 align:middle line:84%
So in this case, the
organization is Cloudflare Inc,

00:06:58.380 --> 00:06:59.880 align:middle line:90%
or incorporated.

00:06:59.880 --> 00:07:02.920 align:middle line:84%
Organization ID, the
address, city, et cetera.

00:07:02.920 --> 00:07:05.880 align:middle line:84%
And then, of course, we
have the various emails

00:07:05.880 --> 00:07:09.760 align:middle line:84%
associated with abuse
and customer support.

00:07:09.760 --> 00:07:11.560 align:middle line:90%
So there we are.

00:07:11.560 --> 00:07:14.710 align:middle line:90%
Those are all displayed here.

00:07:14.710 --> 00:07:15.790 align:middle line:90%
So there we go.

00:07:15.790 --> 00:07:18.540 align:middle line:84%
So that is going to conclude
the practical demonstration

00:07:18.540 --> 00:07:20.890 align:middle line:90%
side of this video.

00:07:20.890 --> 00:07:21.390 align:middle line:90%
All right.

00:07:21.390 --> 00:07:23.550 align:middle line:84%
In the next video, we're
going to be exploring

00:07:23.550 --> 00:07:26.460 align:middle line:84%
the process of performing
website footprinting

00:07:26.460 --> 00:07:29.610 align:middle line:90%
with a service called Net Craft.

00:07:29.610 --> 00:07:31.210 align:middle line:84%
Now you might be
asking yourself,

00:07:31.210 --> 00:07:33.930 align:middle line:84%
why didn't I cover this in the
website footprinting video?

00:07:33.930 --> 00:07:36.040 align:middle line:84%
Well, there's a good
reason for that.

00:07:36.040 --> 00:07:38.790 align:middle line:84%
The reason for that is because
Net Craft is a third party

00:07:38.790 --> 00:07:39.390 align:middle line:90%
tool.

00:07:39.390 --> 00:07:42.750 align:middle line:84%
And it actually
helps you understand

00:07:42.750 --> 00:07:45.450 align:middle line:84%
what's running on our website
and organizes that data

00:07:45.450 --> 00:07:47.580 align:middle line:90%
in a way that's easy to consume.

00:07:47.580 --> 00:07:51.240 align:middle line:84%
This is a tool that's used
by penetration testers.

00:07:51.240 --> 00:07:52.890 align:middle line:90%
And you'll actually see why so.

00:07:52.890 --> 00:07:56.480 align:middle line:84%
I'll be seeing you
in the next video.

00:07:56.480 --> 00:07:57.000 align:middle line:90%