1
00:00:01,150 --> 00:00:07,560
In Linux terminology, there was an application that runs in the background waiting for you to use it.

2
00:00:08,040 --> 00:00:11,130
So your Linux system has dozens of services pre-installed.

3
00:00:11,730 --> 00:00:19,620
Of this, the most known, most well-known is the big you choose a punch web server, which is used

4
00:00:19,860 --> 00:00:22,650
for creating, managing and deploying web servers.

5
00:00:22,950 --> 00:00:27,420
But there are so many more for the purposes of this lecture.

6
00:00:27,850 --> 00:00:28,330
Um.

7
00:00:30,930 --> 00:00:39,720
Uh, is of this lecture on services I have selected just for that are, uh, of particular importance

8
00:00:39,720 --> 00:00:43,500
to the hacker Apache Web server open access.

9
00:00:44,400 --> 00:00:48,730
Uh, my scale and posterior escrow for serious, you know.

10
00:00:49,170 --> 00:00:55,200
So in this lecture, you will learn how to set up a web server, uh, with, uh, physical aspi with

11
00:00:55,200 --> 00:01:02,620
open storage and access with the my skill set in storage or hacking information with PostgreSQL.

12
00:01:03,240 --> 00:01:05,760
So starting, stopping and restarting services.

13
00:01:06,210 --> 00:01:11,850
So before we begin to work with these, uh, for critical, uh, circle our services, let's start by

14
00:01:11,850 --> 00:01:15,660
examining how to start, stop and restore services in Linux.

15
00:01:16,260 --> 00:01:22,080
Some services come as stopped and start with a graphical user interface and color Linux, much as you

16
00:01:22,080 --> 00:01:28,770
will, uh, on an operating system like Windows or Mac Home, where some services require, uh, use

17
00:01:28,770 --> 00:01:31,450
of the command line, which we will look at here.

18
00:01:31,470 --> 00:01:35,580
So here and here is the basic syntax of service this year.

19
00:01:35,580 --> 00:01:38,640
Service, uh, server is here.

20
00:01:39,120 --> 00:01:40,200
Serve its name.

21
00:01:41,920 --> 00:01:47,770
Name, start, uh, start, stop or restart.

22
00:01:49,170 --> 00:01:49,560
Yes.

23
00:01:51,390 --> 00:01:59,900
So this is the basic syntax of managing services who start the epic two server web server or hashed

24
00:01:59,910 --> 00:02:00,960
ITBP servers.

25
00:02:01,500 --> 00:02:05,340
You will enter here server service here.

26
00:02:05,790 --> 00:02:07,830
Apache2 to start.

27
00:02:10,360 --> 00:02:17,920
And enter your password, carry a password here to stop the server override service.

28
00:02:19,460 --> 00:02:20,410
Perpetual.

29
00:02:22,230 --> 00:02:22,680
Stop.

30
00:02:24,810 --> 00:02:29,340
Like that and enter your comment, you password, actually.

31
00:02:30,360 --> 00:02:35,640
So usually when you make a configuration change to an application or service by altering its plaintext

32
00:02:35,640 --> 00:02:42,570
configuration file, you need to restart the service to capture, um, the new configuration.

33
00:02:42,900 --> 00:02:44,400
He'll make that risk card.

34
00:02:44,670 --> 00:02:45,720
Here it is.

35
00:02:45,720 --> 00:02:47,970
You will enter here this comment.

36
00:02:48,390 --> 00:02:54,630
So not now that you understand how to start, stop and restart services from the command line.

37
00:02:54,810 --> 00:03:01,020
So let's move onto the four more subcritical critical linked services to hackers.

38
00:03:01,560 --> 00:03:05,040
So let's create and how should you be a server which appear to have server?

39
00:03:05,490 --> 00:03:10,350
So the official web server is probably the most commonly used service on the Linux systems.

40
00:03:10,890 --> 00:03:15,310
So a pitch is formed over 60 percent of the world's web servers.

41
00:03:15,310 --> 00:03:22,230
So any self-respecting Linux administrator should be familiar with it as they could aspiring to hack

42
00:03:22,230 --> 00:03:22,860
web sites.

43
00:03:23,190 --> 00:03:28,980
It's critical to understand the inner workings of a patch, websites and the bacon database of these

44
00:03:28,980 --> 00:03:29,460
sites.

45
00:03:29,940 --> 00:03:38,400
So you can also, uh, you can also use a patch to set up your own server from which you called serve,

46
00:03:38,520 --> 00:03:46,560
um, malware via cross-site scripting accesses to anyone who visits your site or you call cloning websites

47
00:03:46,560 --> 00:03:49,250
and redirect traffic to your site.

48
00:03:49,260 --> 00:03:52,000
The abuse of the domain name system DNS.

49
00:03:52,710 --> 00:03:58,170
So in either of these cases, your basic knowledge is of a pitch is required.

50
00:03:58,530 --> 00:04:03,110
So let's start and batch if you have a color, uh, running on your system.

51
00:04:03,450 --> 00:04:04,860
Apache is already installed.

52
00:04:05,190 --> 00:04:09,150
So many other Linux distros have it installed by default as well.

53
00:04:09,420 --> 00:04:15,330
If you don't have a patch installed, you can download and install it from the repositories by entering,

54
00:04:15,660 --> 00:04:17,850
uh, sudo aptitude.

55
00:04:17,850 --> 00:04:24,600
Install and install a patch to and enter your password here.

56
00:04:25,140 --> 00:04:31,910
As you can see here, there's a I have an update to do, so I will update here.

57
00:04:31,920 --> 00:04:33,240
It's actually not.

58
00:04:33,240 --> 00:04:37,710
A big update is, uh, 76 kilobytes, uh, update.

59
00:04:37,920 --> 00:04:41,010
So it will, uh, complete now.

60
00:04:43,090 --> 00:04:43,450
So.

61
00:04:45,160 --> 00:04:52,390
Uh, the Apache Web server is often associated with the my school database, which we will look at in

62
00:04:52,390 --> 00:04:53,440
the next lectures.

63
00:04:53,860 --> 00:05:03,340
And these two services are very often paired with a scripting language such as Pear or IBM to develop

64
00:05:03,340 --> 00:05:04,300
web applications.

65
00:05:04,600 --> 00:05:12,280
This combinations of Linux, Apache, Uh, Maya, Skill, Linux and Pure Peril forms a powerful and

66
00:05:12,280 --> 00:05:19,330
robust platform for the development and deployment of web based applications known as like a ampm.

67
00:05:19,870 --> 00:05:26,200
So these are the, uh, most widely used tools for developing websites in the Linux fold, and they

68
00:05:26,200 --> 00:05:28,900
are very popular in the Microsoft tool.

69
00:05:29,350 --> 00:05:34,720
So, uh, where they are generally referred to as double ampere.

70
00:05:35,050 --> 00:05:39,790
Uh uh, with the We Stand W for standing for windows.

71
00:05:40,210 --> 00:05:43,690
So the first step, of course, is to start a patch.

72
00:05:43,690 --> 00:05:44,170
-- on.

73
00:05:44,170 --> 00:05:45,370
So let's get started.

74
00:05:45,820 --> 00:05:49,690
So in Kaleem Co, two applications here.

75
00:05:50,230 --> 00:05:52,210
Um, services here.

76
00:05:54,310 --> 00:05:56,110
OK, services.

77
00:05:57,450 --> 00:06:05,880
Here and typically, yeah, or we can just, uh, accomplish the same from the common line by entering,

78
00:06:06,180 --> 00:06:10,710
uh, services, uh, attached to actually.

79
00:06:12,480 --> 00:06:18,240
Ross, yes, this service attached to start here.

80
00:06:18,690 --> 00:06:25,270
So we start a virtual service, know that the pitch is running, it should be able to serve up actually

81
00:06:25,320 --> 00:06:29,490
its intercom on there, so it should be able to serve up its default web page.

82
00:06:29,490 --> 00:06:31,950
So open our web browser here.

83
00:06:32,150 --> 00:06:41,190
Yeah, it's uh, actually as Firefox, Mozilla, Firefox and enter the localhost domain or localhost

84
00:06:41,190 --> 00:06:42,630
domain here.

85
00:06:45,300 --> 00:06:48,150
Here, uh, local or state here.

86
00:06:48,720 --> 00:06:59,020
And this you can see here, our local host is working for a local who is the same as 127.0.0.1 here.

87
00:06:59,040 --> 00:07:07,230
As you can see here, there's, uh, redirecting to the same, um, web page because we just started

88
00:07:07,230 --> 00:07:11,910
our special, uh, web server here as you can see our pitch to to be in default page.

89
00:07:12,210 --> 00:07:18,180
So this is the default page used to test the correct operation of the Pitch Tool server after installation

90
00:07:18,360 --> 00:07:19,530
on Debian systems.

91
00:07:19,980 --> 00:07:25,710
If you can read this message, it means that the Apache, uh, Charlotte Observer installed at this

92
00:07:25,710 --> 00:07:27,840
site and is working properly.

93
00:07:29,700 --> 00:07:40,470
So let's edit the index hushed image file, a patch default web page is them is at see the Verge Double

94
00:07:40,470 --> 00:07:44,400
W W Hashed email and cached the email here.

95
00:07:44,400 --> 00:07:46,510
And as you can see, there's an index of steam.

96
00:07:46,530 --> 00:07:54,360
So this is default web page we see in here so you can edit the unnecessary email file to serve up whatever

97
00:07:54,360 --> 00:07:55,460
information you want.

98
00:07:55,470 --> 00:07:57,060
So let's create our own here.

99
00:07:57,360 --> 00:07:58,740
So pseudo here.

100
00:07:59,520 --> 00:08:05,160
Actually, we don't need to the right mouse pad index that harsh team.

101
00:08:06,920 --> 00:08:09,050
As you can see, we opened our eyes.

102
00:08:09,320 --> 00:08:14,600
It's $3 million, so we don't operate normally when you write this file, so.

103
00:08:16,200 --> 00:08:17,250
Um, so.

104
00:08:18,840 --> 00:08:24,180
Not at the default, the pitcher has exactly the text that was displayed when we opened our browser

105
00:08:24,390 --> 00:08:25,170
to localhost.

106
00:08:25,380 --> 00:08:29,250
But in the extreme of form of this, you can see it appears to default.

107
00:08:29,590 --> 00:08:30,870
Page four See it!

108
00:08:32,900 --> 00:08:33,260
So.

109
00:08:35,340 --> 00:08:42,480
All we need to do is to edit or replace this file, to have our web server display the information we

110
00:08:42,480 --> 00:08:43,380
want, for example.

111
00:08:43,680 --> 00:08:44,660
We can change it.

112
00:08:44,940 --> 00:08:46,300
We will change it completely.

113
00:08:46,340 --> 00:08:55,620
But for example purposes, I will change it, for example, um uh, hacking, uh, training course.

114
00:08:56,160 --> 00:09:02,670
Uh, take that chrome, for example, that Chrome and let's restart our server here.

115
00:09:03,890 --> 00:09:04,410
Make sure.

116
00:09:08,390 --> 00:09:10,670
Making training, as you can see it here in training.

117
00:09:11,390 --> 00:09:17,840
Uh, code-switching title of it, which is unless change inside of latex actually as well.

118
00:09:18,650 --> 00:09:19,580
Page the.

119
00:09:22,090 --> 00:09:22,990
So here.

120
00:09:24,120 --> 00:09:24,660
Here.

121
00:09:27,600 --> 00:09:29,250
And tears well.

122
00:09:32,030 --> 00:09:34,520
So let's check ups, I'm sorry.

123
00:09:40,220 --> 00:09:40,520
Here.

124
00:09:41,790 --> 00:09:42,540
So now.

125
00:09:44,070 --> 00:09:46,800
We can change, actually.

126
00:09:49,610 --> 00:09:55,100
Here, that sentiment and as you can see, her acting training course, technical come here.

127
00:09:55,520 --> 00:09:57,730
We changed it here.

128
00:09:57,740 --> 00:10:02,990
So let's add the latest victim of file and add an existing file.

129
00:10:03,260 --> 00:10:09,260
No, that we have this web server up and running at the index extremophile open so we can add whatever

130
00:10:09,860 --> 00:10:13,400
text we like to the web server to serve up.

131
00:10:13,910 --> 00:10:16,700
So we will create some simple entertainment blogs.

132
00:10:17,090 --> 00:10:19,190
So let's create this page here.

133
00:10:19,640 --> 00:10:25,160
Um, with the latest here and uh, let's open our tech search.

134
00:10:25,160 --> 00:10:29,750
So Teemo, uh, by the tank here.

135
00:10:29,750 --> 00:10:40,320
By this is actually increase it a the remote by the body and the list calls it your buddy here, uh,

136
00:10:40,380 --> 00:10:42,890
clothes or you other team as well.

137
00:10:43,490 --> 00:10:47,390
So here it's of either one.

138
00:10:47,660 --> 00:10:48,860
Uh, here here.

139
00:10:48,860 --> 00:10:49,430
And.

140
00:10:51,180 --> 00:10:57,420
We're actually in the wrong here, and he was born here, so.

141
00:11:00,410 --> 00:11:02,870
So, for example, uh.

142
00:11:04,950 --> 00:11:13,830
Take pills is, uh, taking it's best to learn from.

143
00:11:14,070 --> 00:11:16,050
Take bins here, for example.

144
00:11:16,530 --> 00:11:17,060
So, um.

145
00:11:19,940 --> 00:11:22,070
For example, this paragraph here as well.

146
00:11:24,010 --> 00:11:25,220
Up here.

147
00:11:27,110 --> 00:11:30,950
If you want to learn hacking.

148
00:11:31,960 --> 00:11:41,680
Uh, tech is not calling you to me, but come here, for example, and let's add another, uh, paragraph,

149
00:11:42,040 --> 00:11:43,390
uh, paragraph here.

150
00:11:43,810 --> 00:11:44,410
So.

151
00:11:46,290 --> 00:11:46,890
Uh.

152
00:11:48,400 --> 00:11:56,700
You are the you are in the best place to learn something.

153
00:11:58,630 --> 00:12:01,210
Or hacking spatial.

154
00:12:02,680 --> 00:12:03,010
Here.

155
00:12:04,410 --> 00:12:10,800
So once you enter the text, exactly or you can change, uh, whatever you want here.

156
00:12:11,680 --> 00:12:18,540
Uh, save file here by, uh, control plus save is, uh, clicking in keyboard here.

157
00:12:18,540 --> 00:12:22,380
Or you can save you're just clicking on this here.

158
00:12:22,680 --> 00:12:25,650
So let's restart it unless you can see here.

159
00:12:26,340 --> 00:12:28,230
Um, see what happens?

160
00:12:28,470 --> 00:12:34,950
So then we get your browser runs again and enter, uh, localhost or your IP and look alive here this

161
00:12:34,950 --> 00:12:35,190
year.

162
00:12:35,190 --> 00:12:37,830
As you can see here, we change it.

163
00:12:38,010 --> 00:12:40,680
So, um, now let's.

164
00:12:42,910 --> 00:12:45,550
To learn, uh, how open is to.

165
00:12:46,240 --> 00:12:48,220
And um.

166
00:12:54,050 --> 00:12:59,570
Something here, for example, my escape less well here and other information here.

167
00:13:06,100 --> 00:13:11,410
So and in later lectures, there was a creator Raspberry Pi application as well.

168
00:13:12,220 --> 00:13:15,340
So our lecture is done here.

169
00:13:15,520 --> 00:13:20,850
So Linux has no services that are in the back run until the user needs them.

170
00:13:20,920 --> 00:13:28,140
So the Apache Web server is the most widely used, but a hacker for the familiar with my eskdale a situation

171
00:13:28,210 --> 00:13:31,420
post a squirrel here for various tasks, too.

172
00:13:31,840 --> 00:13:38,560
So you will learn more more and more MySchool about my skills and Apache server here.

173
00:13:39,070 --> 00:13:43,570
So this is just this wasn't just basic example here.

174
00:13:44,050 --> 00:13:49,900
So in this lecture, we cover the absolute basics of getting started with these services.

175
00:13:50,260 --> 00:13:55,270
Once you are comfortable, comfortable with your learning system, I urge you to go out and explore

176
00:13:55,270 --> 00:13:56,920
each of these services further.
