Hell_Daddy's leaving present

Posts 1–15 of 30 · Page 1 of 2
Hell_Daddy's leaving present
@Nico prefered if I'd release something else, so here we go:

Code:
HWND myDialog;
HWND editBox;
void __cdecl xDevMsg(char const *fmt, ...)
{
	va_list va_alist;
	char logbuf[512]="";

	va_start (va_alist, fmt);
	_vsnprintf(logbuf+strlen(logbuf), sizeof(logbuf) - strlen(logbuf), fmt, va_alist);
	va_end (va_alist);

	int selpos = SendDlgItemMessage(myDialog, 156, LB_ADDSTRING, 0, (LPARAM)logbuf);
	SendDlgItemMessage(myDialog, 156, LB_SETCURSEL, selpos, 0);
}

void MakeJMP(BYTE *pAddress, DWORD dwJumpTo, DWORD dwLen)
{
    DWORD dwOldProtect, dwBkup, dwRelAddr;
    VirtualProtect(pAddress, dwLen, PAGE_EXECUTE_READWRITE, &dwOldProtect);
    dwRelAddr = (DWORD) (dwJumpTo - (DWORD) pAddress) - 5;
    *pAddress = 0xE9;
    *((DWORD *)(pAddress + 0x1)) = dwRelAddr;
    for(DWORD x = 0x5; x < dwLen; x++) *(pAddress + x) = 0x90;
    VirtualProtect(pAddress, dwLen, dwOldProtect, &dwBkup);
    return;
}

void conHandler(void)
{
	MSG msg;
	CreateInterfaceFn CIEngine;
	HMODULE enginehandle=NULL;

	while(!GetModuleHandle("server.dll") || !GetModuleHandle("engine.dll") || !GetModuleHandle("client.dll") || !GetModuleHandle("tier0.dll"))
	{
		Sleep(100);
	}
	enginehandle = GetModuleHandle("engine.dll");
	Sleep(1000);

	myDialog = CreateWindowEx(0, WC_DIALOG,"Console by Hell_Demon[VIP Edition 4.0]",WS_OVERLAPPEDWINDOW | WS_VISIBLE,	400,100,800,380,NULL,NULL,NULL,NULL	);

	CreateWindow( "listbox", "",
		WS_VISIBLE|WS_CHILD|LBS_HASSTRINGS|WS_HSCROLL|WS_VSCROLL,
		0, 0, 780, 300, myDialog, (HMENU)156, 0, NULL);

	editBox = CreateWindow( "edit", "",
		WS_VISIBLE|WS_CHILD,
		0, 305, 780, 20, myDialog, (HMENU)158, 0, NULL);

	HellSigScan DevMss((unsigned char*)"\x75\x21\x68\x00\x00\x00\x00\xE8\x00\x00\x00\x00\x68\x00\x00\x00\x00\xE8\x00\x00\x00\x00\x83\xC4\x08", "xxx????x????x????x????xxx", 25);
	unsigned long DevMsgH = (unsigned long)DevMss.sigaddy
	DevMsgH+=8;
	unsigned long tmpp = (DevMsgH+4) + *(unsigned long*)DevMsgH;
	MakeJMP((PBYTE)tmpp, (DWORD)&xDevMsg, 5);
	MakeJMP((PBYTE)(GetProcAddress(GetModuleHandle("tier0.dll"), "?DevMsg@@YAXPBDZZ")), (DWORD)&xDevMsg, 5);
	MakeJMP((PBYTE)(GetProcAddress(GetModuleHandle("tier0.dll"), "Msg")), (DWORD)&xDevMsg, 5);
	MakeJMP((PBYTE)(GetProcAddress(GetModuleHandle("tier0.dll"), "Log")), (DWORD)&xDevMsg, 5);

	while(1)
	{
		if(PeekMessage(&msg,NULL,0,0,PM_REMOVE))
		{
			if(msg.hwnd == editBox && msg.message == WM_KEYDOWN && msg.wParam == VK_RETURN)
			{
				int len = GetWindowTextLength(editBox);
				char *tmp = new char[len+1];
				GetWindowText(editBox, tmp, len+1);
				string tmps(tmp);
				if(tmps.find(" ") == string::npos)
				{
					if(cvar->FindVar(tmp) != NULL)
					{
						int selpos = SendDlgItemMessage(myDialog, 156, LB_ADDSTRING, 0, (LPARAM)tmp);
						SendDlgItemMessage(myDialog, 156, LB_SETCURSEL, selpos, 0);
						char tbuff[512] = "";
						sprintf(tbuff, "\"%s\" = \"%s\" (def. \"%s\")", tmp, cvar->FindVar(tmp)->GetString(), cvar->FindVar(tmp)->m_pszDefaultValue);
						selpos = SendDlgItemMessage(myDialog, 156, LB_ADDSTRING, 0, (LPARAM)tbuff);
						SendDlgItemMessage(myDialog, 156, LB_SETCURSEL, selpos, 0);
					}
					else
					{
						int selpos = SendDlgItemMessage(myDialog, 156, LB_ADDSTRING, 0, (LPARAM)tmp);
						SendDlgItemMessage(myDialog, 156, LB_SETCURSEL, selpos, 0);
						SendConsoleCommand(tmp);
					}
				}
				else
				{
					int selpos = SendDlgItemMessage(myDialog, 156, LB_ADDSTRING, 0, (LPARAM)tmp);
					SendDlgItemMessage(myDialog, 156, LB_SETCURSEL, selpos, 0);
					SendConsoleCommand(tmp);
				}
				SetWindowText(editBox, "");
				delete tmp;
			}
			TranslateMessage(&msg); 
			DispatchMessage(&msg);
		}
		if(GetAsyncKeyState(VK_OEM_3))
		{
			BringWindowToTop(myDialog);
			SetFocus(editBox);
		}
		Sleep(1);
	}
}
why you leaving bro? ?_?
What does it exactly doing? Tell us :>
We will miss you broseph.
bye hell, will miss ya
Sorry for pissing you off Wes. Bye.
Hmm, what does this do?
And bai, Hell. :<
Quote Originally Posted by DrugsDealah View Post
Hmm, what does this do?
And bai, Hell. :<
Seems to be his VIP console source code.
Good Luck Hell Demonl in your future endeavors!
It's been a great run, over a year ago I released my first console in this section. I'm proud of what we've achieved in Vindictus
I still remember you when i first joined this site. Sorry to see you go, but there's gotta be more to life than hacking children's computer games.

@szpyta: I think this is the source code for his console.
Not the whole code. But the GUI part.

---------- Post added at 09:28 PM ---------- Previous post was at 09:28 PM ----------

Quote Originally Posted by Hell_Demon View Post
It's been a great run, over a year ago I released my first console in this section. I'm proud of what we've achieved in Vindictus
We're pro.
So long Hell_Demon. Remember you since pretty much the start of this whole Vindictus thing. Tis a shame you must go, you did so much for this community. You will never be forgotten, as you inspired many of the hacks we have today. Good night Sweet Prince.
Quote Originally Posted by lockdown6435 View Post
So long Hell_Demon. Remember you since pretty much the start of this whole Vindictus thing. Tis a shame you must go, you did so much for this community. You will never be forgotten, as you inspired many of the hacks we have today. Good night Sweet Prince.
The quote in your sig tells about when you joined this section. Good ol' times.
And you're right, without Hell I wouldn't have joined MPGH.
Quote Originally Posted by Nico View Post


The quote in your sig tells about when you joined this section. Good ol' times.
And you're right, without Hell I wouldn't have joined MPGH.
Yes they were, now look at this section. Pretty frickin' big with a lot of potential, back then it was mostly Pie, You, Hell, and DanK running the scene. But, things always change.
Take it easy man, all your work is greatly appreciated and always will be.
Posts 1–15 of 30 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us