Another service is the TTP or the Apache service.
This is very useful.
While you are doing penetration testing especially if you need to host like a fake website on your clinics.
So victim will connect to it.
And different kind of attack.
Now how can we start this services.
First let's see that the services let's make sure that the service is not running so we can do that
in different ways.
I can check try to browse the local Web site 27 0 2 0 2 1 which is a local IP of this machine and see
if it shows anything before starting the service or not.
So 127 of 0 0 0 not 1.
This is a local IP that the in and excite me.
And as you can see he's he he are saying that nothing to be browsed here.
This is not a web server.
Now let me start.
The web servers sir.
This is
Apache to start
uh I think that is like spinning mystique as Apache to start.
And if we now check locally or from any other computer as you can see he open a webpage that's mean
this server or this computer is R. Kelly Linux computer now is acting as a web server I can host a fake
web page or a fake G.M. account page or a fake Web site and add a p a payload inside or a malicious
code and people will be able to browse from this Web site.
Now another way for verifying like the previous way we can type net state net state minus A N T P.
And don't forget to pipe is output so we type the sign which is piping area go and then grep Apache
and we'll see if
it state.
The good thing about Kelly Linux that it show you the error it's inside the comment itself or so rebels
get inside the syntax net State Medical.
And as you can see Apache server is running on port 80 and is accepting connections so now my computer
acts as a web server.
So this is another service that we will be using during the penetration test and definitely to stop
it.
Don't forget the same way.
And instead of start to type stop
and we're going to make sure that the service is not in that state it's not running by the way.
If you are not using the service it's better to disable it because it's not it's unsecured.
I mean it's not right to keep all the services running.
You can get you compromised yourself.
So usually if you're going to use a service start of the service use the service and then shut down
the service do not keep unused services running because this represents a threat to your computer.