WEBVTT - This file was automatically generated by VIMEO

0
00:00:17.400 --> 00:00:20.400
It's time for the first demo. Let me

1
00:00:20.400 --> 00:00:23.500
 show you how you can use Google hacking to find

2
00:00:23.500 --> 00:00:26.500
 the directory listings in a web application.

3
00:00:28.200 --> 00:00:31.900
The web application is hosted on the domain hacking web

4
00:00:31.900 --> 00:00:33.000
 applications.com.

5
00:00:34.200 --> 00:00:37.900
I want to check if directory listing is enabled

6
00:00:37.900 --> 00:00:40.700
 in this web application. And for

7
00:00:40.700 --> 00:00:43.800
 this purpose. I will use the following Google search

8
00:00:43.800 --> 00:00:44.800
 engine query.

9
00:00:45.600 --> 00:00:49.200
site hacking web applications.com and

10
00:00:48.200 --> 00:00:51.300
 entitled index of

11
00:00:52.600 --> 00:00:55.900
first I need to type site hacking

12
00:00:55.900 --> 00:00:57.300
 web applications.com.

13
00:00:58.200 --> 00:01:00.800
This is where the web application is hosted.

14
00:01:01.900 --> 00:01:02.200
next

15
00:01:03.100 --> 00:01:06.900
I need to type and entitle index off.

16
00:01:08.200 --> 00:01:12.000
If a directory has been indexed by Google and

17
00:01:11.200 --> 00:01:14.700
 directory listing is enabled for

18
00:01:14.700 --> 00:01:17.400
 this directory. Then in the

19
00:01:17.400 --> 00:01:20.400
 title of the web page, you will see the string

20
00:01:20.400 --> 00:01:21.600
 index of

21
00:01:22.300 --> 00:01:26.000
and that's the reason why I need to type and

22
00:01:25.300 --> 00:01:29.100
 entitle index off in

23
00:01:28.100 --> 00:01:31.300
 my Google search engine query.

24
00:01:32.500 --> 00:01:35.500
Okay. Now you understand how this

25
00:01:35.500 --> 00:01:37.700
 Google search engine query works.

26
00:01:38.500 --> 00:01:40.700
So let me copy this query.

27
00:01:41.700 --> 00:01:45.000
Let me paste it in Google search and

28
00:01:44.400 --> 00:01:48.100
 let's see if Google indexed a

29
00:01:47.100 --> 00:01:50.500
 directory with directory listing

30
00:01:50.500 --> 00:01:53.400
 enabled on the domain hacking web

31
00:01:53.400 --> 00:01:54.700
 applications.com.

32
00:01:58.200 --> 00:02:02.000
As you can see directory listing is enabled

33
00:02:01.500 --> 00:02:04.400
 for the files directory.

34
00:02:04.900 --> 00:02:06.700
Let's check what is inside?

35
00:02:08.500 --> 00:02:12.500
There is a file database.yml. This

36
00:02:11.500 --> 00:02:14.700
 is a database configuration file

37
00:02:14.700 --> 00:02:17.200
 which includes credentials to

38
00:02:17.200 --> 00:02:20.600
 the database. So this is a very sensitive file.

39
00:02:21.300 --> 00:02:23.800
Let's read the content of this file.

40
00:02:27.500 --> 00:02:30.000
As you can see indeed, there are

41
00:02:30.800 --> 00:02:33.700
 credentials to the database. The username is

42
00:02:33.700 --> 00:02:37.100
 root and the password is super secure

43
00:02:36.100 --> 00:02:37.300
 password.

44
00:02:38.500 --> 00:02:41.400
It clearly shows how easily you can

45
00:02:41.400 --> 00:02:45.500
 use Google search engine to find publicly exposed

46
00:02:44.500 --> 00:02:48.300
 sensitive files through directory

47
00:02:47.300 --> 00:02:48.900
 listing.

48
00:02:50.100 --> 00:02:53.600
Okay. Now we are done with this demo. So

49
00:02:53.600 --> 00:02:56.300
 let me jump to the next one and let me

50
00:02:56.300 --> 00:02:59.500
 show you how Google hacking can be used for

51
00:02:59.500 --> 00:03:03.500
 finding sensitive information in SQL syntax

52
00:03:02.500 --> 00:03:04.000
 errors.
