Time
8 hours 33 minutes
Difficulty
Beginner
CEU/CPE
9

Video Transcription

00:05
And if you'll get Ping
00:09
after going to do, I pee can pick first.
00:11
Because if I don't know what network I'm in, I may not know where I can ping.
00:16
So I peek and figure is just that. It's looking at the Internet protocol configuration of your never cards
00:25
and for my card
00:28
I Right now I have an address of
00:32
1 72 16 1 92.1 of the three
00:37
with the default gateway 1 72 16 1 92.1 which means that is my path out of this network.
00:44
So I want to lead this network and make sure I can actually get some place. The first thing I try to do is to paying the gateway if I can't reach the gateway and I can't get beyond the gateway,
00:58
so
01:00
pain
01:15
and I made it and you can see the Ping results
01:18
come back with the size of of the
01:22
packet that I sent 32 bytes.
01:25
How long it took it to come back
01:26
and a t t. L or timeto move value saying, How many hops did I traverse?
01:33
Teeth tells a countdown value.
01:34
So if it starts at 2 55 accounts down from there.
01:40
So if I read a pain,
01:53
you see, now I've got a t t o value this much more than 2 55
01:57
and I believe this value started a 64 and counting down.
02:02
So locally I've got a TV or 2 55 to the Internet and probably got a value of 64.
02:10
If I want to check that.
02:12
The reason this would have gone down from 64 to 43
02:16
is because it went through other writers, and every time the ghost a router,
02:21
it more is that number by one.
02:23
Or, if you wanna be fancy says it deprecate sit by one.
02:29
So let's. How do you find that out? Or you can use Trace Artie,
02:42
and
02:44
as long as the traffic isn't blocked
02:46
by people,
02:47
you should be able to see
02:51
different hops.
02:53
So I'm coming up with these exes here. That means that traffic is being blocked,
02:59
so let's see if it's just being blocked at one or two hops or if it's being blocked entirely.
03:08
And by the time we get to number five, if it's still got stars, then we know that it's not gonna work.
03:22
No,
03:23
This is gonna go on for 30 hops.
03:25
So how
03:28
How would I make it stop before then? Well, 11 ways, I could just not make it stop and decide. Well, g, I think I have a five minute break,
03:37
but we probably don't want a five minute break. So if I had control, hold the control key down at sea
03:44
and it stops?
03:55
No.
03:58
When I did that ping,
04:02
they got eight that ate that eight.
04:06
It automatically shot four echo requests, got four echo replies and stopped.
04:14
Is that the only thing I could do with being?
04:16
Probably not.
04:18
If you remember, how did I say I could find out the other things you could do with thing
04:24
slash Pressure Mark, by the way, noticed. There's actually a space between these two and then slashed question mark.
04:32
And what you get is
04:39
this whole display of things you can do with Ping.
04:43
Excuse me.
04:47
So I could do paying.
04:49
I can do any of these options
04:54
with the dashes,
04:56
So it's last T
04:58
Excuse me. So iced tea says, continue bringing until stopped
05:04
flash in her dash end would tell me to do a certain number before I stop.
05:11
So if I did paying
05:14
by the way
05:15
notice What I'm doing right now is I'm
05:17
calling a previously done commands. There's a command history
05:21
in the command line. So if I go up arrow,
05:26
it shows the last commands I done. So if I don't wanna have to retyped these all the time,
05:30
I could just use that.
05:38
So to them look right
05:41
dash and space count.
05:44
Let's see if it works.
05:56
Okay? Can you stop?
05:59
And sometimes
06:00
if you ever had someone complaining that the internet goes up and down
06:03
and
06:05
he wants them to verify that for you this a thought 888 is a d. N s server out at google dot com.
06:13
So if I just want to see if the internet's gonna go up and down a lot
06:16
and I should be able to do this
06:20
because dash T basically for me means till I tell you the stock
06:26
have how I remember the tea
06:28
and it'll go on forever.
06:30
So I'm going to simulate a never problem
06:34
by turning my wife was nick off
06:44
and then turn it back on.
06:57
So if you think someone has an intervention problem. You murder. We could ask them just to let this run.
07:02
And
07:03
if I hit the minimize button,
07:08
his minimized. But it's still running,
07:11
so you can ask people to let this run for half hour an hour, 10 minutes, whatever interval you want.
07:23
And when it's done and you hit control C,
07:29
it tells you how many were sent and how many were received and how many were lost.
07:33
So someone who believes they have an intermittent problem this is the way to verify that the connections actually the intermittent issue.
07:42
So those are the kinds of things you can do with these
07:45
with these tools?
07:48
Um,
07:50
another one is net stack,
07:54
literally. Never statistics.
07:57
So if I do
08:00
question mark with that
08:01
two of the most common ones that he used or dash a
08:05
and dash in.
08:09
So if I do net staff
08:13
dash pay in,
08:16
I get this list,
08:18
and this is a list of all
08:22
current connections
08:24
on this machine.
08:28
There's a TCP 1 39
08:33
is a couple of high level TCP ports going to 443
08:39
So I'm actually running some connections on this server right now on this workstation right now.
08:52
And if I wouldn't launch a uh
08:56
oh, let's say I launch
09:00
and explore.
09:03
I go to him within
09:05
that can come back here
09:07
I should be able to, And if I take the end off
09:18
and you can see it's still thinking right now,
09:28
it's actually doing name resolutions that that's where you can see the MSN bought.
09:33
Share it up
09:35
because I launched an MSN site,
09:37
Sexy connected, a Sikh E P sessions.
09:45
And people can use this to
09:46
determine whether the systems are running correctly.
09:50
Um, whether they can actually get out to the site is supposed to get out, too.
09:54
What's running on their operating system
10:07
again? If I'm tired of watching this
10:11
control, see stops it,
10:15
I can do NBT stat.
10:20
That's very that's not it. Just look up.
10:39
And when I got back Waas
10:45
I did an SF and then let's work up on google dot com.
10:48
This d n a server
10:52
went out to google dot com and found these connection addresses.
11:00
So this is the kind of ideas for useful tools you can have.
11:05
Um,
11:07
two more
11:09
nbt stat
11:16
nbt stat actually
11:18
is for net bios over TCP I p That's the N b t
11:24
that bios over TCP I p.
11:31
So you can use NBT stat in systems that run that bios
11:37
back
11:37
and many older networks
11:41
running Windows 2003 servers when just 2008 servers possibly
11:46
still run that bio stacks
11:50
and then that bio stacks can give you a lot of information about,
11:54
um,
11:54
who you're connected to.
12:07
So these are all my laptop,
12:09
and these are all my domain.
12:13
So it gives me information about my life, my laptop in domain and what connections is trying to make right now
12:20
because he wants to talk to my domain controller.
12:28
Ah, one of the trick on the I peek and big.
12:33
If we look at the options here,
12:37
there's an I p. Config. All
12:41
peeking figure we knew
12:43
and renews for getting a new d c p adapt. New D. C. P. Address.
12:52
Hi P config Release Release the connection. So that's if you want to get rid of your old I P address,
13:05
and it's another commands upon the top
13:11
for D. N s.
13:13
That's a
13:15
that's when you don't need very often. But if you ever typed this command,
13:30
every computer has a local D N s cash. And if it can't find an address because something's changed
13:37
or because, temporarily, that address was unavailable. The problem is, the host computer may remember that.
13:45
So the way you get rid of that is telling
13:46
Forced the d n s caf Get rid of that.
13:52
So now there is no Dean s cash.
13:54
And now, if something wasn't reachable, this is one of the things to try to see. You can get it to be reached home again,
14:05
and I p config
14:09
all just gives you
14:11
Maur information about existing in your face,
14:15
for instance, here
14:22
before I just got the i P address in the gateway.
14:24
Now I know that the A C B server address the d n a server is the wind servers
14:31
and other functions Mac, address of the
14:33
of my
14:35
nick.
14:37
All these other functions about
14:41
that
14:43
connection

Up Next