GoodiesHQ

Fake and Gay

Jan 26th, 2014
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 2.30 KB | None | 0 0
  1. ##
  2. # This module requires Metasploit: http//metasploit.com/download
  3. # Current source: https://github.com/rapid7/metasploit-framework
  4. ##
  5.  
  6. require 'msf/core'
  7.  
  8. class Metasploit3 < Msf::Exploit::Remote
  9.   Rank = ExcellentRanking
  10.  
  11.   include Msf::Exploit::Remote::SMB
  12.   include Msf::Exploit::KernelMode
  13.  
  14.   def initialize(info = {})
  15.     super(update_info(info,
  16.       'Name' => 'Microsoft Windows 7-8.1 0day RCE NT Authority 1/14',
  17.       'Description' => %q{
  18. This module exploits a memory corruption in Microsoft NT Kernel build.
  19. There are no known patches as of now, but we are working on a fix
  20. },
  21.  
  22.       'Author' => [ 'Jesus', 'hdm', 'sf' ],
  23.       'License' => MSF_LICENSE,
  24.       'References' =>
  25.         [
  26.           [ 'MSB', 'MS14-001' ],
  27.           [ 'CVE', '2009-3103' ],
  28.           [ 'BID', '76299' ],
  29.           [ 'OSVDB', '77733' ],
  30.           [ 'URL', 'http://wowomg.com' ],
  31.           [ 'URL', 'http://wowomg.com' ]
  32.         ],
  33.       'DefaultOptions' =>
  34.         {
  35.           'EXITFUNC' => 'thread',
  36.         },
  37.       'Privileged' => true,
  38.       'Payload' =>
  39.         {
  40.           #'Space' => 1024,
  41.           #'StackAdjustment' => -3500,
  42.           #'DisableNops' => true,
  43.           #'EncoderType' => Msf::Encoder::Type::Raw,
  44.           #'ExtendedOptions' =>
  45.           #  {
  46.           #    'Stager' => 'stager_sysenter_hook',
  47.           #  }
  48.         },
  49.       'Platform' => 'win',
  50.       'Targets' =>
  51.         [
  52.           [ 'Windows 7 SP1/SP2, Windows 8, Windows 8.1',
  53.             {
  54.               'Platform' => 'win',
  55.               'Arch' => [ ARCH_X86 ],
  56.               'Ret' => 0xFFD00D09, # "POP ESI; RET" from the kernels HAL memory region ...no ASLR :)
  57.               'ReadAddress' => 0xFFDF0D04, # A readable address from kernel space (no nulls in address).
  58.               'ProcessIDHigh' => 0x0217, # srv2!SrvSnapShotScavengerTimer
  59.               'MagicIndex' => 0x3FFFFFB4, # (DWORD)( MagicIndex*4 + 0x130 ) == 0
  60.             }
  61.           ],
  62.         ],
  63.       'DefaultTarget' => 0,
  64.       'DisclosureDate' => 'Sep 07 2009'
  65.     ))
  66.  
  67.     register_options(
  68.       [
  69.         Opt::RPORT(445),
  70.         OptInt.new( 'WAIT', [ true, "The number of seconds to wait for the attack to complete.", 180 ] )
  71.       ], self.class)
  72.   end
  73.  
  74.   def autofilter
  75.     false
  76.   end
  77.  
  78.   def exploit
  79.     `echo "PWNED"`
  80.   end
  81.  
  82. end
Advertisement
Add Comment
Please, Sign In to add comment