[Source Code] AllServer

Posts 1–7 of 7 · Page 1 of 1
[Source Code] AllServer
Here my AllServer Source:
Code:
void *DetJmp(BYTE *src, const BYTE *dst, const int len) 
{
 BYTE *jmp =(BYTE*)malloc(len+5);
 DWORD dwBack;

 VirtualProtect(src, len, PAGE_READWRITE, &dwBack);
 memcpy(jmp, src, len); 
 jmp += len;
 jmp[0] = 0xE9;
 *(DWORD*)(jmp+1) =(DWORD)(src+len - jmp) - 5;

 src[0] = 0xE9;
 *(DWORD*)(src+1) =(DWORD)(dst - src) - 5;
 for(int i=5; i<len; i++) src[i] = 0x90;
 VirtualProtect(src, len, dwBack, &dwBack);

 return(jmp-len);
}

int    URLgetpage(char *link, char *buffer, int maxsize)
{
  HINTERNET hSession;  
  HINTERNET hURL;
  DWORD dwBYTEsRead;
  int   ok;

  ok=0;
  buffer[0]=0;
  hSession = InternetOpen(                         // Make internet connection.
                  "Microsoft Internet Explorer",   // agent
                  INTERNET_OPEN_TYPE_PRECONFIG,    // access
                  NULL, NULL, 0);                  // defaults
  if (hSession) {
      hURL = InternetOpenUrl(                 // Make connection to desired page.
             hSession,                        // session handle
             link,                             // URL to access
             NULL, 0, 0, 0);                 // defaults
      if (hURL) {
          // Read page into memory buffer.
          InternetReadFile(
                hURL,                // handle to URL
                (LPSTR)buffer,       // pointer to buffer
                (DWORD)maxsize,      // size of buffer
                &dwBYTEsRead);       // pointer to var to hold return value

          // Close down connections.
          InternetCloseHandle(hURL);
          buffer[dwBYTEsRead]=0;     // end string
          ok=(int)dwBYTEsRead;
      }

      InternetCloseHandle(hSession);
  }
  return ok;
}

char *Servers = new char[1512];

char *GetServers ()
{
	 char allserverurl[256];
	 sprintf(allserverurl,"http://wr3ngine.net/WrServer/list.php?sho=1");
	 UrlGetPage( allserverurl,Servers,1512);	
	 return Servers;
}

DWORD JumpServer = ADR_SERVERJUMP;

__declspec(naked)void InlineAsm_AllServers()
{
	GetServers();
	__asm
	{
mov dword ptr ds:[ADR_SERVER],18h
mov eax,Servers
mov [ebp+1004h-1020h], eax
cmp dword ptr ds: [ADR_SERVER],0
jmp [JumpServer]
	}
}

if(AllServer == 1)
{
DetJmp((BYTE*)ADR_ALLSERVER,(BYTE*)InlineAsm_AllServers,5);
}
if(AllServer == 0)
{
Memcpy((void*)ADR_ALLSERVER,(PBYTE)"\x83\x3D\x08\x23\xA2\x00\x00",7);
}

#define ADR_ALLSERVER 0x004AD19D//updated
#define ADR_SERVERJUMP (ADR_ALLSERVER  + 0x7)//updated
#define ADR_SERVER 0x00A22308//updated
if there are errors post them please!

Credits:
Croner (Detjmp and UrlGetPage i think)
Wr3ngine (for using their Serverlist)
Bananegel
Goodjob bro
Is there anyway of access all servers without using hacks?
Quote Originally Posted by gamernuub View Post
Is there anyway of access all servers without using hacks?
Using different IPs that match specific regions?
error C2601: 'DetJmp' : local function definitions are illegal
error C2601: 'URLgetpage' : local function definitions are illegal
error C2065: 'AllServer' : undeclared identifier
My AsmAllServer:

Code:
__declspec(naked)void iAsm_Servers()
{
	__asm
	{
		mov dword ptr ds:[ADR_ASM_SERVER],10h
		mov eax,ServerList
		mov esi, eax
		mov dword ptr ss:[ebp-1Ch], eax
		cmp dword ptr ds:[ADR_ASM_SERVER],0
		jmp [ServerJump]
	}
}
Btw goodjob, comes up erro's also the DetorJump doesn't work. outdated that is.
Posts 1–7 of 7 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us