Time
7 hours 47 minutes
Difficulty
Advanced
CEU/CPE
10

Video Description

This lesson covers the basics of networking and discusses the OSI Model:

  • Physical: copper, fiber, wireless
  • Data-link: MAC, LLC. Associated with a specific network interface.
  • Network: IP, ICMP. Associated with IP addressing.
  • Transport: TCP/UDP
  • Session: Connection between applications, some elements of TCP
  • Presentation: layer between the network and the user
  • Application: what the user application sees

Video Transcription

00:04
ladies and gentlemen, Hello and welcome to part one of post exploitation hacking
00:09
the basics of networking.
00:12
I will again be your host Juice Perry. I am the residents. Me on this particular subject as well is all around fun guy.
00:19
All right. Our goals in this are going to be ensuring that everyone understands certain basic networking subjects were gonna go quickly through the Osan model. We're gonna discuss TCP I t v i p u t p i c m p et cetera, et cetera.
00:30
We're going to make sure everyone kind of has a level playing field with regards to networking subjects. Ah, low level specifically.
00:36
And we're going to examine packet breakdown to familiarise ourselves with what we're going to be seeing in the gathering information section.
00:43
That's going to be a very hefty portion of what you do in post exploitation, and you need to be able to actually understand what the packets are telling you.
00:51
So
00:52
who should be here?
00:53
People wanna learn about networking should be here. People who are unfamiliar with what a pack it looks like on the inside should be here, and people who like videos about computer stuff go ahead and be here too,
01:04
who should not be here.
01:06
People who have already done low level networking you worked with Ross Sockets. If you've done any sort of packet sniffers yourself, you'll be good to go.
01:15
People who have spent time examining wire short captures wire shark is essentially what we're gonna be looking at will be looking at a break out of a similar type of packet sniffer so that we can understand what packets look like on the inside and what they can tell us
01:26
and people who don't like videos about computer stuff. Although, to be fair, if you don't like to use a computer stuff, I know this isn't really a site for you, but hey,
01:36
teach their own. So we're gonna go ahead and dig right into this, starting out with the OS I model.
01:41
Now the first layer of the O. S I model is the physical layer. Visual layer is the copper, the fiber of the wireless, whatever it's the actual transmission medium.
01:49
Uh, whatever it travels over is our physical layer.
01:53
It's in no way software, so you may often hear that this is the bits and bytes layer that's actually not correct. That's the data. Linklater Physical Layer is the actual physical object that you're using.
02:05
It's what carries the bits and bytes.
02:07
We won't really deal with that very much at this point. That's not really of great importance to the post explain hacker.
02:14
It's really something that's going to be useful to us, a sad man. It's a layer that we just don't really bother with
02:19
next layer. However, the data link later, we bother with a whole bunch. Mac addresses are very important to us. Mac addresses what exists in this layer. It's how in interface is I d'd. We'll discuss the specifics of Mac address in just a moment. But essentially the data link layer is the bits of the bites, the people on your side of a router.
02:36
Everyone who's on the same network as you, usually the same sub net as you.
02:39
Next layer up is gonna be your network layer Network Layer is what we commonly think of as the Internet. It's where I P addresses happen. It's how you communicate with people on the other side of a Robert.
02:50
Everything that goes from one writer to the next exists at a network layer
02:54
and has a network layer in the packet. And it works better. And I p header, so to speak, or an I P header, for example, something similar to that
03:00
nicely up his transport layer. That's where TCP and UDP exists. That's reports get get a sign. That's where service is actually No, to communicate all sorts of fun stuff like that. Above that is the session layer, where applications will actually communicate with one another where data is kind of sent across and read from the network stack presentation.
03:21
This is the layer between the network in the user. This is where
03:23
decryption happens, where bite orders flipped and swapped and all the things were done to make the data looked pretty,
03:30
which leads, of course, to the application layer, which is what your application sees. It's what actually will get spit out to the screen so normally, when you're surfing the Internet, you know 100% of the things most people will ever see on the Internet are the application layer, which is, you can tell is just the tiny, tiny, tiny tip of the iceberg. All right, so that's the less I model we're gonna go ahead and begin to the second layer
03:50
and move our way up
03:52
again. We're not going to bother with the physical layer because that doesn't affect us. So second, layer the data link layer. This is where, as I said, Mac addressing happens
04:00
Now Mac addresses associated with a specific network interface,
04:05
and it's made up of six bites.
04:08
The 1st 3 bites are manufacturer specific bites we're going to see, particularly through the course of this class. We're going to be seeing the BM wear manufacturer specific bites because most of what we're gonna be doing is in Vienna.
04:18
The 2nd 3 bites are theoretically unique,
04:21
I say theoretically, because they're actually not. We ran a I P V four addresses a very long time ago, and I assure you, we're gonna We ran out of ah out of these three bites worth of addressing space much, much earlier than that, however, their unique enough. And that's an important thing to understand. Mac addresses only matter on your side of a writer,
04:42
they're only for you to actually communicate across that physical medium
04:45
that we discussed a moment ago
04:46
so long as you're Mac address doesn't also exist on the same network is your current machine. You're not gonna have a collision. You're not gonna have a problem. But it is important to understand that it's not actually perfectly unique and that can theoretically pose an issue and has, in the past, posting issue
05:00
for companies that got two devices that happened to have the same Mac. But next layer up
05:05
next layer is the network layer. And that's as I said, where I pee addressing happens. There are two primary I p addressing protocols HPV for the one that everybody knows and loves and is used to.
05:16
And of course, I p v six the one that very few people really understand and even fewer people actually use.
05:24
We're gonna kind of dig into both first things first I pee before
05:28
I mean before is a four bite addressing scheme that looks like this right here.
05:33
Now these four bites can tell us quite a bit.
05:35
They can tell us what network exists on they can, even once we start digging into an actual configuration of it, tell us how many other machines might exist on that same network. But all they really tell us right now, is the unique address. And again, like with Max, I pee before addresses aren't exactly unique, but everything that exists on the same network will have a different I p.
05:55
And anything that can see something else on that network
05:58
needs to have a different I p I p addresses or not like Max Max are actually burned into a device I p addresses can be assigned at any time.
06:06
So the I P address may well be unique, but it may also change with no real warning. That's something you're gonna want to keep in mind as you're going.
06:14
An important thing to know about Ivy before is that it is ancient. It is old as dirt I pee before is more than 30 years old, which in computer terms is about as old as you can really get.
06:27
It was created by R C 791 in the year 1981.
06:31
It was originally designed as sort of the testing address for the Internet. It was never meant to be something that was used for any real length of time. It was just something that was used to kind of make sure the Internet worked like they thought it would work. But as any good developer will tell you, that temporary testing measure we put in is usually the one that makes it to production.
06:50
Now, on the other hand, we're looking at I P B six at P. V six is a 16 bite addressing scheme.
06:58
It's got much, much, much, much, much more room. And obviously it looks like this down here, which is somewhat harder to write and certainly harder to read. Although they did put in certain measures, which make it a little bit easier to do that, we won't be discussing those here. That's more for an actual networking class on. What is important to note
07:15
is that it's much newer, is about 15 years younger than I pee before, although to be fair, it's still more than it's still nearly 20 years old, which is very, very old in computer terms,
07:27
however, what is very handy about IBV six pretty Leader From the perspective of a security professional,
07:31
suddenly about 4% of people use it. What that means for us is that while I B B six exists on almost all the devices that you're ever going to find, very, very tiny fraction of people actually make use of it. Which means that a roughly equivalent fraction of people actually do anything to protect against it or to protect it.
07:49
So your I p addressing schemes of I P B six are often going to be able to sneak by a firewall that hasn't been properly configured to watch for them.
07:57
So where it might only accept certain I'd be four addresses or my block, sir. And I'd be before addresses very often. If you go through with a BB six, it will never know you were there.

Up Next

Post Exploitation Hacking

In this self-paced online training course, you will cover three main topics: Information Gathering, Backdooring and Covering Steps, how to use system specific tools to get general information, listener shells, metasploit and meterpreter scripting.

Instructed By

Instructor Profile Image
Joe Perry
Senior Technical Instructor at FireEye, Inc
Instructor