WEBVTT - This file was automatically generated by VIMEO

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

1
00:00:10.500 --> 00:00:13.400
 show you how you can use Google hacking to

2
00:00:13.400 --> 00:00:16.000
 find the directory listings in a web

3
00:00:16.000 --> 00:00:16.600
 application.

4
00:00:18.100 --> 00:00:21.500
The web application is hosted on the domain hacking

5
00:00:21.500 --> 00:00:23.200
 web applications.com.

6
00:00:24.100 --> 00:00:27.200
I want to check if directory listing is

7
00:00:27.200 --> 00:00:30.700
 enabled in this web application. And for

8
00:00:30.700 --> 00:00:33.900
 this purpose. I will use the following Google search

9
00:00:33.900 --> 00:00:34.900
 engine query.

10
00:00:35.700 --> 00:00:39.100
site hacking web applications.com and

11
00:00:38.100 --> 00:00:41.500
 entitle index of

12
00:00:42.700 --> 00:00:46.300
first I need to type site hacking

13
00:00:45.300 --> 00:00:48.700
 web applications.com. This is

14
00:00:48.700 --> 00:00:51.200
 where the web application is hosted.

15
00:00:51.900 --> 00:00:54.800
Next I need to type and

16
00:00:54.800 --> 00:00:57.000
 entitle index off.

17
00:00:58.100 --> 00:01:02.100
If a directory has been indexed by Google and

18
00:01:01.100 --> 00:01:04.800
 directory listing is enabled for

19
00:01:04.800 --> 00:01:07.200
 this directory. Then in the

20
00:01:07.200 --> 00:01:11.300
 title of the web page, you will see the string index

21
00:01:10.300 --> 00:01:11.600
 of

22
00:01:12.300 --> 00:01:15.600
And that's the reason why I need to type

23
00:01:15.600 --> 00:01:18.500
 and entitle index off

24
00:01:18.500 --> 00:01:21.400
 in my Google search engine query.

25
00:01:22.600 --> 00:01:25.600
Okay. Now you understand how this

26
00:01:25.600 --> 00:01:27.800
 Google search engine query works.

27
00:01:28.700 --> 00:01:30.700
So let me copy this query.

28
00:01:31.700 --> 00:01:35.000
Let me paste it in Google search and

29
00:01:34.500 --> 00:01:38.000
 let's see if Google indexed a

30
00:01:37.800 --> 00:01:41.400
 directory with directory listing enabled

31
00:01:40.400 --> 00:01:43.400
 on the domain hacking web

32
00:01:43.400 --> 00:01:44.800
 applications Comm.

33
00:01:48.300 --> 00:01:51.200
As you can see directory listing is

34
00:01:51.200 --> 00:01:54.500
 enabled for the files directory.

35
00:01:55.400 --> 00:01:56.800
Let's check what is inside?

36
00:01:58.500 --> 00:02:02.600
There is a file database.yml. This

37
00:02:01.600 --> 00:02:04.800
 is a database configuration file

38
00:02:04.800 --> 00:02:07.400
 which includes credentials to

39
00:02:07.400 --> 00:02:10.700
 the database. So this is a very sensitive file.

40
00:02:11.700 --> 00:02:13.900
Let's read the content of this file.

41
00:02:17.500 --> 00:02:20.100
As you can see indeed, there are

42
00:02:20.100 --> 00:02:23.700
 credentials to the database. The username

43
00:02:23.700 --> 00:02:26.400
 is root and the password is super

44
00:02:26.400 --> 00:02:27.400
 secure password.

45
00:02:28.500 --> 00:02:31.600
It clearly shows how easily you

46
00:02:31.600 --> 00:02:34.900
 can use Google search engine to find publicly

47
00:02:34.900 --> 00:02:38.400
 exposed sensitive files through directory

48
00:02:37.400 --> 00:02:39.000
 listing.

49
00:02:40.200 --> 00:02:43.700
Okay. Now we are done with this demo. So

50
00:02:43.700 --> 00:02:46.400
 let me jump to the next one and let

51
00:02:46.400 --> 00:02:49.600
 me show you how Google hacking can be used for

52
00:02:49.600 --> 00:02:52.900
 finding sensitive information in SQL

53
00:02:52.900 --> 00:02:54.000
 syntax errors.
