WEBVTT - This file was automatically generated by VIMEO

0
00:00:08.120 --> 00:00:11.860
Hi, and welcome back to section three net Cat Penetration Test.

1
00:00:12.640 --> 00:00:16.740
In this video, we're going to talk about packet sniffing and net cat.

2
00:00:17.400 --> 00:00:21.660
You have a better understand about all the information received about the

3
00:00:21.660 --> 00:00:25.180
methods of enumeration, like scanning and Benny grabbing.

4
00:00:25.690 --> 00:00:28.820
It's important to go deeper and examine the packet level.

5
00:00:29.640 --> 00:00:34.310
There are numerous services for all operating system that do not exchange

6
00:00:34.570 --> 00:00:37.350
as key text banner. Instead,

7
00:00:37.650 --> 00:00:40.110
the communication is in binary digit,

8
00:00:40.330 --> 00:00:44.630
and the response has to be in the same format for this kind of operating.

9
00:00:45.010 --> 00:00:49.590
The use of a packet sniffer will help to decoding this type of messenger.

10
00:00:50.210 --> 00:00:54.960
So here in my cardio Linux environment, let's do a test and check the,

11
00:00:55.060 --> 00:00:57.480
the packet formation. For our test,

12
00:00:57.540 --> 00:01:02.240
we communicate in a net views services that is listened for

13
00:01:02.240 --> 00:01:06.120
incoming connection on T C P port 1 3 9.

14
00:01:06.620 --> 00:01:08.040
Almost a connections made.

15
00:01:08.340 --> 00:01:12.680
The server will wait for a binary command for a client and react accordingly.

16
00:01:13.360 --> 00:01:17.780
Net views is the account for network basic input output system,

17
00:01:18.240 --> 00:01:23.100
and is a basic protocol used for transmitting data between two computers

18
00:01:23.160 --> 00:01:24.580
on the same network segment.

19
00:01:25.240 --> 00:01:29.460
It was used as the four windows file sharing and printer sharing.

20
00:01:30.230 --> 00:01:35.090
So in my network here, I have a Windows mean net views started and open it.

21
00:01:36.030 --> 00:01:39.950
So let's start our test. First of all,

22
00:01:40.030 --> 00:01:41.350
I open at polyol

23
00:01:42.850 --> 00:01:46.330
and I'll connect me this, uh,

24
00:01:46.600 --> 00:01:49.530
service or I use netcat

25
00:01:51.170 --> 00:01:54.470
and this is the, the IP of my, my windows

26
00:01:56.640 --> 00:02:01.040
that is using and open our net use, uh, connection.

27
00:02:02.380 --> 00:02:06.420
So first let me use, uh,

28
00:02:06.600 --> 00:02:11.540
thefor mode and this level I don't have any details because I don't use the the

29
00:02:11.540 --> 00:02:14.270
dash V. Okay, let me use

30
00:02:15.920 --> 00:02:20.760
dash V to get more information. Dash

31
00:02:23.490 --> 00:02:28.260
bv. Okay, so now I have more details about the connection.

32
00:02:28.280 --> 00:02:31.540
So this is the ip, the host, this is the the port,

33
00:02:31.880 --> 00:02:35.060
and this is the service nets. S s n,

34
00:02:36.410 --> 00:02:38.830
the n b uh, SS, s n,

35
00:02:38.900 --> 00:02:43.590
that that's mean net BES session service. And the connection is open.

36
00:02:44.010 --> 00:02:47.350
And now I will insert a messenger here,

37
00:02:47.610 --> 00:02:51.190
but I want to verify the kind of response. It's so long.

38
00:02:51.370 --> 00:02:55.470
So zero packet was sent and zero packet was received.

39
00:02:55.470 --> 00:02:57.060
It let me, uh,

40
00:02:57.130 --> 00:03:00.740
execute again and put a messenger.

41
00:03:02.300 --> 00:03:05.940
So look, I was able to send a messenger. Okay,

42
00:03:06.570 --> 00:03:11.500
parting the number of characters. I received a response here.

43
00:03:12.360 --> 00:03:16.450
This is the confirmation, but was not comprehensive to us.

44
00:03:17.080 --> 00:03:21.530
Okay? So, uh, the meaning of using, for example,

45
00:03:21.720 --> 00:03:22.730
another tool,

46
00:03:23.160 --> 00:03:27.810
APEC filter APEC in this needer to get this messenger

47
00:03:28.270 --> 00:03:31.770
and, uh, work about the, the format about,

48
00:03:31.980 --> 00:03:36.630
about the decoding of the, of messenger. This messenger, okay.

49
00:03:36.930 --> 00:03:38.590
An option here is to use,

50
00:03:39.720 --> 00:03:44.600
I use a tool that you use is a binary, is a XMO tool. Uh,

51
00:03:44.630 --> 00:03:48.280
able to, to get more details about this. This me, for example,

52
00:03:49.070 --> 00:03:53.330
I'll put a command here and check the result. For example,

53
00:03:54.290 --> 00:03:59.200
I use Echo messenger, uh,

54
00:03:59.400 --> 00:04:02.680
a command with the messenger. When, when you text messenger,

55
00:04:02.950 --> 00:04:07.570
I'll use a pipe to use this command.

56
00:04:07.670 --> 00:04:11.660
In the left will be, uh, input for the command in the right,

57
00:04:12.120 --> 00:04:13.940
so will be my net cat command.

58
00:04:17.720 --> 00:04:20.450
Okay? So the, the messenger, hello,

59
00:04:20.450 --> 00:04:25.170
there will be input for the connection that we made for

60
00:04:25.240 --> 00:04:29.610
this host and this ip. And the result of all this,

61
00:04:29.930 --> 00:04:33.090
I will put another pipe that will be, uh,

62
00:04:33.300 --> 00:04:38.210
input for another comment will be X X D X X DEXA XMO

63
00:04:38.560 --> 00:04:40.730
text mode display.

64
00:04:41.150 --> 00:04:46.090
So I will able to see the ax mode of the input and input

65
00:04:46.160 --> 00:04:51.130
will be the result of the connection made with this hosting n i

66
00:04:51.170 --> 00:04:52.850
p. Okay. So that's it.

67
00:04:53.230 --> 00:04:57.530
Now look the difference of details of the response here,

68
00:04:57.590 --> 00:05:02.490
we have no, no visible, uh, result here. We,

69
00:05:02.510 --> 00:05:05.650
we have more information, okay? But we know, uh,

70
00:05:05.650 --> 00:05:09.570
messenger send or receive it here we have, we,

71
00:05:09.570 --> 00:05:14.290
we send our messenger here and we receive it, but was not comprehensive to us.

72
00:05:15.520 --> 00:05:16.860
Now in this comment here,

73
00:05:17.340 --> 00:05:21.360
I receive the message was to receive it and, uh,

74
00:05:21.620 --> 00:05:26.600
we coordin for this, this common here X X D, this tool. We are all, uh,

75
00:05:26.600 --> 00:05:30.760
available to, we're able to get the messenger.

76
00:05:31.060 --> 00:05:35.780
So this message is like this, uh, this is the, the, the characters,

77
00:05:37.780 --> 00:05:42.190
okay? And to have more comprehension about this,

78
00:05:42.330 --> 00:05:43.950
we are use a packet sniffer,

79
00:05:44.290 --> 00:05:48.750
in this case white shark to get a more dictal, uh, in a high level.

80
00:05:49.420 --> 00:05:53.510
Okay? And that white shark is able to get this, this, this packet.

81
00:05:54.330 --> 00:05:58.280
We will see the packet that was, was a request and a response. Okay?

82
00:05:58.780 --> 00:06:02.120
And we see a more details about this information.

83
00:06:02.580 --> 00:06:07.360
So let me start wire shark, I'll start wire shark.

84
00:06:08.020 --> 00:06:12.560
Listen for our communication here like this.

85
00:06:13.460 --> 00:06:16.240
And I'll do again the messenger, the, the comment.

86
00:06:18.740 --> 00:06:19.573
Okay,

87
00:06:20.710 --> 00:06:24.970
let me stop here and let me verify that's here.

88
00:06:25.600 --> 00:06:30.090
This was the protocol. N B S S, that's being net build session service.

89
00:06:31.220 --> 00:06:34.600
And this is my messenger. Hello there. Okay,

90
00:06:36.000 --> 00:06:40.730
this is all the layers. D, C P ip, okay?

91
00:06:41.390 --> 00:06:45.690
And this is the protocol with the machine. Have there,

92
00:06:46.640 --> 00:06:49.580
and, and this is our response from the server.

93
00:06:50.720 --> 00:06:55.390
So we have the layers here, D, C, P and the, the,

94
00:06:55.390 --> 00:06:59.750
the layer, the, the package as s n like this.

95
00:07:00.690 --> 00:07:04.340
And this was the package here, okay? Is the same here,

96
00:07:06.130 --> 00:07:10.220
like this. So this is all the, in this case was, uh,

97
00:07:11.630 --> 00:07:13.310
a messenger error. Okay?

98
00:07:14.250 --> 00:07:17.860
Eight F because the,

99
00:07:18.080 --> 00:07:22.900
the net views is rating for specific protocol, uh, is a, a specific, uh,

100
00:07:22.900 --> 00:07:26.700
messenger common. So we send a regular string,

101
00:07:27.200 --> 00:07:31.140
but we have all the, the procedures to send and to communicate.

102
00:07:31.880 --> 00:07:34.540
But the response was, uh, error.

103
00:07:34.960 --> 00:07:37.060
But using a package sniffer,

104
00:07:37.060 --> 00:07:40.140
like while shark was able to get,

105
00:07:41.610 --> 00:07:44.360
first of all to see the communication here

106
00:07:46.110 --> 00:07:49.210
and to see again, uh, all the,

107
00:07:49.270 --> 00:07:52.870
the format of this protocol, okay?

108
00:07:53.410 --> 00:07:57.550
Was example for this, uh, three byte. Here was a length here.

109
00:07:58.450 --> 00:08:03.350
Uh, N H P is AI specific error messenger code, a whole code.

110
00:08:04.280 --> 00:08:09.260
So the point here is using a packet sniffer and using ACA two,

111
00:08:10.200 --> 00:08:13.740
we have more details about all the information,

112
00:08:13.880 --> 00:08:18.300
all the package that we are trying to, to get here.

113
00:08:18.560 --> 00:08:23.540
And this is very interesting because this give us to us more information,

114
00:08:24.160 --> 00:08:27.740
uh, and adding our scanning or uh, be grabbing.

115
00:08:28.920 --> 00:08:33.380
In this video we saw an an introduction about packet sniffing and netcat.

116
00:08:34.000 --> 00:08:38.740
The next session, we'll take a look about transferring data with Netcat.

117
00:08:39.340 --> 00:08:40.300
I hope to see you there.
