Jump to content
Tuts 4 You

CreateThread C++ / asm


equlibrium

Recommended Posts

Posted (edited)

Hello.

Problem is that i don know how to Thread for in my dll code !

For my exe i have added dll load . Dll file will load and exit but i need it runn all time. I post her my dll src i hope some one can help made that theard and post asm info for theard .

Ty

Best regards

Peter

[ sorry my bad English ]

Some ss how dll is hooked meaby hook is wrong
/>http://www.upload.ee/image/1519109/client2.png
/>http://www.upload.ee/image/1519105/client1.png

killhacker now changed DLLkill

Antihack src
/>http://www.upload.ee/files/1537610/antihack.7z.html

Edited by equlibrium
Posted

From the look of it your DLL has no valid entry point. Your settings for the project don't reset it either so there isn't any DllMain in your code.

You also defined DllKill twice, once that appears to try to be an entry point, while the other is a function.

Change this one:


bool APIENTRY Dllkill(HMODULE hModule, DWORD SystemProcessesScan, LPVOID lpReserved)
{
return TRUE;
}

To this:


bool WINAPI DllMain( HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved )
{
return TRUE;
}

This way your module has a valid point to be looked at when LoadLibrary is called. You don't need to code anything in it, as long as you return TRUE it should stay loaded until you free it. (Or the process closes.)

Then you should be calling GetProcAddress on DllKill. The screenshot client2.png looks correct, just change 'killhacker' to 'DllKill' instead for GetProcAddress.

Posted

Ty for help but no work :S

I think Client.exe have some bug what cant hold load dll file :S

Posted (edited)

1. need you client.exe is full unpack

2. client.exe open to ollydbg

3. entry point is x00423354 save to text file

4. go to free space inject your dll (simple)

db 00
db 00
call antihack.dll
push eax
call killhack.dll
push eax
jmp to x00423354 ://entrypoint
nop
db 00
db 00

5. and save change exe to file

6. now testing

not using c++

learn basic undetected virĂ¼s technics :]

Edited by Hello EMO
Posted

its no work i don have more ideas :S

Maby some one have time i upload her my client.exe

Eny way ty all for help !!

Desktop.7z

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...