WEBVTT

1
00:00:00.590 --> 00:00:02.800
OK so let's look at our end map scan.

2
00:00:02.800 --> 00:00:04.720
We don't have a lot here to go with.

3
00:00:04.720 --> 00:00:11.580
We have this a chat system and then we have an chat chat system here.

4
00:00:11.610 --> 00:00:13.390
Looks like this is over HDP.

5
00:00:13.390 --> 00:00:15.620
And then there's an a chat here.

6
00:00:15.640 --> 00:00:19.950
So the first thing we might do is just something quick like search flight and say hey what's a chat.

7
00:00:20.710 --> 00:00:27.550
And we can also of course go over to the actual exploit itself and see what's running so or we can go

8
00:00:27.550 --> 00:00:30.780
over to the web page itself and see what's running.

9
00:00:30.820 --> 00:00:33.670
But here we can see there is a remote buffer overflow.

10
00:00:33.670 --> 00:00:39.790
There is one in medicinally and there's also a manual one this 3 6 0 2 5 dot pi.

11
00:00:39.820 --> 00:00:50.560
So if we go ahead and we just we can copy over the user share exploit database and then we'll do exploit

12
00:00:50.590 --> 00:00:58.310
windows remote and then 3 6 0 2 5 Pi.

13
00:00:58.340 --> 00:01:03.170
And again if you don't see that path the path is right here up top and then the rest of the path is

14
00:01:03.170 --> 00:01:04.730
right here.

15
00:01:04.730 --> 00:01:07.730
So I'm going to copy that and I'm going to just copy it here.

16
00:01:07.730 --> 00:01:14.910
I'll just call it three up pi so we'll put this in our directory and then if we go ahead and just get

17
00:01:14.910 --> 00:01:23.070
it or whatever your favorite editor is and just look at this we can see the actual exploit itself.

18
00:01:23.070 --> 00:01:29.820
So this is a buffer overflow exploit and it looks like a very very typical buffer overflow.

19
00:01:29.820 --> 00:01:35.700
They actually give us the MSF venom here and before we dive in and we just say hey we're for sure on

20
00:01:35.700 --> 00:01:41.100
this we can make sure and go check out and see if there's any more information on this just before going

21
00:01:41.100 --> 00:01:46.110
through all the trouble in firing away so we might just go out to Google and we might just say something

22
00:01:46.110 --> 00:01:50.830
along lines of a chat exploit and see what's out there.

23
00:01:50.910 --> 00:01:54.080
So we've got this one here we can open it up see if it's any different.

24
00:01:54.080 --> 00:01:59.940
This is 3 6 year to five it doesn't provide any information sometimes at the top it tells you hey there's

25
00:02:00.300 --> 00:02:04.870
you know this is a buffer overflow exploit and a little bit more information on that.

26
00:02:04.920 --> 00:02:07.110
I don't see anything here.

27
00:02:07.110 --> 00:02:08.940
Rapid 7 does have something on it.

28
00:02:08.940 --> 00:02:14.730
We're going to avoid using my display for this one but it says this exploits a unicode SDH buffer overflow

29
00:02:14.730 --> 00:02:15.710
and a chat.

30
00:02:15.720 --> 00:02:21.180
So by sending your craft a message to default port 9 to 5 6 UDP it's possible to overwrite the SDH a

31
00:02:21.180 --> 00:02:22.920
handler.

32
00:02:23.090 --> 00:02:32.030
So this is running on Windows XP Service Pack 3 and Windows 7 that it's been tested on so if we go back

33
00:02:32.030 --> 00:02:35.350
to our scan let's see if it tells us anything about the OS.

34
00:02:35.380 --> 00:02:38.470
Guess it's guessing Windows 8.

35
00:02:38.570 --> 00:02:41.340
Some store windows version but it doesn't know exactly what it is.

36
00:02:41.340 --> 00:02:43.910
So there's nothing reliable there either.

37
00:02:44.090 --> 00:02:46.790
So we don't have a lot to really go off of.

38
00:02:46.790 --> 00:02:49.580
We can also go over to the chat itself.

39
00:02:49.730 --> 00:02:55.670
So if it is living on port nine to five five we can go and look at that really quick and see what's

40
00:02:55.670 --> 00:02:56.400
there.

41
00:02:56.720 --> 00:03:07.460
So we can just go HPD over that slash slash ten ten ten seventy four and then nine to five five and

42
00:03:07.460 --> 00:03:16.660
see if that takes us anywhere which it doesn't look like a dead try one more time.

43
00:03:17.070 --> 00:03:23.490
Ten ten ten seventy four and then nine to five five or copy that just in case but it looks like it's

44
00:03:23.490 --> 00:03:24.800
not going anywhere for us.

45
00:03:24.810 --> 00:03:33.330
So so we can't access the page there's not much going on even the site doesn't have a title so it looks

46
00:03:33.330 --> 00:03:34.980
like there's nothing really there.

47
00:03:34.980 --> 00:03:39.920
So we kind of just have to have to make a guess at this and see what we can figure out.

48
00:03:39.920 --> 00:03:45.120
I so I'm going to go with the buffer overflow exploit and we'll see what we can do.

49
00:03:45.120 --> 00:03:48.050
So I got it open in get it.

50
00:03:48.090 --> 00:03:55.080
Now the thing that I see here is they have a platform Windows architecture x eighty six that's fine.

51
00:03:55.080 --> 00:04:01.560
But the payloads is execute which executes a character EMC so wherever they're running it just pops

52
00:04:01.650 --> 00:04:03.000
a calculator out.

53
00:04:03.210 --> 00:04:07.320
So it's not really what we want but they have gone through and if you're familiar with buffer overflows

54
00:04:07.320 --> 00:04:11.040
it's gone through and just done the bad characters for us.

55
00:04:11.040 --> 00:04:11.760
Which is really nice.

56
00:04:11.790 --> 00:04:15.360
So we'll have to worry about bad characters or any of this and they give us a command kind of.

57
00:04:15.750 --> 00:04:18.990
So what we can do is we can just modify this command a little bit.

58
00:04:19.110 --> 00:04:26.860
We can just say windows and then we'll just say something like shall reverse TCB.

59
00:04:26.960 --> 00:04:34.240
It's like Shell reverse TCB and then instead of Calcutta you EMC we're going to take that out and then

60
00:04:34.240 --> 00:04:43.300
we'll do l host is equal to your IP address of mine right now is 10 dot 10 to 14 not four and then we'll

61
00:04:43.300 --> 00:04:44.280
do an outpour.

62
00:04:44.320 --> 00:04:46.490
I'm going to it's going to choose four for three.

63
00:04:46.800 --> 00:04:48.570
The encoding and everything else is fine.

64
00:04:48.580 --> 00:04:50.650
We just want this to pop a reverse shell.

65
00:04:50.940 --> 00:04:57.000
So I'm gonna copy this and I'm going to go ahead and just open up a new tab and make this bigger for

66
00:04:57.000 --> 00:05:02.070
you guys and I'll go ahead and just hit enter.

67
00:05:02.070 --> 00:05:04.050
This should generate some shortcut for us.

68
00:05:04.080 --> 00:05:09.900
So again we're doing architecture of x eighty six platform Windows and then we're doing the windows

69
00:05:09.900 --> 00:05:11.090
shell reverse DCP.

70
00:05:11.100 --> 00:05:13.380
So we're gonna have to run net cat here in a second.

71
00:05:14.190 --> 00:05:16.020
So let's go ahead and copy this down.

72
00:05:18.490 --> 00:05:25.050
And paste it in.

73
00:05:25.220 --> 00:05:26.570
I'm just gonna replace what's in here

74
00:05:29.630 --> 00:05:31.620
it's a little bit larger of code.

75
00:05:31.690 --> 00:05:33.460
They had 512 on the bytes.

76
00:05:33.460 --> 00:05:37.110
Let's see what we ended up having seven seventy four.

77
00:05:37.150 --> 00:05:41.860
So hopefully that doesn't mess with the address space we should be OK but we'll we'll take a look at

78
00:05:41.860 --> 00:05:46.540
the end of this and if it doesn't work maybe we'll have to adjust it but we'll come through here if

79
00:05:46.540 --> 00:05:47.310
we scroll down.

80
00:05:47.320 --> 00:05:48.750
We've got to create a UDP socket.

81
00:05:48.780 --> 00:05:52.790
So we have to go over to the UDP address itself.

82
00:05:52.840 --> 00:06:00.690
We're gonna go and navigate to 10 10 ten seventy four and I'm going to go ahead and just save this out.

83
00:06:00.690 --> 00:06:03.060
So this is going to make the connection.

84
00:06:03.360 --> 00:06:09.180
It's going to do a little bit of this code and then it's going to inject the buff here for the code

85
00:06:09.660 --> 00:06:13.520
and do a little bit more advance of a buffer overflow.

86
00:06:13.530 --> 00:06:18.180
This is a 32 bit SDH bypass so it's the next step above.

87
00:06:18.190 --> 00:06:22.380
If you have seen like the Volm server exploits or something along those lines it's just the next step

88
00:06:22.380 --> 00:06:24.930
above that with the SDH bypassing.

89
00:06:24.930 --> 00:06:28.680
So we're gonna go ahead and just try to fire this one off.

90
00:06:28.680 --> 00:06:36.060
So what we're gonna do is we're gonna run net cat here and we'll do NBL P A 4 for 3 and we're also going

91
00:06:36.060 --> 00:06:39.220
to just go ahead and try running Python 3D up high.

92
00:06:39.510 --> 00:06:45.690
Now big caveat to this box and you may have run into some issues with it is that if you're not the first

93
00:06:45.690 --> 00:06:52.020
one to run this exploit against this and it doesn't work then there's a chance that somebody else has

94
00:06:52.020 --> 00:06:52.410
done it.

95
00:06:52.440 --> 00:06:55.320
You only get one chance when trying to say you get one chance and this exploit.

96
00:06:55.710 --> 00:06:59.640
So if it doesn't work get to reset your box or if it works and you lose a Shell or whatever you have

97
00:06:59.640 --> 00:07:03.070
to reset your box that's the only unfortunate thing about this one.

98
00:07:03.070 --> 00:07:04.420
So go ahead and run this.

99
00:07:04.500 --> 00:07:08.350
See if we get any kind of shell we got a connect.

100
00:07:08.610 --> 00:07:10.790
We've got a connect from my machine.

101
00:07:10.800 --> 00:07:12.140
Let me turn this one off.

102
00:07:12.210 --> 00:07:22.070
Sorry and let's go ahead and run this one more time.

103
00:07:22.070 --> 00:07:23.090
There we go.

104
00:07:23.090 --> 00:07:27.030
So sorry I was trying out some exploits earlier from a windows 7 machine.

105
00:07:27.030 --> 00:07:29.330
So OK we've got the connection here we ran it.

106
00:07:29.330 --> 00:07:30.080
We're good to go.

107
00:07:30.500 --> 00:07:31.940
So now if we say who am I.

108
00:07:32.630 --> 00:07:37.520
You can see we are Chatterbox Alfred we are not system on this machine.

109
00:07:37.520 --> 00:07:40.780
So we need to improve upon that.

110
00:07:40.820 --> 00:07:41.130
All right.

111
00:07:41.180 --> 00:07:47.510
So from here I'm going to go ahead and hit pause and we're going to move on to the next step which is

112
00:07:47.510 --> 00:07:50.230
going to be the escalation.

113
00:07:50.270 --> 00:07:54.990
So what we're gonna do is we're going to escalate this machine again if you want to give it a go.

114
00:07:55.010 --> 00:07:59.660
I have full faith at this point that you could do it again you can use this privilege escalation guide

115
00:08:00.500 --> 00:08:04.950
follow everything down to the point of this net start with blink.

116
00:08:05.120 --> 00:08:10.490
So if you can kind of piece it together look at the the net start running on the machine look at the

117
00:08:10.490 --> 00:08:15.710
ports that are open and then hunt some passwords down since this is password hunting section it's a

118
00:08:15.710 --> 00:08:20.380
little bit of a hint and see if you can figure it out and then I will catch you over in the next video

119
00:08:20.420 --> 00:08:22.190
when we walk through the rest of the steps.
