WEBVTT

1
00:00:00.470 --> 00:00:07.530
All right so I am back now with the scan and you could see that I have the scan here which is showing

2
00:00:07.560 --> 00:00:11.350
us port twenty one import 80 open.

3
00:00:11.490 --> 00:00:15.660
Now when we look at Port 21 we've got the file transfer protocol.

4
00:00:15.660 --> 00:00:21.120
Now if you recall that just means that we can upload and download files off of the server we're just

5
00:00:21.120 --> 00:00:28.620
transferring files and we can see here that we have anonymous log in via the FTC and the files look

6
00:00:29.460 --> 00:00:33.090
almost like a default IRS Web page.

7
00:00:33.090 --> 00:00:38.540
We've got the IRS start Di HCM and if you've ever seen that you know you're just looking at the hey

8
00:00:38.550 --> 00:00:41.420
this is a web page hasn't been built yet.

9
00:00:41.490 --> 00:00:43.870
You got the welcome dot P and G.

10
00:00:43.920 --> 00:00:50.160
It feels very very welcome page and then we've got port 80 which is you're saying hey it's Microsoft

11
00:00:50.210 --> 00:00:51.490
I guess.

12
00:00:51.540 --> 00:00:56.340
And it's gotten a seven header but it doesn't really say anything about what's on there.

13
00:00:56.550 --> 00:01:04.230
So let's make a quick little journey out to the web server and see at 10 10 that 10 to 5 what we've

14
00:01:04.230 --> 00:01:04.650
got.

15
00:01:05.970 --> 00:01:08.470
And there it is it's a it's a welcome page.

16
00:01:08.490 --> 00:01:14.190
Now if we right click on this and we say save in the jazz you can see the image is actually welcomed

17
00:01:14.190 --> 00:01:15.590
at PSG.

18
00:01:15.720 --> 00:01:22.230
So I have a little hunch when I'm just looking at this scan that we're actually sitting in the web server

19
00:01:22.230 --> 00:01:23.850
directory itself.

20
00:01:23.850 --> 00:01:30.570
Now what we have here is we have port twenty one open and while anonymous logging is bad all we can

21
00:01:30.570 --> 00:01:33.410
do is put in delete files.

22
00:01:33.600 --> 00:01:34.990
It becomes really bad.

23
00:01:34.990 --> 00:01:38.550
We can change that exploit and actually execute a file.

24
00:01:38.550 --> 00:01:44.290
So my hunch is that we can upload something malicious and then execute it with port 80.

25
00:01:44.610 --> 00:01:49.350
So we're going to go ahead and test that out first we're going to just do a quick echo and say this

26
00:01:49.350 --> 00:01:56.040
is a test and I'm going to put that into a file called Test stop tax from here.

27
00:01:56.050 --> 00:02:01.180
I'm going to go ahead and FTB out to the server and I'm going to see if I can upload this file and then

28
00:02:01.240 --> 00:02:01.930
access it.

29
00:02:02.590 --> 00:02:08.300
So I'm going to go ahead and just type in anonymous and try to log in and I'm using anonymous as the

30
00:02:08.300 --> 00:02:09.530
password as well.

31
00:02:09.740 --> 00:02:17.560
We can go ahead and just say put and we'll say test that text.

32
00:02:17.630 --> 00:02:25.550
Now if we go out to the Web once our files uploaded and we say test that text you could see it says

33
00:02:25.970 --> 00:02:27.890
this is a test.

34
00:02:27.890 --> 00:02:28.510
OK.

35
00:02:28.550 --> 00:02:29.780
That works.

36
00:02:29.780 --> 00:02:36.350
So what we're going to do now is now that we know we have execution we can go ahead and get malicious.

37
00:02:36.350 --> 00:02:44.350
We can go with the new tab and what we want to do is we want an ISP ex type exploit.

38
00:02:44.360 --> 00:02:49.510
Now why do I say that because this is an I.S. server we can see if you use lies utilizing something

39
00:02:49.520 --> 00:02:50.910
like appetizer.

40
00:02:51.070 --> 00:02:54.250
We've got ISP dot net obviously it tells us I guess.

41
00:02:54.260 --> 00:02:57.350
So the filing center for that is a aspects.

42
00:02:57.350 --> 00:03:05.840
Now if you've never done this before you can go out to Google and say interpreter payload chichi something

43
00:03:05.840 --> 00:03:06.730
along these lines

44
00:03:11.360 --> 00:03:17.410
and we got this boy payload chichi MSL phenom cheat sheet we'll go ahead and just use the MSF atom chichi

45
00:03:18.590 --> 00:03:24.710
and any sort of web payloads we're looking for something like a S.P. or a SPF.

46
00:03:24.740 --> 00:03:29.650
So this one will work right here creates a simple TCE shell for a as B.

47
00:03:29.750 --> 00:03:37.040
So we're just going to use MSF Adam dash P windows interpreter reverse underscore TGP we'll set our

48
00:03:37.040 --> 00:03:39.710
l host our airport and then our file type.

49
00:03:39.950 --> 00:03:42.830
So that's the kind of syntax we're gonna be using.

50
00:03:42.860 --> 00:03:47.000
You can just follow along with me you don't have to actually go out to that website and copy and paste

51
00:03:47.000 --> 00:03:48.040
everything.

52
00:03:48.080 --> 00:03:51.020
So this is gonna be the initial start of the payload.

53
00:03:51.020 --> 00:03:56.250
We're going to say Windows interpreter reverse underscore DCP for the payload and then we need the L

54
00:03:56.270 --> 00:04:03.200
hosts which I don't know my whole host so I'm gonna go out and say I have config and I am connected

55
00:04:03.200 --> 00:04:13.390
here tend dot 10 to 14 dot for so I'm going to go ahead and use that as my host and then for my airport

56
00:04:13.420 --> 00:04:19.120
I'm just going to say all fours and then remember we're going to need the file type.

57
00:04:19.180 --> 00:04:25.570
So for this I'm going to use ISP X and then we're gonna go ahead and just call it exploit dot A.S.A.P.

58
00:04:25.570 --> 00:04:33.260
X and that should generate a shell for us.

59
00:04:33.290 --> 00:04:37.210
Now once that is generated what we're gonna need to do is we're actually gonna need to load up Meadows

60
00:04:37.210 --> 00:04:37.540
flight

61
00:04:40.560 --> 00:04:43.890
now this course is not going to rely on metal split a lot.

62
00:04:43.890 --> 00:04:49.320
This is just the initial exploit vector and I'm going to show you some initial enumeration that you

63
00:04:49.320 --> 00:04:55.380
can do with metals blight but everything is in be pretty manual moving forward after this little bit.

64
00:04:55.380 --> 00:05:06.420
So let's go ahead and we're going to use multiply exploit exploit multi handlers sorry and we're going

65
00:05:06.420 --> 00:05:08.150
to go ahead and say options.

66
00:05:08.280 --> 00:05:11.690
So we're gonna do is we're gonna set the same payload that we just did.

67
00:05:11.700 --> 00:05:15.570
So we're gonna set payload to Windows.

68
00:05:15.570 --> 00:05:26.000
INTERPRETER And then we're going to say reverse DCP should be able to tab it out now if we go to options.

69
00:05:26.070 --> 00:05:30.920
You could see that automatically sets the airport to the default for 4 4 4.

70
00:05:30.930 --> 00:05:32.620
We also need to set an el host.

71
00:05:32.640 --> 00:05:40.650
So I'm going to set my El hosts to tunnel 0 which is the interface that we are on right now.

72
00:05:40.650 --> 00:05:46.340
So if you're on a different interface or you could set it directly to the IP address and then I'm going

73
00:05:46.340 --> 00:05:49.390
to run this and this is going to setup that listener.

74
00:05:49.400 --> 00:05:55.580
So now we're listening on this port for a reverse connection using VoIP to do so.

75
00:05:55.580 --> 00:06:01.720
So I'm going to go in here and I'm going to reconnect because chances are this is probably timed out.

76
00:06:02.320 --> 00:06:09.060
I'm going to go in here and just reconnect real quick and we're going to upload this file.

77
00:06:09.160 --> 00:06:12.160
So now we're going to put the exploit the ISP X

78
00:06:15.030 --> 00:06:20.020
and with our listener running we're going to go ahead and go out to the web I'm going to close this

79
00:06:20.020 --> 00:06:27.730
out and I'm just going to forward slash exploit ISP X just like this hit enter.

80
00:06:27.780 --> 00:06:29.990
Well let's see what happens okay.

81
00:06:30.010 --> 00:06:31.300
We've got a mature operator session.

82
00:06:31.300 --> 00:06:33.310
So session one is open.

83
00:06:33.310 --> 00:06:37.270
We can say get you idc if that works.

84
00:06:37.270 --> 00:06:37.870
OK.

85
00:06:37.870 --> 00:06:47.540
And we can say sis info and you could see that we are on a windows 7 machine 32 bit or X 86 architecture.

86
00:06:47.560 --> 00:06:55.490
We have a 32 bit interpreter shell and our I.D. here is I guess app pull sash web.

87
00:06:55.520 --> 00:07:00.320
So we are not an administrator we are not a authority system.

88
00:07:00.320 --> 00:07:03.150
So that means we have privileges to escalate.

89
00:07:03.200 --> 00:07:05.340
So we're at the perfect stopping point.

90
00:07:05.540 --> 00:07:10.720
And if this didn't make sense to you maybe you're not ready for this part of the course yet.

91
00:07:10.730 --> 00:07:14.750
Maybe this is a little advanced you might need to go back and do some more studying.

92
00:07:14.750 --> 00:07:20.270
You could check out my other Udemy course as well which is takes this and walks you through a lot more

93
00:07:20.270 --> 00:07:21.190
step by step.

94
00:07:21.230 --> 00:07:23.990
And we'll get you ready for something along these lines.

95
00:07:24.200 --> 00:07:25.500
But this all made sense.

96
00:07:25.520 --> 00:07:26.980
You figured this out already.

97
00:07:27.050 --> 00:07:27.770
We're good to go.

98
00:07:27.770 --> 00:07:31.820
We're good to move on and we're going to start working on these escalations.

99
00:07:31.820 --> 00:07:36.440
So I'm going to see you in the next set of videos where we start talking about enumeration and how we're

100
00:07:36.440 --> 00:07:42.260
going to look at and identify things that can be potentially explicable and allow us to escalate our

101
00:07:42.260 --> 00:07:43.150
approaches.

102
00:07:43.160 --> 00:07:44.870
So I'll see you over in the next video.
