Top Banner
CANSECWEST 2007 OR OR HACK HARD HACK HARD LIVE FREE LIVE FREE M E T A S P L O I T 2 0 0 7
23

LIVE FREE ORHACK HARD - CanSecWest · • Ruby shell available at any time. CANSECWEST 2007 scalability ... • timestomp (f*off Encase) ... • Write security tools as modules

Sep 08, 2018

Download

Documents

lyhanh
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: LIVE FREE ORHACK HARD - CanSecWest · • Ruby shell available at any time. CANSECWEST 2007 scalability ... • timestomp (f*off Encase) ... • Write security tools as modules

CANSECWEST 2007

OROR HACK HARDHACK HARDLIVE FREELIVE FREE

M E T A S P L O I T 2 0 0 7

Page 2: LIVE FREE ORHACK HARD - CanSecWest · • Ruby shell available at any time. CANSECWEST 2007 scalability ... • timestomp (f*off Encase) ... • Write security tools as modules

CANSECWEST 2007

who am i ?who am i ?

H D Moore <hdm [at] metasploit.com>

Metasploit project

Core developer and project lead

BreakingPoint SystemsDirector of Security Research

Page 3: LIVE FREE ORHACK HARD - CanSecWest · • Ruby shell available at any time. CANSECWEST 2007 scalability ... • timestomp (f*off Encase) ... • Write security tools as modules

CANSECWEST 2007

why listen ?why listen ?• Fun with Metasploit 3

• Tools for pen-testers

• Tools for bug hunters

• API for developers

Page 4: LIVE FREE ORHACK HARD - CanSecWest · • Ruby shell available at any time. CANSECWEST 2007 scalability ... • timestomp (f*off Encase) ... • Write security tools as modules

CANSECWEST 2007

metasploit frameworkmetasploit framework• An exploit development platform

• Security researchers• Penetration testers• Security vendors• Script kiddies

Page 5: LIVE FREE ORHACK HARD - CanSecWest · • Ruby shell available at any time. CANSECWEST 2007 scalability ... • timestomp (f*off Encase) ... • Write security tools as modules

CANSECWEST 2007

metasploit coveragemetasploit coverage• In the last few weeks

• Windows .ANI (unpatched)• Windows DNS RPC (unpatched)• Handful of ActiveX exploits• Fun new DCERPC tools

Page 6: LIVE FREE ORHACK HARD - CanSecWest · • Ruby shell available at any time. CANSECWEST 2007 scalability ... • timestomp (f*off Encase) ... • Write security tools as modules

CANSECWEST 2007

metasploit historymetasploit history• 1.0 (2003-2004) PERL

• 15 exploits, curses UI

• 2.7 (2003-2006) PERL• 150+ exploits, 3 UIs

• 3.0 (2007+) RUBY

Page 7: LIVE FREE ORHACK HARD - CanSecWest · • Ruby shell available at any time. CANSECWEST 2007 scalability ... • timestomp (f*off Encase) ... • Write security tools as modules

CANSECWEST 2007

metasploit 3.0metasploit 3.0• 100,000 lines of Ruby• 53,000 lines of C/C++• 8,000 lines of ASM• 360 unique modules• 2 years to develop

Page 8: LIVE FREE ORHACK HARD - CanSecWest · • Ruby shell available at any time. CANSECWEST 2007 scalability ... • timestomp (f*off Encase) ... • Write security tools as modules

CANSECWEST 2007

3.0 release3.0 release• Announced March 27th 2007

• 20,000 IPs downloaded

• 4,000 IPs updated

• RoR == 100+ load avg.

Page 9: LIVE FREE ORHACK HARD - CanSecWest · • Ruby shell available at any time. CANSECWEST 2007 scalability ... • timestomp (f*off Encase) ... • Write security tools as modules

CANSECWEST 2007

compatibilitycompatibility• Linux, BSD, Win32, Mac OS X

• Native Windows support

• Runs on embedded Linux/BSD• Nokia 770, Nokia N800• Zaurus (multiple models)

Page 10: LIVE FREE ORHACK HARD - CanSecWest · • Ruby shell available at any time. CANSECWEST 2007 scalability ... • timestomp (f*off Encase) ... • Write security tools as modules

CANSECWEST 2007

extensibilityextensibility• New Auxiliary module format

• Event hooking framework

• Plugins can hook and extend

• Ruby shell available at any time

Page 11: LIVE FREE ORHACK HARD - CanSecWest · • Ruby shell available at any time. CANSECWEST 2007 scalability ... • timestomp (f*off Encase) ... • Write security tools as modules

CANSECWEST 2007

scalabilityscalability• Modules split into directories

• Modules are cached

• Namespace is enforced

• Supports thousands of modules

Page 12: LIVE FREE ORHACK HARD - CanSecWest · • Ruby shell available at any time. CANSECWEST 2007 scalability ... • timestomp (f*off Encase) ... • Write security tools as modules

CANSECWEST 2007

concurrencyconcurrency• Use Ruby's built-in threading

• Multiple users per interface

• Persistent exploit modules

• Handle multiple shells at once

Page 13: LIVE FREE ORHACK HARD - CanSecWest · • Ruby shell available at any time. CANSECWEST 2007 scalability ... • timestomp (f*off Encase) ... • Write security tools as modules

CANSECWEST 2007

802.11802.11• Ruby-Lorcon (injection)

• Ruby-PcapX (sniffing)

• Rewrites of common tools

• 802.11 driver exploits

Page 14: LIVE FREE ORHACK HARD - CanSecWest · • Ruby shell available at any time. CANSECWEST 2007 scalability ... • timestomp (f*off Encase) ... • Write security tools as modules

CANSECWEST 2007

kernel-modekernel-mode• Support win32 kernel payloads

• Stage any userland payload

• Opens the door...

Page 15: LIVE FREE ORHACK HARD - CanSecWest · • Ruby shell available at any time. CANSECWEST 2007 scalability ... • timestomp (f*off Encase) ... • Write security tools as modules

CANSECWEST 2007

client-sideclient-side• Web server for browser exploits

• SMTP delivery of file-format bugs

• Inject any payload as an EXE

• Deep evasion features

Page 16: LIVE FREE ORHACK HARD - CanSecWest · • Ruby shell available at any time. CANSECWEST 2007 scalability ... • timestomp (f*off Encase) ... • Write security tools as modules

CANSECWEST 2007

meterpretermeterpreter• The super-payload for Windows

• Merged functions into “stdapi”• ls, rm, upload, download• ps, kill, execute, open• route, ifconfig, portfwd• eventlog, registry, threads

Page 17: LIVE FREE ORHACK HARD - CanSecWest · • Ruby shell available at any time. CANSECWEST 2007 scalability ... • timestomp (f*off Encase) ... • Write security tools as modules

CANSECWEST 2007

meterpretermeterpreter• The Meterpreter “priv” extension

• hashdump (no-disk pwdump)• timestomp (f*off Encase)• privilege escalation...

meterpreter > use priv

Page 18: LIVE FREE ORHACK HARD - CanSecWest · • Ruby shell available at any time. CANSECWEST 2007 scalability ... • timestomp (f*off Encase) ... • Write security tools as modules

CANSECWEST 2007

meterpretermeterpreter• Provides a rich Ruby API

• Meterpreter scripting• Kill all antivirus, firewalls, etc• Search and download files• Read and write process memory...

Page 19: LIVE FREE ORHACK HARD - CanSecWest · • Ruby shell available at any time. CANSECWEST 2007 scalability ... • timestomp (f*off Encase) ... • Write security tools as modules

CANSECWEST 2007

auxiliaryauxiliary• Write security tools as modules

• Seperated into functional groups• discovery, scanning, info, dos• audit, brute force, fuzzing

Page 20: LIVE FREE ORHACK HARD - CanSecWest · • Ruby shell available at any time. CANSECWEST 2007 scalability ... • timestomp (f*off Encase) ... • Write security tools as modules

CANSECWEST 2007

licensinglicensing• Metasploit Framework License

• Prevents commercial abuse

• Allows commercial modules

• Not FSF/OSU compatible

Page 21: LIVE FREE ORHACK HARD - CanSecWest · • Ruby shell available at any time. CANSECWEST 2007 scalability ... • timestomp (f*off Encase) ... • Write security tools as modules

CANSECWEST 2007

licensinglicensing• Rex library provided under BSD

• Rex includes the interesting code• HTTP, SMB, DCERPC, SMTP

Page 22: LIVE FREE ORHACK HARD - CanSecWest · • Ruby shell available at any time. CANSECWEST 2007 scalability ... • timestomp (f*off Encase) ... • Write security tools as modules

CANSECWEST 2007

Demos !Demos !

Page 23: LIVE FREE ORHACK HARD - CanSecWest · • Ruby shell available at any time. CANSECWEST 2007 scalability ... • timestomp (f*off Encase) ... • Write security tools as modules

CANSECWEST 2007

questions ?questions ?