1
00:00:00,960 --> 00:00:06,580
So, guys, in this video, we're going to write the reversal of code in this python.

2
00:00:06,600 --> 00:00:10,620
So this is similar to this previous video that is Krenzler videos.

3
00:00:10,950 --> 00:00:16,830
And what we have done is we have received the message from the client and then we are pointing out to

4
00:00:16,830 --> 00:00:20,820
the console and then we are just sending another input.

5
00:00:21,660 --> 00:00:24,540
And again, we are receiving so we are doing in this a loop.

6
00:00:25,260 --> 00:00:28,650
So now what we're going to do is we are going to receive the same message.

7
00:00:28,860 --> 00:00:35,970
But the message, we will receive a comment so we can treat it as a normal message and we will execute

8
00:00:35,970 --> 00:00:39,810
that message and we will send that output to the client.

9
00:00:39,990 --> 00:00:44,790
So that is the financial sort of sorry, I just said the.

10
00:00:45,360 --> 00:00:46,230
So it's a Bindiya.

11
00:00:46,250 --> 00:00:49,700
You can deliver these functionalities together.

12
00:00:50,100 --> 00:00:54,160
So we will the brochure in the studio for now see the potential.

13
00:00:54,540 --> 00:00:58,640
So I have already covid discovered the same server in here.

14
00:00:59,160 --> 00:01:01,000
Sorry for the naming convention.

15
00:01:02,370 --> 00:01:10,170
So here's what we're going to do, is we are just receiving this message and if message is not equal

16
00:01:10,170 --> 00:01:13,680
to quit and then we are printing it and taking other input and sending it.

17
00:01:14,190 --> 00:01:17,500
So you need to import all this module.

18
00:01:18,030 --> 00:01:24,060
So this all this module contains a function card system and we will execute we can execute.

19
00:01:24,060 --> 00:01:27,340
The system commands, uh, in the Python script.

20
00:01:28,530 --> 00:01:31,340
So we have received this message right now.

21
00:01:31,350 --> 00:01:36,120
What we want to do is, uh, we can say it is.

22
00:01:38,360 --> 00:01:44,870
So before showing you this is the system, I will show you the theory and what we're going to do is

23
00:01:44,870 --> 00:01:53,270
we are receiving this message and executing that message as command and then putting it into the lock.

24
00:01:54,410 --> 00:02:00,950
So just just a simple text file and we will send open the text for and read the contents and send it

25
00:02:00,950 --> 00:02:01,580
to the screen.

26
00:02:01,910 --> 00:02:05,020
So this oyster's system cannot have a pipes.

27
00:02:05,030 --> 00:02:07,370
So in reality, uh.

28
00:02:10,560 --> 00:02:16,270
Like in Linux, we cannot send it as it normally was already available.

29
00:02:16,410 --> 00:02:18,120
We cannot store it as a variable.

30
00:02:18,390 --> 00:02:24,630
So what we're going to do is we are going to put the, uh, commensal put into this picture and we will

31
00:02:24,630 --> 00:02:28,820
read the contents of the text file and we will send those contents to the client.

32
00:02:30,150 --> 00:02:39,370
So now what we're going to do is first let me say we have got the message right and that's happened.

33
00:02:40,770 --> 00:02:46,620
So this offender will add, uh, append to the command.

34
00:02:46,650 --> 00:02:55,260
So what we're gonna do is we're going to say, uh, greater than that is, uh, all putting into this

35
00:02:55,440 --> 00:02:56,640
log, not the.

36
00:03:06,490 --> 00:03:14,740
So I like to think that, you know, so if I say less comment now, our comment will be less relevant

37
00:03:14,770 --> 00:03:23,630
laughter because we need to appeal to the luck that we need to redirect into relativity.

38
00:03:23,890 --> 00:03:25,210
So I just reiterate this.

39
00:03:26,230 --> 00:03:34,090
If you want to redirect output and error to greater than average one, which we heard on from reenacts

40
00:03:34,090 --> 00:03:40,570
essentialist, we are reiterating the output, the study error in the studio output that is going into

41
00:03:40,570 --> 00:03:40,780
this.

42
00:03:42,340 --> 00:03:47,650
Not while the message is equal to most.

43
00:03:47,690 --> 00:03:49,870
Sorry, I see this as a comment.

44
00:03:50,080 --> 00:03:53,990
C and D equals two message press.

45
00:03:56,320 --> 00:03:58,480
So now whole comment will be like this.

46
00:03:58,480 --> 00:04:01,100
If you send Aldus, it will be a great event.

47
00:04:01,330 --> 00:04:05,470
But remember to put the space at the starting of this happened.

48
00:04:06,430 --> 00:04:08,680
If you and who you are, then it will be who am I?

49
00:04:10,360 --> 00:04:14,080
So this one and it will we need to execute this one or.

50
00:04:14,080 --> 00:04:25,120
Yes, that system of this one system function system ACMD and this line execute this our command, and

51
00:04:25,120 --> 00:04:33,910
it will restore the output and we can simply read those contents and then we can just send it as a normal

52
00:04:33,910 --> 00:04:38,390
with a string if not open off at all.

53
00:04:39,970 --> 00:04:41,980
So this round potentially will be created.

54
00:04:42,190 --> 00:04:50,590
The folder where your Python script is there and I use read only very recently format because we don't

55
00:04:50,590 --> 00:04:51,430
need right access.

56
00:04:51,760 --> 00:04:57,100
Again, just message the to you have not read.

57
00:05:00,450 --> 00:05:08,700
So this input, so we have got the output of this product, and I can say of Duclos.

58
00:05:12,070 --> 00:05:19,410
So each time we are executing the commands, it will be, uh, related to the wrong direction for only

59
00:05:19,420 --> 00:05:24,870
one command reiterated, if you say greater and greater than the output will be suspended.

60
00:05:24,940 --> 00:05:29,360
But we do not need that because we will execute so many comments and the output will be so much more.

61
00:05:29,860 --> 00:05:33,220
So I think this is all the code that is required.

62
00:05:33,550 --> 00:05:41,890
And we send execute the command and we are putting it out there and we will open it in a format and

63
00:05:41,890 --> 00:05:44,200
we read the contents and it will send us content.

64
00:05:44,240 --> 00:05:51,380
OK, the thing now in Oakland, client, the same exact quote of this previous video screen and stuff,

65
00:05:51,460 --> 00:05:59,080
I can see something enter command so that we will have much more idea of what we need to enter.

66
00:06:03,370 --> 00:06:05,690
So now I'm going to run this server.

67
00:06:07,720 --> 00:06:10,930
So let's go to the screen door and open it.

68
00:06:11,470 --> 00:06:14,140
I did so myself.

69
00:06:14,150 --> 00:06:14,770
What is going on?

70
00:06:15,070 --> 00:06:16,650
Let's run this up.

71
00:06:16,750 --> 00:06:18,190
But by then, great.

72
00:06:18,610 --> 00:06:19,240
And it is.

73
00:06:19,930 --> 00:06:23,580
Now, if I said, oh, who am I?

74
00:06:31,640 --> 00:06:37,640
Already said Bill Gates last executed comment saw the 30 year.

75
00:06:40,810 --> 00:06:45,150
So this output is building here, maybe we need to modify some core.

76
00:06:48,300 --> 00:06:51,720
OK, we are going to printing here in order to print this.

77
00:06:56,880 --> 00:06:59,250
So first, let me just execute this.

78
00:07:02,920 --> 00:07:04,090
Uh, DeSaulnier.

79
00:07:06,610 --> 00:07:17,290
Wait for this one, so me run the ground script and I need to send a 30 year low, as you can see,

80
00:07:18,470 --> 00:07:22,570
uh, we have this, uh, that you can see who my.

81
00:07:26,690 --> 00:07:29,270
So we are not getting a studio.

82
00:07:32,030 --> 00:07:33,630
So we need to fix this error.

83
00:07:34,240 --> 00:07:34,540
OK.

84
00:07:46,300 --> 00:07:52,660
So let me Google for a study out there to witness.

85
00:08:00,150 --> 00:08:09,990
All right, this one is a great event to attend to, we are all putting a little bit of error to with

86
00:08:10,020 --> 00:08:11,520
all this going on right now.

87
00:08:11,530 --> 00:08:17,610
So I want to share space to greater than one person one.

88
00:08:18,300 --> 00:08:24,510
So I'll put will go into the next one and also put Urgo exhibit output at the script.

89
00:08:24,530 --> 00:08:27,690
Now, let's go and run this module.

90
00:08:30,290 --> 00:08:39,980
And if they are and we can see here now, you can read the comments, we are might and you can also

91
00:08:39,980 --> 00:08:45,270
give the comments which we which are not supported by those materials.

92
00:08:45,620 --> 00:08:47,420
And we also got the error.

93
00:08:51,970 --> 00:08:54,310
When I was soil output, the username.

94
00:09:00,990 --> 00:09:11,460
So we got the U.S., so this is how you create the potential now we will see that the same process in

95
00:09:11,640 --> 00:09:14,850
the next operating system that's going to discourage.

96
00:09:21,640 --> 00:09:28,510
So we already have the server and that's the first check, whether it's correct or not.

97
00:09:32,960 --> 00:09:34,020
Right in the next.

98
00:09:34,840 --> 00:09:45,000
So getting it right, so let's go ahead and run this script by three four, not the version of that.

99
00:09:45,050 --> 00:09:47,530
You know, let me open a new terminal.

100
00:09:59,120 --> 00:10:05,810
So now we are going to run this ground and I will say, unless and we have got this, unless unless

101
00:10:06,470 --> 00:10:09,940
we initiate, we will get the results also.

102
00:10:10,500 --> 00:10:11,850
It is minus.

103
00:10:13,100 --> 00:10:21,410
So I thought to show you another module that is process, but it's very complicated when passing the

104
00:10:21,410 --> 00:10:21,980
arguments.

105
00:10:22,160 --> 00:10:27,890
So if you pass, unless it is absolutely fine, if you pass, we are absolutely fine.

106
00:10:28,310 --> 00:10:33,020
If you pass and you go in without any arguments, it's a very fine in the slow process.

107
00:10:33,020 --> 00:10:39,980
But the things get complicated when you are passing with arguments, so it takes you to pass the list

108
00:10:39,980 --> 00:10:44,940
and also combined with more than three arguments, did not even work at all.

109
00:10:44,960 --> 00:10:49,580
So it just keeps me up sending the error.

110
00:10:49,970 --> 00:10:52,550
So that's why I choose this voice module.

111
00:10:52,550 --> 00:10:56,600
Voice module is the old one even in Python.

112
00:10:56,840 --> 00:10:58,030
It has the support.

113
00:10:58,400 --> 00:11:03,530
So I don't know whether it's subprocesses in Python to or not, but it's about setting.

114
00:11:03,540 --> 00:11:12,350
So I will write on this voice module only because we can direct the output put into the file and we

115
00:11:12,350 --> 00:11:13,250
will read the content.

116
00:11:13,400 --> 00:11:17,900
So this is very simple and neat Python script to generate the potential.

117
00:11:22,530 --> 00:11:31,770
So I think that surveillance video and we can reverse these inputs and outputs to make this as a reversal.

118
00:11:32,400 --> 00:11:38,820
So in this case, the server is going on a listening and we are connecting to this server and asking

119
00:11:38,820 --> 00:11:40,190
for a command output.

120
00:11:40,380 --> 00:11:43,560
So this is called Binzel because we are connecting to that.

121
00:11:43,830 --> 00:11:52,290
So in the next, we will see how the river connects back to us and we can execute the comments.

