1
00:00:00,120 --> 00:00:05,400
So, guys, in this video, we're going to build the Ports Canada, that scan number of ports, which

2
00:00:05,400 --> 00:00:13,530
we given as an input and this is the before previous court, I have told in the banner a banner GARAVAGLIA,

3
00:00:13,830 --> 00:00:19,080
which is very simple, called We are going to connect to this and we are sending the message and building

4
00:00:19,080 --> 00:00:19,510
on this.

5
00:00:19,980 --> 00:00:27,160
So now let's build this call and that support number one, two, three, four zero.

6
00:00:27,380 --> 00:00:30,800
And that is not open in this server.

7
00:00:31,680 --> 00:00:32,900
I don't think so.

8
00:00:32,910 --> 00:00:33,610
One, two, three, four.

9
00:00:34,620 --> 00:00:39,780
So now let us run this program and check whether the port is open or not.

10
00:00:40,740 --> 00:00:42,900
If the port is open, we will get somewhere.

11
00:00:43,060 --> 00:00:43,990
The port is close.

12
00:00:44,250 --> 00:00:44,790
We don't know.

13
00:00:44,790 --> 00:00:45,690
Let's see this one.

14
00:00:51,220 --> 00:00:57,230
So it's this connection, refuser, no connection could be made because Target Machine actually refused.

15
00:00:57,640 --> 00:00:58,740
So this is an error.

16
00:00:59,200 --> 00:01:04,350
So if you got this error, it means that the spot is closed, right?

17
00:01:04,800 --> 00:01:09,190
If you've got any other burner, this port is that port is open.

18
00:01:09,940 --> 00:01:12,820
So this is the basis for port scanner.

19
00:01:13,660 --> 00:01:17,950
So now what they're going to do is we're going to ask the user input for ports.

20
00:01:20,670 --> 00:01:23,100
What is equal to input of.

21
00:01:31,360 --> 00:01:35,680
We are going to ask the user for entering of ports like.

22
00:01:38,060 --> 00:01:39,080
One 2000.

23
00:01:44,340 --> 00:01:47,150
So no user will enter like.

24
00:01:50,780 --> 00:01:53,700
One 2000, let's take the same AZAPO.

25
00:01:54,140 --> 00:01:59,780
So we need to take this one and Towser and we can do both this one and that, and we will check for

26
00:01:59,780 --> 00:02:03,810
every time whether the port is open or not.

27
00:02:04,310 --> 00:02:08,300
So let's take this one and from the spring to say.

28
00:02:12,750 --> 00:02:13,770
Starting.

29
00:02:15,490 --> 00:02:22,100
Start to come out and let's say this one starts and is equal to we need to.

30
00:02:22,480 --> 00:02:25,030
There is a matter in history that is pretty.

31
00:02:27,180 --> 00:02:32,320
And and we need to specify on what character basis I need to speak to.

32
00:02:32,610 --> 00:02:34,200
So this is a whole string.

33
00:02:38,560 --> 00:02:45,090
And if you spread the string on the basis of this hyphen, we'll get two elements because the left one

34
00:02:45,130 --> 00:02:53,700
is so the left part will be one part and right part will be one part of the business.

35
00:02:55,330 --> 00:02:59,770
So just let me let me comment on this soccer program.

36
00:03:00,550 --> 00:03:02,410
Let me show you what it will be like.

37
00:03:05,100 --> 00:03:11,410
So I'm going to say this, according to this hyphen and the first part one goes to the start and then

38
00:03:11,430 --> 00:03:12,310
goes to end.

39
00:03:13,110 --> 00:03:14,490
So let me put into this word.

40
00:03:23,930 --> 00:03:28,590
So that's one thousand miles again.

41
00:03:28,670 --> 00:03:29,700
You got that one and.

42
00:03:31,010 --> 00:03:37,340
So these are the strings we need to convert them into the numbers and statistics

43
00:03:40,010 --> 00:03:40,940
in Towcester.

44
00:03:45,210 --> 00:03:46,180
And equal to.

45
00:03:48,120 --> 00:03:54,000
So we got this one number and number as a number, so let me come to this comment.

46
00:04:00,360 --> 00:04:09,720
So now we can look for the start and end, uh, and we can just specify this, whether the port is open

47
00:04:09,720 --> 00:04:18,030
or not so I can say is far ahead in a range of

48
00:04:20,550 --> 00:04:21,470
start.

49
00:04:23,960 --> 00:04:30,410
Come our end and press one, because this is exclusive, right?

50
00:04:30,440 --> 00:04:31,520
That's what I'm going to say.

51
00:04:31,520 --> 00:04:40,730
And and so it would also include the phone number and I put the corn and I'm going to, uh, press the

52
00:04:40,730 --> 00:04:47,240
tab to good intonation so that the strength comes out of this forum so far for I in range of.

53
00:04:55,150 --> 00:05:02,950
So for I in range of one and a thousand, we are going to create the socket each and every time and

54
00:05:02,950 --> 00:05:04,420
we are connecting to this port.

55
00:05:06,070 --> 00:05:12,610
So instead of one, two, three, four, I can say I at the first iteration, the socket will be created

56
00:05:12,610 --> 00:05:16,240
and connect to this port, number one, and it will cross.

57
00:05:18,310 --> 00:05:24,940
And again, in the second iteration, we're going to put an end to the tradition, we will connect to

58
00:05:24,940 --> 00:05:27,140
the third for an extra 2000.

59
00:05:27,910 --> 00:05:31,130
So now we have connected the state.

60
00:05:31,180 --> 00:05:32,310
We have written this statement.

61
00:05:32,620 --> 00:05:34,330
What if there is any error?

62
00:05:34,600 --> 00:05:40,810
That means previously we have seen one, two, three, four, but has been closer and we got the connection,

63
00:05:40,810 --> 00:05:41,510
refusal.

64
00:05:41,770 --> 00:05:50,210
So to avoid that, we can just say we can catch that error and we can just continue that program further.

65
00:05:50,230 --> 00:05:57,290
We need to say, all right, so please just, uh, we are going to try some color.

66
00:05:57,310 --> 00:06:04,270
If there is any exception, we can, uh, write another piece of code that will handle that exception.

67
00:06:04,720 --> 00:06:14,140
So what we want to do is we want to start this and put that out and don't either, except for the color

68
00:06:14,710 --> 00:06:33,850
I can say pass or I can just print print that saying that, uh, for number four, I, i is closer because

69
00:06:34,120 --> 00:06:35,800
we got any errors.

70
00:06:35,810 --> 00:06:42,000
The actually this letter came in this time block in these three statements, then the code, the program

71
00:06:42,010 --> 00:06:44,770
that jumps from this point to this point.

72
00:06:45,580 --> 00:06:50,080
So I can say the board is Crozet not format of.

73
00:06:54,440 --> 00:07:00,140
Format of a soda pop, if you're going to want to three, four, then it will be like one, two, three,

74
00:07:00,140 --> 00:07:01,000
four is closer.

75
00:07:01,520 --> 00:07:05,290
Now we can set up three.

76
00:07:08,120 --> 00:07:21,110
Oh, I closed my eyes open, sorry for my eyes open that format format of.

77
00:07:22,160 --> 00:07:27,010
So this is the code for this spot cannot.

78
00:07:27,500 --> 00:07:32,200
And, uh, I think that's all for this, uh, Korkor.

79
00:07:32,210 --> 00:07:33,000
I think it works.

80
00:07:33,350 --> 00:07:35,970
So let me go ahead and run this one first.

81
00:07:35,990 --> 00:07:40,520
We are going to create the circuit and we are connecting to this whole number of words.

82
00:07:40,940 --> 00:07:46,490
And if we are granted, we will print this statement and we close the circuit if there is any connection

83
00:07:46,520 --> 00:07:49,130
of disparate treatment is going to be executed.

84
00:07:49,520 --> 00:07:51,050
So in order to run this one.

85
00:07:53,920 --> 00:07:56,770
So need to enter the range of what's one 2000?

86
00:08:00,930 --> 00:08:06,210
So 420 scrolls, photos, scrolls and pottery scrolls.

87
00:08:08,750 --> 00:08:13,290
So I think our, uh, what kind is working?

88
00:08:13,670 --> 00:08:16,280
So the phone number 21 is open, right?

89
00:08:16,550 --> 00:08:22,670
So we need to wait up to 21 to test whether my script is working correctly or not.

90
00:08:22,830 --> 00:08:24,100
Let's just wait and see.

91
00:08:29,880 --> 00:08:32,790
So 21, 22, 23, 24.

92
00:08:32,910 --> 00:08:33,930
So these are open.

93
00:08:39,920 --> 00:08:45,370
So you can see what pontoon is open, 22 is open, completely open, 24 is open.

94
00:08:45,500 --> 00:08:50,240
So let me first stop this one so we don't need.

95
00:08:50,840 --> 00:08:55,230
So there are so many closable, so no need to print everything across the water.

96
00:08:55,280 --> 00:08:58,500
Let me comment on this one and we can pass.

97
00:08:59,720 --> 00:09:02,050
So now let me run this program.

98
00:09:03,020 --> 00:09:06,440
Not we will not get all of the reports that you want to.

99
00:09:07,250 --> 00:09:08,240
I think that's enough.

100
00:09:09,560 --> 00:09:10,550
Does it take so much time?

101
00:09:10,760 --> 00:09:15,890
You can also implement multitracking in this button to make these sports getting ready faster.

102
00:09:48,310 --> 00:09:55,660
So as you can see, you got the door open to the door open and an expert will be telling you so it takes

103
00:09:55,660 --> 00:09:56,310
much time.

104
00:09:56,950 --> 00:10:02,590
So let's just wait and see whether we get, uh, 53 already.

105
00:10:04,860 --> 00:10:07,860
So you started digging already so much.

106
00:10:08,400 --> 00:10:13,770
You can also implement this market really to create so many threats.

107
00:10:13,790 --> 00:10:15,000
I knew you didn't.

108
00:10:15,180 --> 00:10:23,330
We can check and put our spots at a time within one segment, so it makes podcasting much faster.

109
00:10:27,580 --> 00:10:28,870
All right, that's all for this year.

110
00:10:28,900 --> 00:10:29,750
I'm going to stop now.

111
00:10:29,980 --> 00:10:31,390
It's taken so much time.

112
00:10:32,740 --> 00:10:33,730
So that's all for this year.

113
00:10:33,760 --> 00:10:35,480
I hope you have understood this concept.

114
00:10:35,620 --> 00:10:43,090
We just ask the user input to specify the range of posts and we are retreating or are the words not

115
00:10:43,120 --> 00:10:45,310
creating the socket and we are connecting to it.

116
00:10:45,460 --> 00:10:51,930
Whether there is any connection with this because of the across the board, we are just passing.

117
00:10:51,940 --> 00:10:55,150
We are just printing nothing else if we can successfully.

118
00:10:55,160 --> 00:10:56,390
That means the pot is open.

119
00:10:56,410 --> 00:10:57,760
We are building the properties of.

