Time
14 hours 43 minutes
Difficulty
Advanced
CEU/CPE
15

Video Transcription

00:01
Hello, everybody. And welcome to the episode number 12 off the RCP cores, the NS and admiration.
00:07
My name is Alejandro Ginna, and I'll be your instructor for today's session.
00:12
Learning operatives of the session is to understand some D. N s in admiration techniques and understand the most common Thean s and admiration tools.
00:22
Well, let's get down to business.
00:26
Ah, the admiration is the process of locating all the servers on their corresponding records off. You know, for an organization being said that this is not a passive information gathering technique anymore, this is actually considered inactive information gathering tunic. So, uh,
00:45
if you don't have the permissions of the victim or, you know, a server that you will be doing this executed disc amends,
00:51
you shouldn't do it. I mean, um,
00:54
as this is an active, passive information. I'm sorry, enacting information gathering technique. This means that you will be facing, you know, kind of a face to face modality against the server. You will actually be getting information That is not supposed to be now.
01:11
I mean, I know that the hackers around the world don't care about this. They actually as we speak, even if you actually work in a business that has a name for itself? I do believe that the hackers are actually executed. Disc amends Signature, sir, Against your server. But if you know we're the good guys and wear the white hat Hackers,
01:30
Um,
01:32
so you should get for the permission off the server owner to do this. I mean, maybe even if you work, I mean, if you already work in a business, this doesn't give you the permissions to do that. I mean, you should go to ask them and tell them if they actually give you permission to do that. You know, maybe you're part
01:51
off our red team or you're actually and penetration tester.
01:55
Maybe we're good to go with their business. But, you know, in other inning other scenarios, you should first consult with your boss and, you know, maybe you're CEO or whoever runs the business and ask them if they actually give you permission to do that.
02:09
Having said that, let's continue with the Dennison Admiration session. Ah, there's an operation will deal. Use range, computer names, our I p addresses. You know, from from a target system the least of the day's record provides or not review off types. You know, records store, You know,
02:28
in a domain name system or the name main server.
02:31
Uh, invite await. Bien s owns zone transfer. Now that we're at the subject. Dennison strong for I used to replicate in his data across a number of Deanna's asked kind of about a backup. I mean, do you have your primary T and s and your secondary? Dennis?
02:51
So that secondary Deanna's will constantly. Well, it depends on the configuration, but let Ze use the word constantly
02:58
will constantly be asking for information on new information, old information or, you know, they replicated information from the frame of the N s is called sewn transferred. Now, some Deanna servers by the fall don't have these confident to be secure. I mean, they don't ask for
03:15
credentials, they don't check. Actually, if they want that the server request the zones transfer, it's actually someone that he was a bust supposed to be asking for that information, or it's just when.
03:29
But if it is a malicious guy operations malicious hacker trying to actually get that information. So if you're actually going to use his own transfer, I would highly recommend you to applied security encryption, if possible. Two factor authentication, you know,
03:47
But your security kind of measures in your d n a server. We'll also avoid another attacks. Other attacks like Dennis poisoning, for example. So yeah, putting secure and your d n A server is always a good idea.
04:03
But, you know, uh,
04:05
let me just show your son commands you can use. For example, the host commanded the host tool. The host command is at the N s look up utility. You confined at P address off a domain name. It also performs reverse lookups finding, you know, the domain name associated to an I p address.
04:24
But let's let's start with this really simple man is type post
04:29
and put that there
04:33
the name server and, well, you know, yield some information, some good information. But what happens if you want to actually find the name servers for that? The main, for example, just have to type dash t and s,
04:50
and it will, you know, get the information you want. This is, you know, just in case, because there's options to get all the information. But we are looking for a specific information remember, this is quite know. We see and some the end as well deals. And I'm sorry will complain about this traffic being generated. So
05:08
maybe you you want to stay under the greed and
05:13
I want to make nice. You can use different options. For example, what happens if you want to find out the canonical names? Well, can Uncle names or C name ab? You know, the record is a type of, uh,
05:29
record, which maps Wonder me name were now and then an alias to another. For example, if you have something called my example or my domain that come maybe Dustin alias for something that just just say the main dot coms on flight that I don't know. But you get the idea.
05:47
So for daddies have
05:48
change from N s to see me. And, you know, at this case doesn't have any canonical name record. But, you know, that's the command you can use to do that.
06:00
For example, you can actually also get T X T records, which is just text records as the names just This is just to get to see if there's
06:13
kind of a human readable data attach or associate id to the main record you're actually acquiring. So, for example, if I type this, they will tell me that the information is related to the domain. So that's that, for example, of you?
06:30
I don't care about being nicey or not. You can
06:34
just type
06:36
dash a will query all off them off the records or any record associated to this domain. And you can see it's a lot of information.
06:47
Okay. Ah, what happens if you actually went to get the time, So leave information T l just have to type
06:59
dash B
07:00
Dashti
07:01
Hey,
07:02
and you will get some of that information. You know, some information will deal with Gail exceptions and some of them not. So don't worry about it. You will see other commands in these sessions. So
07:17
you also you can even tell it to go to an I p V Ford
07:23
y p B six protocol just by typing that number.
07:28
Another tool? I guess
07:30
that's the one I like the most.
07:32
Not because that simple to use because, as you can remember, all you have to do is Dusty and the name of the record. That's all but another tool that I like the most is and let's look up, you know, I don't know why, but I've been using that for a long time. And it just it's like that too.
07:50
But as you will see, it will it will
07:54
show you, or it will get you the same information. So
07:58
you know, there's no wrong way with this. So
08:01
this this index of this Ennis look up and for example, dash type
08:07
I'm sorry
08:09
Equals in s and
08:13
just the name of the server. Some information don't mean nothing has changed here, for example, another record is the start off authority or eso es. The record defines the beginning off off off the authority the N s ah, son, and specifies the global parameters for this own
08:33
so speaking
08:33
that can heal some very useful information. So
08:37
type, ah, start of authority
08:41
and you know
08:43
more of the information
08:46
can say you help how often refreshed information how, how many, how often every tries south inspires was the minimum. I mean, they can show you some useful information. But what happens, for example, other other, um,
09:05
type of records, the mail exchange, you know, male exchanger. But you can also use the hash query non necessarily get dash type
09:16
and continue to send information just f y I,
09:20
um Yeah, that's that. Those air, the domains other used to exchange email. So there's that and of course, it has the option to get any record you want. And again, there's no difference with when we type Remember. This is when we type
09:37
when we use the host command.
09:41
And this is when we use the n s look up command. So as you can see, not that different. And if for some reason you actually went to grab this, you can also do that. For example, grab MX, get me all on Lee things The saints. That's a male exchange record. So
09:58
there you go. Not that fancy resolved, but you know it gets the job down. That's the point
10:03
on. And the final tool that I would like to mention here is a dig, too.
10:11
Oh,
10:13
just like that, you can again said simple command separate that common will get some information you can get. For example, you can a Tama sewn transfer
10:26
a X far. I will not do that because that's really intrusive, and it's really noisy Isa really knows the approach. I will not do that. But you can do that. I mean, a simple is that And of course, you can get all the wreckers a
10:41
a
10:43
We'll get more information. Ah, really change?
10:48
Um I don't know.
10:50
Example On s
10:54
name server and the state of authority, for example. S Oh yeah, you can. You can quit e all of that in a force you can do any
11:05
again. Same results, nothing fancy nothing to be worried about it. But remember, they grab a result.
11:13
It's calm a little bit, Gleaner, when you used aches so again you will get you this information maybe in a different output. So whatever you wanna use or whatever tool you when I use it all depends on your taste and whatever you know, again,
11:28
a more familiar familiarized with Dennis. Look up. But I don't say *** is
11:33
is not better or you know his words, that and it's look up. I'm just saying that it's whatever works best for you. And for example, in this case, if you want to actually perform and not so intrusive approach, you can just type short
11:52
and we'll give you a limited information. What I do like about Jake is that you can easily upload at least off the mains. And you can actually, just like they were to, for example, route that stop files
12:07
Onda Manes. He doesn't exist, but you know
12:11
the 60 and it will query all this. Although the mains that included in this file. So maybe you have a long list of the mains?
12:18
I don't know. 2050 remains. I don't want to go one by one. You can just do this, execute this command and and
12:28
actually performed load all the all the all the remains from that, and that's it.
12:33
Other tools are you know, I don't want to show you this video. Is everyone a bit too long to be long? Not necessary. I mean, I don't see the point of showing you that excite. You will get you some information. But, you know, I think that they deserve a mention Eyes, for example, D. N s and
12:50
Aah These one tool. The other tool is the n s. Reckon
12:56
And, you know,
12:58
as you probably know, I'm not so much of a graphic user interface guy because, you know, I have again As you go further into penetration testing career, you will see that most of the time you will end up using the terminal. So
13:15
I tried to not get familial familiarise
13:18
with graphic user interface because I I get I get is tempted. I'm tempted all the time to go to the easy way and just get, you know, a graphic user interface and just click here and click during and get a really cool result. You know,
13:33
that's up to you. I mean, I'm not saying that it is bad. I'm just saying that most of the time you will end up using
13:41
the terminal. So if you're not familiarized with the terminal commands, you might and having problems, but they're multi go. Is the application the graphic user interface that it can actually perform
13:54
other stuff. But, you know, you can actually perform also the n s enumeration. There's a paid vacation. I mean, yeah, this is pretty embarrassing this refrigeration, but I know I haven't activated any of them, but that it will It will show you a really cool map
14:13
off all the information that you just gather
14:15
from the from your d n s and admiration it will put you. You will put it in a really cool graphic user interface. But you know, Then again, it's up to you. I just I'm just telling you the my process on penetration, testing and most of the time
14:33
I don't. And abusing for Africa user interface tools
14:35
to hack is not. And by the way, is not because I didn't I don't want you. You took us most of the time,
14:41
As you will see in in this course we do. What you get is a reverse shell from from from the remote,
14:50
um, victim. So you don't get I kind of remote desktop, you can able it and connected later. But, you know, most of the time you end up with a river shell, which is all terminal commands.
15:01
So that's that.
15:05
Okay, uh, both assessment questions
15:09
Is this information gathering technique consider passive or active? Well, as I told you at the beginning, it's considered to be active because you're actually interacting with the victim's system. So, yeah, if you again. If you don't have permissions to do that, police don't do it.
15:24
I get that hackers around the world don't care about days, and they're actually doing that as I asked to speak.
15:31
Ah, but, you know, we the good guys or the white hat hackers will have to get a permission first. From from from from, you know, the business We're trying to help.
15:43
Um, so we can implement this technics
15:46
What is performed by the command host Dasht E and s. Well, that's kind of the simplest command you can use in from the host
15:56
option host tool. Uh, and it will get that the name service is associate ID Teoh domain name. So, yeah, that's that. What is performed by the command *** Dash f. And you know this documents at least a t X T fire where this actually used to, uh, load.
16:15
Ah, list of the main names from a text e file or from you know, any other
16:21
text file. So you cannot You don't have to go one by one and typing with my wife. And you just have that option to do that in dig.
16:29
Ah, it is video. We saw the most common the NS enumeration options to gather information, and we executed some d. N s and admiration tools on commands to see their results. Supplemental materials and the N s enumeration Chichen I mean, you can even search for specific ***. Ditch it
16:48
for the tools with, ah, host. And as luck optic another, the incineration told you one.
16:55
There's no actually good grade to go here
16:59
looking forward in the next video, we'll cover port scanning.
17:03
Well, that's it for today, folks, I hope in your d video and talk to you soon.

Up Next

Offensive Penetration Testing

This is a deep course about penetration testing. In this course, you’ll learn from basic to the most advanced and modern techniques to find vulnerabilities through information gathering, create and/or use exploits and be able to escalate privileges in order to test your information systems defenses.

Instructed By

Instructor Profile Image
Alejandro Guinea
CERT Regional Director
Instructor