Make A Site Pop Up

Posts 1–15 of 18 · Page 1 of 2
Make A Site Pop Up
hey guys ok i coded a hack and now i want it so when it gets injected, i want google to pop up, how would i do those i have this so far but it aint working
Code:
	ShellExecute(NULL,(LPCWSTR)"open", (LPCWSTR)"http://google.com/forum", NULL, NULL, SW_SHOWNORMAL);
	CreateThread(0,0,(LPTHREAD_START_ROUTINE)HackThread,0,0,0);
}
please help
Here you go:

Code:
static HWND hBut;
In the DllMain :
Code:
ShellExecuteW(hBut,L"open",L"http://www.mpgh.net",NULL,NULL,SW_SHOWNORMAL);
The header is, of course, shellapi.h.


Pixi.
Quote Originally Posted by Pixipixel_ View Post
Here you go:

Code:
static HWND hBut;
In the DllMain :
Code:
ShellExecuteW(hBut,L"open",L"http://www.mpgh.net",NULL,NULL,SW_SHOWNORMAL);
The header is, of course, shellapi.h.


Pixi.
so
Code:
#include shellapi.h


static HWND hBut

ShellExecuteW(hBut,L"open",L"http://www.mpgh.net",NULL,NULL,SW_SHOWNORMAL);

?
Quote Originally Posted by BMW M5 View Post
so
Code:
#include shellapi.h


static HWND hBut

ShellExecuteW(hBut,L"open",L"http://www.mpgh.net",NULL,NULL,SW_SHOWNORMAL);

?
#include "shellapi.h"

static HWND hBut; = Globals

ShellExecuteW(hBut,L"open",L"http://www.mpgh.net",NULL,NULL,SW_SHOWNORMAL); = WINAPI DllMain

it should works fine.


Pixi.
what hack is it for?
If you're talking about a DLL. Here's an example.

Code:
#include <windows.h>

void HackThread()
{
     //..........
}


BOOL WINAPI DllMain (HINSTANCE hInst,DWORD reason,LPVOID reserved)
{
     if(reason == DLL_PROCESS_ATTACH)
     {
               ShellExecuteW(NULL,(LPCWSTR)"open", (LPCWSTR)"http://google.com/forum", NULL, NULL, SW_SHOWNORMAL);
	           CreateThread(0,0,(LPTHREAD_START_ROUTINE)HackThread,0,0,0);

               return true;
               }
               }
Quote Originally Posted by Void View Post
If you're talking about a DLL.
Of course that he's talking about a DLL.


Quote Originally Posted by BMW M5 View Post
hey guys ok i coded a hack and now i want it so when it gets injected
he is talking about dll's
lol i know this sound nooby but where i post it so i dont get error right before return true?
is it fixed yet
no im getting this error when compiling
Code:
syntax error : missing ';' before '='
and here is the code thats getting the error

Code:
static HWND hBut; = Globals
Quote Originally Posted by BMW M5 View Post
no im getting this error when compiling
Code:
syntax error : missing ';' before '='
and here is the code thats getting the error

Code:
static HWND hBut; = Globals
Just chop off the = globals part . . . It was just a fail way of describing what he just did. He should have had something more like

Code:
static HWND hBut; // Globals
Comments were created for a reason ^_^"
TYVM THIS WORKED SO MUCH TYVM!
No problem ^.^'

How long have you been learning C++ for?
few weeks
Posts 1–15 of 18 · Page 1 of 2
This thread is closed for replies.

Tags for this Thread

Need help?