Share
Embed
Transcript
50 slides
-
Tim Tomes (@LaNMaSteR53) Look Ma, No Exploits! The Next Generation
of Open Source Reconnaissance:! The Recon-ng Framework! -
§ Tim Tomes (LaNMaSteR53) § Christian/Father/Husband/Veteran § Black Hills Information
Security § SANS Instructor § Security Blogger – lanmaster53.com / pauldotcom.com § "Coder" Me -
Credits § Ethan Robish (@EthanRobish) § Micah Hoffman (@WebBreacher) §
Thrapt § Brendan Coles § Jay Turla (@shipcod3) § Robert Frost (@frosty_1313) § Drumm § Dan Woodruff (@dewoodruff) § John Babio (@3vi1john) § Kenan Abdullahoglu (@kyabd) § Matteo Cantoni (nothink.org) § Mike Siegel § Anthony Miller-Rhodes (@_s1lentjudge) § Eric Gragsone -
Disclaimer Due to the dynamic nature of the demos, offensive
material is possible. While I don’t condone it, I can’t prevent it. -
Reconnaissance Defined § Merriam-Webster - “A preliminary survey to gain
information.” § ...using open sources and without making direct contact. -
Pentest Methodologies § Network 1. Information Gathering 2. Scanning and
Enumeration 3. Exploitation 4. Analysis and Reporting § Web App 1. Reconnaissance 2. Mapping 3. Discovery 4. Exploitation 5. Reporting -
Traditional Recon § Select and verify scope § Gather info
for: – authentication testing – social engineering § Learn of implemented technologies and configurations § Search for vulnerable code snippets – GitHub dorks § Identify weaknesses in physical security -
The Problem § Often overlooked or skipped – Internal –
"I already know everything about my..." – External – Not enough time § My argument – Internal - You never know everything – External - You end up going back for it anyway – Isn’t it good to know what the rest of the world knows? -
Web Resources § Server-side Enumeration – BuiltWith – WhatWeb –
2012 Internet Census – Project Sonar § Vulnerability Discovery – ASafaWeb – XSSed – punkSPIDER § Credential Harvesting – PwnedList – ShouldIChangeMyPassword.com § Contact Scoping – NameChk -
Advanced Recon § Efficiently develop storylines § Enumerate server-side technologies
§ Discover live vulnerabilities § Harvest full credentials § Conduct remote physical security analysis Who has the )me? -
Caveats § Using 3rd party websites may violate Nondisclosure Agreements
(NDA) and contracts. – Anonymizing proxies – Authorization § Active recon vs. Passive recon – Active ~ Discovery § Not all data is free – $0 to > $60k -
The Recon-ng Framework § Interactive § Look and feel of
MSF § Modular § Data driven § Scriptable (recon-cli) § Documented (wiki) § Developer friendly § Python (native) § http://www.recon-ng.com -
Framework Methodology Social Engineering Web Attack Network Attack Recon Discovery
Exploitation Post-exploitation Mapping Metasploit SET Meterpreter Recon-ng Info. Gather Scanning & Enumeration Exploitation Post-exploitation Burp -
UI Highlights § Interactive help § Command completion everywhere §
Smart loading § Module switching § Direct data access § Workspaces § Verbose / Debugging -
Host Harvesting § Scope Selection / Validation § Server-side Enumeration
– Port Scanning § Vulnerability Discovery -
Scope Selection / Validation § Whois § AdSense/Analytics lookup –
ewhois.com § Search Engine "site" directive § Shodan "hostname" (more than web) § DNS brute force – DNSRecon, Fierce § IP neighbor lookups – Bing "ip:" – my-ip-neighbors.com § Geolocation – ipinfodb.com -
Demo § recon/hosts/gather/http/web/bing_domain § recon/hosts/gather/http/web/netcraft § *recon/hosts/gather/http/api/shodan_hostname § recon/hosts/enum/dns/resolve §
recon/hosts/gather/http/web/ip_neighbor § recon/hosts/gather/http/api/bing_ip § recon/hosts/geo/http/api/ipinfodb -
Server-side Enumeration § Response headers – Server – Cookie names
§ Error responses § Browser, Tamper Data, Burp, Netcat § Nmap, Zmap § But this would require contact? – builtwith.com – whatweb.net – 2012 Internet Census -
Vulnerability Discovery § Enumeration + Research = Discovery § No
validation! § Manual research or... – asafaweb.com – xssed.com – punkspider.hyperiongray.com -
Information Gathering § LinkedIn – Social Networking for professionals –
Accurate and precise § Jigsaw – Cloud based CRM – Owned by Sales Force – Crowd sourced – Scraping is free, API is better § PGP Key Servers – RedIRIS – MIT -
Data Manipulation § What we have – First Name – Last Name
– Job Title – Location § What we want – Email Address – Username -
Building Contacts § Get email domain – MX record lookup
– Whois Contacts § Naming Convention – Websites – Whois Contacts / PGP Key Search – Search Engine "@domain.com" (Baidu) – Trial and Error – Jigsaw API § Email = Mangled Info + Domain -
Storyline Development § Google, Baidu § Social Networks § Code
Repositories § The usual... § Namechk.com? -
Credential Harvesting § Harvested credential dumps – ShouldIChangeMyPassword.com – Pwnedlist.com • API
• Expensive, but worth it § The problem? Hashes! – md5.noisette.ch – crackstation.net – leakdb.abusix.com (formerly goog.li) -
Physical Reconnaissance § PushPin § Geotagged media aggregator – Twitter – Picasa
– *YouTube – Flickr – Shodan – <your module here> -
Beyond Recon § Discovery – Exploitable pages – DNS cache snooping •
AV detection (Scrape-DNS) • Rob Dixon (@304geek) – Backup files – Interesting files § Exploitation – XPath brute forcer – Command injector -
Reporting § Analysis – CSV - reporting/csv_file – PushPin – reporting/pushpin §
Compatibility – List - reporting/list § Deliverable – HTML - reporting/html_report -
http://recon-ng.com http://lanmaster53.com Want more free tools and webcasts? Send me
your contact information! @LaNMaSteR53 [email protected] Thank You!