WEBVTT - This file was automatically generated by VIMEO

0
00:00:04.800 --> 00:00:07.400
Hello everyone in this video. We are

1
00:00:07.400 --> 00:00:10.800
 going to see how you can Brute Force

2
00:00:10.800 --> 00:00:13.300
 the SMTP passwords and you can do the

3
00:00:13.300 --> 00:00:14.400
 password attack.

4
00:00:15.500 --> 00:00:18.500
The syntax of doing this particular scan is and map

5
00:00:18.500 --> 00:00:21.900
 the target IP address followed by hyphen hyphen

6
00:00:21.900 --> 00:00:23.800
 script equals to SMTP route.

7
00:00:24.400 --> 00:00:28.400
Remember, this is a type of intrusive scan

8
00:00:28.400 --> 00:00:31.600
 in which we are going to Brute Force the username and

9
00:00:31.600 --> 00:00:34.500
 password. Once we get the username and

10
00:00:34.500 --> 00:00:37.500
 password then we can attack the SMTP server

11
00:00:37.500 --> 00:00:40.400
 and send emails to anyone

12
00:00:40.400 --> 00:00:40.900
 we want.

13
00:00:42.600 --> 00:00:45.300
So you will be able to Brute Force

14
00:00:45.300 --> 00:00:48.900
 the username and password of the users running on a particular

15
00:00:48.900 --> 00:00:50.400
 Target SMTP server.

16
00:00:51.100 --> 00:00:54.400
You can always add hyphen V to see the output in verbose mode

17
00:00:54.400 --> 00:00:57.600
 and the example of doing this particular scan is

18
00:00:57.600 --> 00:00:58.700
 given over here.

19
00:01:00.400 --> 00:01:03.900
Which consists of nmap the target IP followed

20
00:01:03.900 --> 00:01:07.000
 by the NEC script, which is SMTP hyphen

21
00:01:06.000 --> 00:01:07.500
 Brute.

22
00:01:08.700 --> 00:01:11.700
So it is the Practical time and let's see, how can

23
00:01:11.700 --> 00:01:13.600
 we run this particular attack?

24
00:01:14.900 --> 00:01:18.400
As you can see I have written the enumerate

25
00:01:17.400 --> 00:01:20.200
 and SMTP Brute Force

26
00:01:20.200 --> 00:01:22.000
 script. I'm going to use this.

27
00:01:23.200 --> 00:01:25.400
I will just copy this and go on to my terminal.

28
00:01:33.500 --> 00:01:37.100
So first, I'm going to see if SMTP exist

29
00:01:36.100 --> 00:01:39.500
 on the target web server or not.

30
00:01:39.500 --> 00:01:42.500
 So I am running a fast scan

31
00:01:42.500 --> 00:01:46.100
 on to that particular Target to see if SMTP

32
00:01:45.100 --> 00:01:47.600
 is running on or not.

33
00:01:52.200 --> 00:01:55.200
As you can see the scan has successfully completed and we

34
00:01:55.200 --> 00:01:58.400
 find that SMTP is successfully running onto

35
00:01:58.400 --> 00:01:59.600
 that particular Target.

36
00:02:01.300 --> 00:02:04.100
Then we run our Brute Force script which you can

37
00:02:04.100 --> 00:02:06.600
 see over here on Port 25.

38
00:02:09.500 --> 00:02:12.600
And let's see the output of that particular script as

39
00:02:12.600 --> 00:02:15.700
 you can see the output is no valid accounts found

40
00:02:15.700 --> 00:02:18.000
 because I have not set it up

41
00:02:18.200 --> 00:02:21.500
 a user and a password for the SMTP account.

42
00:02:21.500 --> 00:02:24.200
 If you will set up a username and password,

43
00:02:24.200 --> 00:02:27.200
 then you can see the valid credentials will

44
00:02:27.200 --> 00:02:27.600
 be fine.

45
00:02:28.800 --> 00:02:29.400
mostly

46
00:02:30.800 --> 00:02:33.900
If those credentials are default credentials,

47
00:02:33.900 --> 00:02:37.300
 like root root and management sysadmin,

48
00:02:36.800 --> 00:02:39.700
 etc. Those are generally

49
00:02:39.700 --> 00:02:42.100
 weak and can be Brute Force like this.

50
00:02:42.900 --> 00:02:45.200
But in case if you want to

51
00:02:45.200 --> 00:02:48.600
 give your custom word list, you can also modify and you

52
00:02:48.600 --> 00:02:51.300
 can give the script args and you can give

53
00:02:51.300 --> 00:02:54.800
 your custom word list. You can check for giving the

54
00:02:54.800 --> 00:02:57.500
 script asks on the end map website for this

55
00:02:57.500 --> 00:03:00.800
 particular script, which is SMTP brute. We

56
00:03:00.800 --> 00:03:01.500
 have already seen.

57
00:03:02.300 --> 00:03:04.300
the same way in FTP root

58
00:03:04.800 --> 00:03:07.300
You can give the same arguments over here

59
00:03:07.300 --> 00:03:08.000
 as well.

60
00:03:09.600 --> 00:03:12.100
So we did not find any valid accounts, but we

61
00:03:12.100 --> 00:03:15.200
 have found out that the hostname which has been used

62
00:03:15.200 --> 00:03:18.400
 for sending emails as hacker. Udemy.com.

63
00:03:19.700 --> 00:03:22.600
So I hope you guys understood how you can perform this

64
00:03:22.600 --> 00:03:25.600
 particular scan and you can find the username

65
00:03:25.600 --> 00:03:28.600
 and password of weekly configured

66
00:03:28.600 --> 00:03:30.200
 servers. Thank you.
