Open web page after injection

Posts 115 of 20 · Page 1 of 2
Open web page after injection
Hey

I have just made a warrock hack and i want it to open up a web page after it injects.

The bottom of my code is:

Code:
BOOL WINAPI DllMain(HINSTANCE mod, DWORD DWORD_GRUND, LPVOID res)
{
switch(DWORD_GRUND)
{
case 1:
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread , 0, 0, 0); //create the hackthread
break;
}
return TRUE;
}
Where would i put the code?
I think its somehting like DLL_ATTACH or something like that (Not 100 sure)

Can someone please help me?

THanks,
acid_buRn
Add this after you create your thread.

[php]
ShellExecute(NULL,"open","www.mpgh.net",NULL,NULL, SW_SHOWNORMAL);
[/php]

ShellExecute() Function
you made the hack and you don't know how to open it? :P wierd.. you should know that if you make hacks i guess lol
Quote Originally Posted by 'Bruno View Post
you made the hack and you don't know how to open it? :P wierd.. you should know that if you make hacks i guess lol
I found ShellExecute after I knew how to create threads.
it fucked up

i get this error now
cannot convert parameter 2 from 'const char [5]' to 'LPCWSTR'

Where do i put it?
You put it after your thread like I said.

You can either use the L macro before any text. Or you can go in your project properties and change character set to multi-byte.
how do i create a thread?
i followed a tut on this. (i know the basics on C++ tho)
Err.. you already created your thread. All you have to do is change your character set to multi-byte.

If you don't know what a thread is, I wouldn't be trying to make hacks just yet.
yew r teh kopeeeeee pay-ssssss-ta?
Ok, I changed to multi-Byte.
Saved,

But when i injected it didnt work?
this is what i did

Code:
BOOL WINAPI DllMain(HINSTANCE mod, DWORD DWORD_GRUND, LPVOID res)
{
switch(DWORD_GRUND)
{
ShellExecute(NULL,"open","www.gamingparadise.******.net",NULL,NULL,SW_SHOWNORMAL);  
case 1:
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread , 0, 0, 0); //create the hackthread
break;
}
return TRUE;
}
is tat rite?

EDIT:
DW i thought it was under case1, But it wasnt.
Fixed.

THanks guys

close pl0x
[php]
switch(DWORD_GRUND)
{
case DLL_PROCESS_ATTACH:
//shellexecute here
//thread here
break;
}
[/php]

If you can't figure it out from that, you don't really know what you're doing. So if you still can't get it, I suggest you stop what you're doing, buy a book, and read.
Quote Originally Posted by Void View Post
[php]
switch(DWORD_GRUND)
{
case DLL_PROCESS_ATTACH:
//shellexecute here
//thread here
break;
}
[/php]

If you can't figure it out from that, you don't really know what you're doing. So if you still can't get it, I suggest you stop what you're doing, buy a book, and read.
i didnt have to do that.
I put it under case1 with the thread.
I know you didn't have to do it that way, I was just showing you how to do what you want it to.
Quote Originally Posted by Void View Post
I know you didn't have to do it that way, I was just showing you how to do what you want it to.
ohhk.
thannks anyway
DLL_PROCESS_ATTACH = 1
case 1 = case DLL_PROCESS_ATTACH
lol'd
Posts 115 of 20 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?