using google to hack your site #pubcon

21
#pubcon @badams Using Google to Hack Your Site Presented by: Barry Adams Polemic Digital

Upload: barry-adams

Post on 07-Jan-2017

3.647 views

Category:

Internet


2 download

TRANSCRIPT

Page 1: Using Google to Hack Your Site #Pubcon

#pubcon@badams

Using Google to Hack Your Site

Presented by:Barry Adams

Polemic Digital

Page 2: Using Google to Hack Your Site #Pubcon

#pubcon@badams

About Barry Adams• Dutchman in Northern Ireland• Founder of Polemic Digital• Co-Chief Editor for StateofDigital.com• Twitter ranter: @badams• Lecturer & educator

Page 3: Using Google to Hack Your Site #Pubcon

#pubcon@badams

Anatomy of a Hack

1. Reconnaissance2. Scanning3. Gaining Access4. Maintaining Access5. Covering Tracks

Page 4: Using Google to Hack Your Site #Pubcon

#pubcon@badams

Prevention is the best cure• Security through obscurity

– Enough to defeat script kiddies & automated tools

• Won’t stop dedicated hackers– But then, few things will…

Page 5: Using Google to Hack Your Site #Pubcon

#pubcon@badams

Becoming invisible…

Page 6: Using Google to Hack Your Site #Pubcon

#pubcon@badams

Wappalyzer

Page 7: Using Google to Hack Your Site #Pubcon

#pubcon@badams

Hide your version numbers

<meta name="generator" content="WordPress 4.6.1"/>

Page 8: Using Google to Hack Your Site #Pubcon

#pubcon@badams

Broadcasting your security in robots.txt

• Don’t put your back-end login folder in your robots.txt– Use meta robots

noindex,nofollow

Page 9: Using Google to Hack Your Site #Pubcon

#pubcon@badams

Using Google to find weaknesses• Google is a hungry beast• It will crawl & index all it can• Even stuff it really shouldn’t …

Advanced search commands allow you to use Google’s insatiable hunger for your own benefit/protection

Page 10: Using Google to Hack Your Site #Pubcon

#pubcon@badams

Google Advanced Search Commands

site:domain.com > only search within that domainext:xxx > only show files with that extensioninurl:xyz > only show pages with ‘xyz’ in the URL-abc > exclude pages that match ‘abc’| > string searches together with pipes

Page 11: Using Google to Hack Your Site #Pubcon

#pubcon@badams

Login folders

Page 12: Using Google to Hack Your Site #Pubcon

#pubcon@badams

Database files

Page 13: Using Google to Hack Your Site #Pubcon

#pubcon@badams

Configuration files

Page 14: Using Google to Hack Your Site #Pubcon

#pubcon@badams

Log Files

Page 15: Using Google to Hack Your Site #Pubcon

#pubcon@badams

Backups

Page 16: Using Google to Hack Your Site #Pubcon

#pubcon@badams

Documents

Page 17: Using Google to Hack Your Site #Pubcon

#pubcon@badams

Social Engineering• Be careful what you publish online!

– Hackers can use personal information to gain confidence and extract more information.

• Even passwords…

Page 18: Using Google to Hack Your Site #Pubcon

#pubcon@badams

Shared Hosting / Shared Sites

SpyOnWeb.com

Page 19: Using Google to Hack Your Site #Pubcon

#pubcon@badams

Subdomains

https://pentest-tools.com/

Page 20: Using Google to Hack Your Site #Pubcon

#pubcon@badams

To summarise• Minimise your online footprint;

– Anything online can and will be used against you

• Don’t give away any clues;– Make your website difficult to reconnoitre

• Educate your staff;– People are your biggest weakness

Page 21: Using Google to Hack Your Site #Pubcon

#pubcon@badams

Thank You

Follow me on Twitter:@badams

Email me your questions: [email protected]