Gunz MRS Unpacker Source

Results 1 to 16 of 16
  1. #1
    Mako is insane. ThePhailure772 is offline
    MemberRank
    Sep 2007 Join Date
    1,115Posts

    Gunz MRS Unpacker Source

    Wizkid is an idiot. This does not include my signature scanner library. This unpacks every file, not just XMLs like Peter's bullshit.

    Code:
    #include <windows.h>
    #include <stdio.h>
    
    #include "Detour/CDetour.h"
    
    void create_subdirs (const char *path) {
    
      char *work = strdup(path), *ptr;
    
      for (ptr = work; *ptr; ++ ptr)
        if (*ptr == '\\') {
          *ptr = 0;
          printf("subdir: [%s]\n", work);
    	  CreateDirectory (work,NULL);
          *ptr = '\\';
        }
    
      free(work);
    
    }
    
    CDetour MZFile__ReadDet;
    void __stdcall MZFile__ReadHook (int i, void *lpBuffer, int nSize)
    {
    	printf ("Hook?\n");
    	char *lpFile;
    	_asm mov lpFile, esi
    	printf ("[I=%i] MZFile::Read [%s][\n", i, lpFile);
    	char szPath[256];
    	sprintf(szPath,"MRS\\%s", lpFile);
    	for(int i =0; i <strlen(szPath); i++)
    		if(szPath[i] == '/')
    			szPath[i] = '\\';
    	
    	create_subdirs (szPath);
    	MZFile__ReadDet.Org (i, lpBuffer, nSize);
    	DWORD dwWrote;
    	HANDLE hFile = CreateFile (szPath, GENERIC_WRITE,NULL,NULL,CREATE_ALWAYS,FILE_ATTRIBUTE_NORMAL,NULL);
    	WriteFile (hFile, lpBuffer, nSize, &dwWrote, NULL);
    	printf("%u]\n", dwWrote);
    
    }
    
    CDetour MZip__ReadFileDet;
    void __stdcall MZip__ReadFileHook (const char *szFile, void *lpBuffer, int nSize)
    {	
    	char szPath[256];
    	sprintf(szPath,"MRS\\%s",szFile);
    	
    	for(int i =0; i <strlen(szPath); i++)
    		if(szPath[i] == '/')
    			szPath[i] = '\\';
    
    	
    	create_subdirs (szPath);
    	MZip__ReadFileDet.Org (szFile, lpBuffer, nSize);
    
    	printf ("%s (",szFile);
    	DWORD dwWrote;
    	HANDLE hFile = CreateFile (szPath, GENERIC_WRITE,NULL,NULL,CREATE_ALWAYS,FILE_ATTRIBUTE_NORMAL,NULL);
    	WriteFile (hFile, lpBuffer, nSize, &dwWrote, NULL);
    	printf("%u)\n", dwWrote);
    	CloseHandle (hFile);
    }
    
    void Initialize ()
    {
    	AllocConsole ( );
    	freopen ( "CONOUT$", "wb", stdout );
    	printf ("Testing..\n");
    	MZip__ReadFileDet.Detour ((PBYTE)0x00538B40, (PBYTE)MZip__ReadFileHook, true);
    	MZip__ReadFileDet.Apply ();
    
    	MZFile__ReadDet2.Detour ((PBYTE)0x00538960, (PBYTE)MZFile__ReadHook2, true);
    	MZFile__ReadDet2.Apply ();
    	AllocConsole ( );
    	freopen ( "CONOUT$", "wb", stdout );
    	printf ("Detours applied.\n");
    }
    
    
    BOOL APIENTRY DllMain( HMODULE hModule, DWORD  ul_reason_for_call, LPVOID lpReserved )
    {
    	DisableThreadLibraryCalls ( hModule );
    	switch (ul_reason_for_call)
    	{
    		case DLL_PROCESS_ATTACH:
    		{
    			Initialize( );
    			break;
    		}
    		case DLL_THREAD_ATTACH:
    		case DLL_THREAD_DETACH:
    		case DLL_PROCESS_DETACH:
    			break;
    	}
    	return TRUE;
    }


  2. #2
    2D > 3D Wucas is offline
    MemberRank
    Dec 2008 Join Date
    In your bed :3Location
    2,523Posts

    Re: Gunz MRS Unpacker Source

    omg coolio thanks.

    Btw jacob, dont allow idiots to make you release your hard work. If you know you made it, then thats all that matters

  3. #3
    2D > 3D Wucas is offline
    MemberRank
    Dec 2008 Join Date
    In your bed :3Location
    2,523Posts

    Re: Gunz MRS Unpacker Source

    Quote Originally Posted by eele View Post
    It isn't about that. What your saying has nothing to do with what I said. I just where claiming that Wizkid has owned him in the First post of Phail that he where saying 'Wizkid is an idiot. This does not include my signature scanner library. This unpacks every file, not just XMLs like Peter's bullshit.'

    But Wizkid said that he only looked to the XML files. Lol so I don't see a thing why flaming me=( If phails more knows than wizkid about Gunz, idc. Wizkid did much for the Community so please gtfo(A):D
    i wasnt flaiming you at all, i was just messing with you and pointing out the fact that he has done hardly anything for gunz in the past. People claim jacob here has stolen work from others and shit, when its been proven that this so called "Dutch Hero" is a leecher himself. Just because phail hacks and develops people decide hes a "bad man", but honestly, developing is hacking itself. Tbh jizzy is probably not a bad guy in real life, and i know jacob isnt, as are we all, but to others (Cough Maiet) we are all viewed as thieves. Its all about point of view. I dont like wizzy jizzy and i dont want people placing jacob on a throne then throwing stones at him, so i say my opinion. Egotistical behavior is in our genetics, but here it seems it takes the best of us all

    /Lucas
    Last edited by Wucas; 10-08-09 at 01:01 AM.

  4. #4
    Mako is insane. ThePhailure772 is offline
    MemberRank
    Sep 2007 Join Date
    1,115Posts

    Re: Gunz MRS Unpacker Source

    Thread cleaned up. Stay on topic guys.

  5. #5
    (。◕‿‿◕。) Nobody666 is offline
    MemberRank
    Oct 2008 Join Date
    1,773Posts

    Re: Gunz MRS Unpacker Source

    how the hell did you get moderator? You rage alot and get banned alot...your mains still banned to >_>

    anyways...ty?

  6. #6
    Mako is insane. ThePhailure772 is offline
    MemberRank
    Sep 2007 Join Date
    1,115Posts

    Re: Gunz MRS Unpacker Source

    Quote Originally Posted by Nobody666 View Post
    how the hell did you get moderator? You rage alot and get banned alot...your mains still banned to >_>

    anyways...ty?
    My mainw as banned do to me posting about an exploit. Which I wanted a new name anyways.

  7. #7
    Account Upgraded | Title Enabled! Tman151 is offline
    MemberRank
    May 2009 Join Date
    CaliforniaLocation
    306Posts

    Re: Gunz MRS Unpacker Source

    Quote Originally Posted by Theoretical View Post
    My mainw as banned do to me posting about an exploit. Which I wanted a new name anyways.
    Congrats Phail.

  8. #8
    Reverse Engineer ThievingSix is offline
    MemberRank
    Mar 2007 Join Date
    CaliforniaLocation
    901Posts

    Re: Gunz MRS Unpacker Source

    It's because he now has connections. Anyway it was about time someone got mod anyhow.

  9. #9
    2D > 3D Wucas is offline
    MemberRank
    Dec 2008 Join Date
    In your bed :3Location
    2,523Posts

    Re: Gunz MRS Unpacker Source

    Quote Originally Posted by ThievingSix View Post
    It's because he now has connections. Anyway it was about time someone got mod anyhow.
    mhm just like i was saying, at least we gotz an active mod now xD

  10. #10
    Account Upgraded | Title Enabled! Cancel is offline
    MemberRank
    Jan 2008 Join Date
    ItalyLocation
    337Posts

    Re: Gunz MRS Unpacker Source

    Some example?

  11. #11
    Reverse Engineer ThievingSix is offline
    MemberRank
    Mar 2007 Join Date
    CaliforniaLocation
    901Posts

    Re: Gunz MRS Unpacker Source

    Quote Originally Posted by BetrayedAcheron View Post
    mhm just like i was saying, at least we gotz an active mod now xD
    Agreed.

  12. #12
    Proficient Member [S]pirit is offline
    MemberRank
    Apr 2009 Join Date
    182Posts

    Re: Gunz MRS Unpacker Source

    Quote Originally Posted by ThievingSix View Post
    It's because he now has connections. Anyway it was about time someone got mod anyhow.
    I admit. I gave him mod. I'm just too awesome to be true. D:

  13. #13
    Account Upgraded | Title Enabled! Gosu[ru] is offline
    MemberRank
    Jan 2009 Join Date
    http://www.epicLocation
    359Posts

    Re: Gunz MRS Unpacker Source

    how using it?? help making..

  14. #14
    Account Upgraded | Title Enabled! PenguinGuys is offline
    MemberRank
    Sep 2009 Join Date
    AlabamaLocation
    261Posts

    Re: Gunz MRS Unpacker Source

    Quote Originally Posted by Gosu[ru] View Post
    how using it?? help making..
    It's C++. You copy + paste and call yourself a 1337 coder.

  15. #15
    Account Upgraded | Title Enabled! Gosu[ru] is offline
    MemberRank
    Jan 2009 Join Date
    http://www.epicLocation
    359Posts

    Re: Gunz MRS Unpacker Source

    OMg give tutorial how to make it plz >.>'

  16. #16
    Adrian - Gunz Addict Adriann is offline
    MemberRank
    Oct 2008 Join Date
    Miami, FLLocation
    658Posts

    Re: Gunz MRS Unpacker Source

    Quote Originally Posted by Gosu[ru] View Post
    OMg give tutorial how to make it plz >.>'
    ive seen you for the past 2 years on this forum asking for help LOL, had to say that. and nice post i guess for teh newbs



Advertisement