T23
T23
T23
Concurrent Class
10/3/2013 3:00:00 PM
Kiran Karnad
Mimos Berhad
After more than sixteen years in software testing and implementation, Kiran Karnad found his
true calling in penetration testing. Proudly calling himself a hands-on lead for information
security, Kiran has worked with several Fortune 500 companies and mentored software test
teams in multiple geographies. Currently leading the functional and security efforts at MIMOS,
Kiran strives to identify process improvement opportunities throughout the organization and to
implement them effectively.
9/19/2013
1
9/19/2013
Disclaimer
Disclaimer
2
9/19/2013
Sample Hacks
3
9/19/2013
Network
Hardware hacking
Wireless
Social Engineering
Mobile
Lock Picking
Web hacking
OS INT
4
9/19/2013
5
9/19/2013
GOOGLE HACKING
6
9/19/2013
Basic Search
Advanced Phrase
Operators Search
BASIC SEARCH
7
9/19/2013
So InSenSItiVe
8
9/19/2013
9
9/19/2013
10
9/19/2013
Search Types
General Search
Not cAsE seNSitiVE
No more than 10 keywords in a search
Google ignores a, 5w1h, this, to, we
AND is always implied
Date of birth of Hugh Jackman
Phrase Search
Use quotes
Use + to force a term and to exclude
No space follows these signs
See the SERPs for with and without
quotes
11
9/19/2013
PHRASE SEARCH
Is there a difference?
12
9/19/2013
OR vs. AND
13
9/19/2013
OR | or
A quick Recap
Operators
Logical
OR case sensitive
Mathematical
+ (must) and (not) have special meaning
No Stemming
OK: Its the end of the * as we know it
KO: American Psycho* wont give psychology or
psychophysics
* represents a word, not the completion of a word
Period is a single character wild card
Lets try some
14
9/19/2013
ADVANCED OPERATORS
Stop No More!
15
9/19/2013
Intitle:
inurl:
Intext:
Inanchor:
16
9/19/2013
filetype:
Numrange:
Lets try one query:
http://www.google.com/#q=100000000..999999999+filetype:sql
17
9/19/2013
B451c
Phr453
0p3r4t0r5
18
9/19/2013
Intitle:index.of server.at
So What?
What can a hacker do with this info?
Go to http://www.cvedetails.com
Check vulnerabilities for Apache 2.2.16
Trigger Metasploit
19
9/19/2013
Files on AOL
server.
Files on MIT
server.
Hyped Music
Query is: Intitle:index.of name size
Check out the site hypem.com in SERPS
Try directory traversal
from any page, you can
download tons of music!
20
9/19/2013
Show server
version
information
Piracy MP3s
Intitle:index.of mp3 jackson AND iso kaspersky
Remember, Google stems!
21
9/19/2013
Piracy MP3s
Intitle:index.of mp3 jackson
Yields 20+ pages of songs in mp3 format
No need to wait for website instructions!
Remember, Google stems!
Intitle:index.of iso kaspersky
Gets the AV installers from various websites
Most of them with professional key or cracks
Even beta versions are available
22
9/19/2013
Johnnys Disclaimer
23
9/19/2013
HR Forms and
Policies
New Staff Info
Consultation
Health Benefits
Salary packaging
Contact Person
Office and
Meeting Room
Layout
Emails and Phones
Training
Pay Calculation
inurl:intranet intitle:intranet +intext:"human resources"
24
9/19/2013
And uname-pwd2.xls
25
9/19/2013
Filetype:php inurl:id=
26
9/19/2013
Database Querying
27
9/19/2013
A Quick Q
What do you think this query does?
28
9/19/2013
29
9/19/2013
inurl:r00t.php
allintext:fs-admin.php
30
9/19/2013
Must Tries
Hacked websites inurl:r00t.php
Hacked logs allintext:fs-admin.php
Finding login for portals intitle:admin intitle:login
SSH usernames filetype:log username putty
Getting user list Inurl:admin inurl:userlist
Passwords! filetype:pass pass intext:userid
SQL Passwords filetype:sql password
Usernames inurl:admin filetype:xls
Passwords inurl:password filetype:xls
More!! inurl:passwd filetype:xls (pdf, doc, mdb)
More Stuff!
intitle:"Index of" passwords modified
allinurl:auth_user_file.txt
"access denied for user" "using password
"A syntax error has occurred" filetype:ihtml
allinurl: admin mdb
"ORA-00921: unexpected end of SQL command
inurl:passlist.txt
"Index of /backup
"Chatologica MetaSearch" "stack tracking:"
31
9/19/2013
after the "parent directory "Xvid -xxx -html -htm -php -shtml
parent
opendivx -md5 -md5sums
directory
to what "parent directory " Gamez -xxx -html -htm -php -shtml
want "parent directory " MP3 -xxx -html -htm -php -shtml
"parent directory " Name of Singer or album -xxx html htm -php -shtml -opendivx -
md5 -md5sums
CGI Scanner
Google can be used as
a CGI scanner.
32
9/19/2013
Passwords
"# -FrontPage-" inurl:service.pwd
results listing !!
"AutoCreate=TRUE password=*"
33
9/19/2013
intitle:index.of.etc
configuration file contains both a
username and a password for an
SQL database. Most sites with
forums run a PHP message base.
This file gives you the keys to that
forum, including FULL ADMIN
access to the database.
34
9/19/2013
Serial Numbers
Let's pretend you need a serial number for Windows XP Pro.
In the Google search bar type in just like this - "Windows XP Professional"
94FBR the key is the 94FBR code.. it was included with many MS Office
registration codes so this will help you dramatically reduce the amount of
'fake' sites (usually pornography) that trick you. Or if you want to find the
serial for WinZip 8.1 -
"WinZip 8.1" 94FBR
Credit Cards!!
Number
Ranges to
find Credit
Card, SSN,
Account
Numbers
35
9/19/2013
Working Samples!
Credit-Cards-Pastebin.txt
36
9/19/2013
CC TV Control
The first query produced
3000+ results!
inurl:LvAppl intitle:liveapplet
inurl:"viewerframe?mode=motion"
intitle:"Live View / - AXIS"
intitle:"snc-rz30 home"
inurl:indexFrame.shtml "Axis Video Server
So where is the database?
http://www.exploit-db.com/google-dorks/
37
9/19/2013
OK, IM CONVINCED
38
9/19/2013
BHDB
39
9/19/2013
Scanner Limitations
If the DB doesnt have it, it wont detect it purely signature based
Can identify points of weakness but cant anticipate complex attack schemes
Cant detect logic flaws, weak cryptographic functions, information leakage etc
40
9/19/2013
WHERE DO ACTUAL
HACKS COME FROM
So, who are these hackers?
41
9/19/2013
THE TAKE-AWAY
Queries
Inurl:admin inurl:userlist
42
9/19/2013
More Queries
Inurl:admin OR inurl:password filetype:xls (csv)
AUTOMATION
43
9/19/2013
1. Download the script 2. Rename as .JS 3. Create data file 4. Call in any HTML
http://www.exploit-db.com/google-dorks/
44
9/19/2013
So
45
9/19/2013
46