WEBVTT - This file was automatically generated by VIMEO

0
00:00:13.300 --> 00:00:13.600
Hello, everyone.

1
00:00:15.100 --> 00:00:18.700
In this video we are going to see and map mail

2
00:00:18.700 --> 00:00:19.700
 exploitation.

3
00:00:21.400 --> 00:00:21.600
So

4
00:00:22.500 --> 00:00:25.600
the first one that we are going to see is the nmap open

5
00:00:25.600 --> 00:00:26.700
 relay scan.

6
00:00:28.300 --> 00:00:31.600
The syntax of doing this scan is nmap. The target IP address

7
00:00:31.600 --> 00:00:34.700
 followed by -script equals to

8
00:00:34.700 --> 00:00:37.800
 SMTP - open hyphen relay

9
00:00:37.800 --> 00:00:38.100
 and

10
00:00:39.800 --> 00:00:42.800
the port number that you can specify followed by

11
00:00:42.800 --> 00:00:45.700
 hyphen V to see the output in verbose mode.

12
00:00:46.600 --> 00:00:49.300
So you can scan a Target by simply giving IP address

13
00:00:49.300 --> 00:00:52.900
 and specifying the SMTP hyphen open hyphen relay

14
00:00:52.900 --> 00:00:55.300
 flag. So what does actually happens?

15
00:00:56.100 --> 00:00:59.400
The SMTP server that works as an open relay is

16
00:00:59.400 --> 00:01:02.300
 an email server that does not verify if

17
00:01:02.300 --> 00:01:05.500
 the user is authorized to send email from the specified email

18
00:01:05.500 --> 00:01:08.300
 address. Therefore users would

19
00:01:08.300 --> 00:01:11.500
 be able to send emails originating from any third

20
00:01:11.500 --> 00:01:13.100
 party email address that they want.

21
00:01:14.200 --> 00:01:16.200
Which makes the server vulnerable?

22
00:01:17.900 --> 00:01:20.300
The example of doing this scan is given over here

23
00:01:20.300 --> 00:01:21.500
 and let's see.

24
00:01:22.300 --> 00:01:26.700
This in Practical how we can identify if

25
00:01:26.700 --> 00:01:29.700
 any server is vulnerable to open relay?

26
00:01:31.300 --> 00:01:32.300
As we can see here.

27
00:01:34.200 --> 00:01:37.200
This is the command that we are going to type. So I will

28
00:01:37.200 --> 00:01:39.900
 just copy this and go to the terminal.

29
00:01:41.400 --> 00:01:44.500
As you can see I have already performed this particular

30
00:01:44.500 --> 00:01:46.200
 scan and this is the output.

31
00:01:48.300 --> 00:01:51.400
I have not set it up any SMTP open

32
00:01:51.400 --> 00:01:54.700
 relay server into my system. That's

33
00:01:54.700 --> 00:01:57.100
 why you can see Server doesn't seem to be an

34
00:01:57.100 --> 00:02:00.500
 open relay all test failed. But if in server

35
00:02:00.500 --> 00:02:03.200
 is vulnerable to open relay, it will show you

36
00:02:03.200 --> 00:02:07.000
 that this seems vulnerable to open relay

37
00:02:06.200 --> 00:02:08.500
 and can be exploited.

38
00:02:13.600 --> 00:02:16.500
I have also performed this particular scan on

39
00:02:16.500 --> 00:02:21.200
 one more website, which is hacker1.com to

40
00:02:20.200 --> 00:02:23.700
 identify if they are running on an open relay

41
00:02:23.700 --> 00:02:26.500
 and you can see they have filtered their port

42
00:02:26.500 --> 00:02:29.100
 and we are not able to scan that Port itself.

43
00:02:30.300 --> 00:02:33.600
But you can always try this on many other live

44
00:02:33.600 --> 00:02:36.600
 websites and you will be able to find out if any

45
00:02:36.600 --> 00:02:39.800
 SMTP is an open relay

46
00:02:39.800 --> 00:02:41.700
 and you can exploit it.

47
00:02:42.300 --> 00:02:44.200
I hope you guys understood. Thank you.
