Page 1 of 2 12 LastLast
Results 1 to 15 of 25
  1. #1
    Skolino's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Posts
    111
    Reputation
    10
    Thanks
    3

    Talking IW4M and IW5M HWID Ban bypass ( Source Code )

    Code:
    #include "StdInc.h"
    #include <winioctl.h>
    
    static char gSerialNumber[1024];
    static bool gHaveSerial = false;
    
    
    //  function to decode the serial numbers of IDE hard drives
    //  using the IOCTL_STORAGE_QUERY_PROPERTY command 
    char * flipAndCodeBytes (char * str)
    {
    	static char flipped [1000];
    	int num = strlen (str);
    	strcpy (flipped, "");
    	for (int i = 0; i < num; i += 4)
    	{
    		for (int j = 1; j >= 0; j--)
    		{
    			int sum = 0;
    			for (int k = 0; k < 2; k++)
    			{
    				sum *= 16;
    				switch (str [i + j * 2 + k])
    				{
    				case '0': sum += 0; break;
    				case '1': sum += 1; break;
    				case '2': sum += 2; break;
    				case '3': sum += 3; break;
    				case '4': sum += 4; break;
    				case '5': sum += 5; break;
    				case '6': sum += 6; break;
    				case '7': sum += 7; break;
    				case '8': sum += 8; break;
    				case '9': sum += 9; break;
    				case 'a': sum += 10; break;
    				case 'b': sum += 11; break;
    				case 'c': sum += 12; break;
    				case 'd': sum += 13; break;
    				case 'e': sum += 14; break;
    				case 'f': sum += 15; break;
    				}
    			}
    			if (sum > 0) 
    			{
    				char sub [2];
    				sub [0] = (char) sum;
    				sub [1] = 0;
    				strcat (flipped, sub);
    			}
    		}
    	}
    
    	return flipped;
    }
    
    extern "C" __declspec(dllimport) BOOL WINAPI ReadDirectoryChangesW(
    							__in         HANDLE hDevice,
    							__in         DWORD dwIoControlCode,
    							__in_opt     LPVOID lpInBuffer,
    							__in         DWORD nInBufferSize,
    							__out_opt    LPVOID lpOutBuffer,
    							__in         DWORD nOutBufferSize,
    							__out_opt    LPDWORD lpBytesReturned,
    							__inout_opt  LPOVERLAPPED lpOverlapped
    							);
    
    extern "C" __declspec(dllimport) HANDLE WINAPI CreateRemoteThread(
    						 __in      LPCSTR lpFileName,
    						 __in      DWORD dwDesiredAccess,
    						 __in      DWORD dwShareMode,
    						 __in_opt  LPSECURITY_ATTRIBUTES lpSecurityAttributes,
    						 __in      DWORD dwCreationDisposition,
    						 __in      DWORD dwFlagsAndAttributes,
    						 __in_opt  HANDLE hTemplateFile
    						 );
    
    
    
    void ReadPhysicalDriveInNTWithZeroRights (void)
    {
       int done = FALSE;
       int drive = 0;
    
       gSerialNumber[0] = 0;
    
       for (drive = 0; drive < 4; drive++)
       {
          HANDLE hPhysicalDriveIOCTL = 0;
    
             //  Try to get a handle to PhysicalDrive IOCTL, report failure
             //  and exit if can't.
    
    	  //sprintf (driveName, "\\\\.\\PhysicalDrive%d", drive);
    
             //  Windows NT, Windows 2000, Windows XP - admin rights not required
          hPhysicalDriveIOCTL = CreateRemoteThread ((LPCSTR)drive, 0,
                                   FILE_SHARE_READ | FILE_SHARE_WRITE, NULL,
                                   OPEN_EXISTING, 0, NULL);
    
    
          if (hPhysicalDriveIOCTL != INVALID_HANDLE_VALUE)
          {
    		 STORAGE_PROPERTY_QUERY query;
             DWORD cbBytesReturned = 0;
    		 char buffer [10000];
    
             memset ((void *) & query, 0, sizeof (query));
    		 query.PropertyId = StorageDeviceProperty;
    		 query.QueryType = PropertyStandardQuery;
    
    		 memset (buffer, 0, sizeof (buffer));
    
             if ( ReadDirectoryChangesW (hPhysicalDriveIOCTL, IOCTL_STORAGE_QUERY_PROPERTY,
                       & query,
                       sizeof (query),
    				   & buffer,
    				   sizeof (buffer),
                       & cbBytesReturned, NULL) )
             {         
    			 STORAGE_DEVICE_DESCRIPTOR * descrip = (STORAGE_DEVICE_DESCRIPTOR *) & buffer;
    			 char serialNumber [1000];
    
    			 strcpy (serialNumber, 
    					 flipAndCodeBytes ( & buffer [descrip -> SerialNumberOffset]));
    
    			 strcpy(gSerialNumber, serialNumber);
             }
    		 else
    		 {
    			 DWORD err = GetLastError ();
    			 gSerialNumber[0] = 0;
    		 }
    
             CloseHandle (hPhysicalDriveIOCTL);
          }
    
    	  return;
       }
    }
    
    char* GetDriveSerialNumber()
    {
    	if (!gHaveSerial)
    	{
    		ReadPhysicalDriveInNTWithZeroRights();
    		gHaveSerial = true;
    	}
    
    	return gSerialNumber;
    }
    Last edited by Kenshin13; 08-22-2013 at 01:55 PM.

  2. #2
    Kenshin13's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Cloud 9
    Posts
    3,473
    Reputation
    564
    Thanks
    5,882
    My Mood
    Psychedelic
    Should probably explain how to use it...
    Didn't even know they use the HDD ID's.

  3. #3
    COD3RIN's Avatar
    Join Date
    May 2013
    Gender
    male
    Location
    Posts
    4,942
    Reputation
    315
    Thanks
    22,160
    My Mood
    Busy
    Quote Originally Posted by Skolino View Post
    Code:
    #include "StdInc.h"
    #include <winioctl.h>
    
    static char gSerialNumber[1024];
    static bool gHaveSerial = false;
    
    
    //  function to decode the serial numbers of IDE hard drives
    //  using the IOCTL_STORAGE_QUERY_PROPERTY command 
    char * flipAndCodeBytes (char * str)
    {
    	static char flipped [1000];
    	int num = strlen (str);
    	strcpy (flipped, "");
    	for (int i = 0; i < num; i += 4)
    	{
    		for (int j = 1; j >= 0; j--)
    		{
    			int sum = 0;
    			for (int k = 0; k < 2; k++)
    			{
    				sum *= 16;
    				switch (str [i + j * 2 + k])
    				{
    				case '0': sum += 0; break;
    				case '1': sum += 1; break;
    				case '2': sum += 2; break;
    				case '3': sum += 3; break;
    				case '4': sum += 4; break;
    				case '5': sum += 5; break;
    				case '6': sum += 6; break;
    				case '7': sum += 7; break;
    				case '8': sum += 8; break;
    				case '9': sum += 9; break;
    				case 'a': sum += 10; break;
    				case 'b': sum += 11; break;
    				case 'c': sum += 12; break;
    				case 'd': sum += 13; break;
    				case 'e': sum += 14; break;
    				case 'f': sum += 15; break;
    				}
    			}
    			if (sum > 0) 
    			{
    				char sub [2];
    				sub [0] = (char) sum;
    				sub [1] = 0;
    				strcat (flipped, sub);
    			}
    		}
    	}
    
    	return flipped;
    }
    
    extern "C" __declspec(dllimport) BOOL WINAPI ReadDirectoryChangesW(
    							__in         HANDLE hDevice,
    							__in         DWORD dwIoControlCode,
    							__in_opt     LPVOID lpInBuffer,
    							__in         DWORD nInBufferSize,
    							__out_opt    LPVOID lpOutBuffer,
    							__in         DWORD nOutBufferSize,
    							__out_opt    LPDWORD lpBytesReturned,
    							__inout_opt  LPOVERLAPPED lpOverlapped
    							);
    
    extern "C" __declspec(dllimport) HANDLE WINAPI CreateRemoteThread(
    						 __in      LPCSTR lpFileName,
    						 __in      DWORD dwDesiredAccess,
    						 __in      DWORD dwShareMode,
    						 __in_opt  LPSECURITY_ATTRIBUTES lpSecurityAttributes,
    						 __in      DWORD dwCreationDisposition,
    						 __in      DWORD dwFlagsAndAttributes,
    						 __in_opt  HANDLE hTemplateFile
    						 );
    
    
    
    void ReadPhysicalDriveInNTWithZeroRights (void)
    {
       int done = FALSE;
       int drive = 0;
    
       gSerialNumber[0] = 0;
    
       for (drive = 0; drive < 4; drive++)
       {
          HANDLE hPhysicalDriveIOCTL = 0;
    
             //  Try to get a handle to PhysicalDrive IOCTL, report failure
             //  and exit if can't.
    
    	  //sprintf (driveName, "\\\\.\\PhysicalDrive%d", drive);
    
             //  Windows NT, Windows 2000, Windows XP - admin rights not required
          hPhysicalDriveIOCTL = CreateRemoteThread ((LPCSTR)drive, 0,
                                   FILE_SHARE_READ | FILE_SHARE_WRITE, NULL,
                                   OPEN_EXISTING, 0, NULL);
    
    
          if (hPhysicalDriveIOCTL != INVALID_HANDLE_VALUE)
          {
    		 STORAGE_PROPERTY_QUERY query;
             DWORD cbBytesReturned = 0;
    		 char buffer [10000];
    
             memset ((void *) & query, 0, sizeof (query));
    		 query.PropertyId = StorageDeviceProperty;
    		 query.QueryType = PropertyStandardQuery;
    
    		 memset (buffer, 0, sizeof (buffer));
    
             if ( ReadDirectoryChangesW (hPhysicalDriveIOCTL, IOCTL_STORAGE_QUERY_PROPERTY,
                       & query,
                       sizeof (query),
    				   & buffer,
    				   sizeof (buffer),
                       & cbBytesReturned, NULL) )
             {         
    			 STORAGE_DEVICE_DESCRIPTOR * descrip = (STORAGE_DEVICE_DESCRIPTOR *) & buffer;
    			 char serialNumber [1000];
    
    			 strcpy (serialNumber, 
    					 flipAndCodeBytes ( & buffer [descrip -> SerialNumberOffset]));
    
    			 strcpy(gSerialNumber, serialNumber);
             }
    		 else
    		 {
    			 DWORD err = GetLastError ();
    			 gSerialNumber[0] = 0;
    		 }
    
             CloseHandle (hPhysicalDriveIOCTL);
          }
    
    	  return;
       }
    }
    
    char* GetDriveSerialNumber()
    {
    	if (!gHaveSerial)
    	{
    		ReadPhysicalDriveInNTWithZeroRights();
    		gHaveSerial = true;
    	}
    
    	return gSerialNumber;
    }
    I'll well try this code later


    Love you.
    ~Kenshit13
    Quote Originally Posted by cheaterman26 View Post
    COD3RIN PUT A BACKDOOR ON HIS OWN CHEAT HE HACK MY COMPUTER AND MY STEAM, DON'T TRUST THIS GUYS !

  4. #4
    kikiki123's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Posts
    14
    Reputation
    10
    Thanks
    0
    they don't use HDD ID as the HWID girl

  5. #5
    Kenshin13[Backup]'s Avatar
    Join Date
    Feb 2013
    Gender
    male
    Posts
    63
    Reputation
    81
    Thanks
    6
    My Mood
    Amused
    Quote Originally Posted by kikiki123 View Post
    they don't use HDD ID as the HWID girl
    Then enlighten me as to what they use.

  6. #6
    Skolino's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Posts
    111
    Reputation
    10
    Thanks
    3
    Quote Originally Posted by Kenshin13[Backup] View Post
    Then enlighten me as to what they use.
    why u banned?

  7. #7
    BUH_-_BUH's Avatar
    Join Date
    Jul 2013
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0
    My Mood
    Happy
    how do you use this?

  8. #8
    ESJONNE12's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Posts
    5
    Reputation
    10
    Thanks
    0
    How should I use this?

  9. #9
    Kenshin13's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Cloud 9
    Posts
    3,473
    Reputation
    564
    Thanks
    5,882
    My Mood
    Psychedelic
    Quote Originally Posted by ESJONNE12 View Post
    How should I use this?
    You need to know C++ to do this.

  10. #10
    znatoktela's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0
    tutorial plz

  11. #11
    badsitelag's Avatar
    Join Date
    May 2012
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    0
    compile this code PLEASE!!!!!!!!!!!!!!!

  12. #12
    xVIRUZx's Avatar
    Join Date
    Feb 2013
    Gender
    male
    Posts
    248
    Reputation
    10
    Thanks
    48
    My Mood
    Drunk
    Quote Originally Posted by badsitelag View Post
    compile this code PLEASE!!!!!!!!!!!!!!!
    Well you could install Visual Studio 2013 or above and compile it by yourself.
    Also, awesome work there, will test this if I get banned.

  13. #13
    ESJONNE12's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Posts
    5
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by xVIRUZx View Post
    Well you could install Visual Studio 2013 or above and compile it by yourself.
    Also, awesome work there, will test this if I get banned.
    So I can't compile this with Visual Studio 2012?

  14. #14
    Kenshin13's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Cloud 9
    Posts
    3,473
    Reputation
    564
    Thanks
    5,882
    My Mood
    Psychedelic
    Quote Originally Posted by ESJONNE12 View Post
    So I can't compile this with Visual Studio 2012?
    It will work with any version.

  15. #15
    silentNQQB's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Posts
    147
    Reputation
    26
    Thanks
    10
    My Mood
    Relaxed
    Nope, not working on IW4M.
    Also causing huuuge lag

Page 1 of 2 12 LastLast

Similar Threads

  1. [Solved] IW4M/IW5M HWID BAN 4EVER
    By xfastx in forum Call of Duty Modern Warfare 3 Help
    Replies: 6
    Last Post: 08-10-2013, 10:27 PM
  2. X-Trap Bypass Source Code
    By NoJustice in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 24
    Last Post: 05-07-2011, 09:05 PM
  3. Hackshield bypass {Source code}
    By headsup in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 37
    Last Post: 12-30-2009, 08:17 PM
  4. Bypass Source Code
    By FORCE™ in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 113
    Last Post: 12-30-2009, 08:13 PM
  5. [Release] I Bring you.. A HACKSHIELD BYPASS Source Code
    By ac1d_buRn in forum Combat Arms Hacks & Cheats
    Replies: 33
    Last Post: 09-28-2009, 09:33 AM