Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Kal Online > Kal Hacks, Bots, Cheats & Exploits
You last visited: Today at 22:48

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[TUTORIAL] Creating a simple DLL Cheat/Hack

Discussion on [TUTORIAL] Creating a simple DLL Cheat/Hack within the Kal Hacks, Bots, Cheats & Exploits forum part of the Kal Online category.

Reply
 
Old 11/10/2011, 02:43   #106
 
elite*gold: 0
Join Date: Apr 2010
Posts: 16
Received Thanks: 1
I have not yet found a solution, but the weird thing is, my proxy dll DOES actually work on a less secured server, although the export is "DirectSoundCaptureCreate = ___E__0__@0" instead of "DirectSoundCaptureCreate".

I'm not sure how come this is. But I think im on to something here, a good guess would be kalsage is sensing this modified export, and refuses to import this. So I would like to remove the "= ___E__0__@0" from the exports, so it only exports "DirectSoundCaptureCreate". Is there a way to do this?
hawkagent is offline  
Old 11/11/2011, 13:14   #107
 
RunzelEier's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 1,196
Received Thanks: 682
Try to compile it as a release.
There might be some problems with the debug version
RunzelEier is offline  
Thanks
1 User
Old 11/12/2011, 17:09   #108
 
elite*gold: 0
Join Date: Apr 2010
Posts: 16
Received Thanks: 1
It was already in Release mode, but as the problem miraculously appeared, it disappeared when I changed the release output folder. Anyway I successfully proxy'd the dll, now on to hooking some functions
hawkagent is offline  
Old 11/21/2011, 09:19   #109
 
elite*gold: 0
Join Date: Mar 2006
Posts: 19
Received Thanks: 6
what g_dwBasePointerAddress?

This is Virtual base adress? oR OEP?

PHP Code:
DWORD GetTargetThreadIDFromProcName(const char ProcName

   
PROCESSENTRY32 pe
   
HANDLE thSnapShot
   
BOOL retvalProcFound false

   
thSnapShot CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS0); 
   if(
thSnapShot == INVALID_HANDLE_VALUE
   { 
      
//MessageBox(NULL, "Error: Unable to create toolhelp snapshot!", "2MLoader", MB_OK); 
      
printf("Error: Unable to create toolhelp snapshot!"); 
      return 
false
   } 

   
pe.dwSize sizeof(PROCESSENTRY32); 
    
   
retval Process32First(thSnapShot, &pe); 
   while(
retval
   { 
      if(
StrStrI(pe.szExeFileProcName)) 
      { 
         return 
pe.th32ProcessID
      } 
      
retval Process32Next(thSnapShot, &pe); 
   } 
   return 
0
}

int main(int argcchar argv[]) 
{
HANDLE Proc
DWORD pID GetTargetThreadIDFromProcName("engine.exe");
Proc OpenProcess(PROCESS_ALL_ACCESSFALSEpID);
MEMORY_BASIC_INFORMATION mInfo;
VirtualQueryEx(Proc,NULL,&mInfo,NULL);
std::cout <<"AllocationBase :"<< mInfo.AllocationBase << "\n";
    
std::cout <<"AllocationProtect :" <<mInfo.AllocationProtect <<"\n";
    
std::cout <<"BaseAddress :" << mInfo.BaseAddress <<"\n"//<---g_dwBasePointerAddress ? 
    
std::cout <<"Protect :" <<mInfo.Protect << "\n";
    
std::cout <<"RegionSize :" << mInfo.RegionSize << "\n";
    
std::cout <<"State :" << mInfo.State <<"\n";
    
std::cout <<"Type :" <<mInfo.Type << "\n";
CloseHandle(Proc); 

ineed some help ^^
SimSir is offline  
Old 11/21/2011, 14:43   #110
 
Thiesius's Avatar
 
elite*gold: 0
Join Date: Feb 2009
Posts: 256
Received Thanks: 474
1] If the NULL is valid argument for second parameter, then I would say it will be Image Base - 0x400000.

2] It won't be OEP 100%, that's bullcrap.

3] HackShields hook returns Access Denied for OpenProcess, so unless you have a driver it won't work.

4] Thread ID != Process ID
Thiesius is offline  
Thanks
1 User
Old 11/21/2011, 15:47   #111
 
elite*gold: 0
Join Date: Oct 2011
Posts: 189
Received Thanks: 61
It's better to create a process(engine.exe) & then inject your dll...
pleaX is offline  
Old 11/22/2011, 08:31   #112
 
elite*gold: 0
Join Date: Mar 2006
Posts: 19
Received Thanks: 6
Quote:
Originally Posted by Thiesius View Post
1] If the NULL is valid argument for second parameter, then I would say it will be Image Base - 0x400000.

2] It won't be OEP 100%, that's bullcrap.

3] HackShields hook returns Access Denied for OpenProcess, so unless you have a driver it won't work.

4] Thread ID != Process ID
ty for reply.

GetTargetThreadIDFromProcName its my function name return PID.
SimSir is offline  
Old 11/29/2011, 10:33   #113
 
elite*gold: 0
Join Date: Mar 2006
Posts: 19
Received Thanks: 6
My Donate ^^ For File and Memory Manipulation Error

Only int. server Good Luck )

dbghelp.h

PHP Code:
#include <windows.h>
#define jnz 0x850F;


static DWORD g_dwBasePointerAddress     0x401000
static 
DWORDg_fileSecurityCheck       0;
static 
DWORDg_memorySecurityCheck     0
dbghelp.cpp

PHP Code:
    DWORD Address=0;
    
DWORD dwBuffer jnz;
    
    
g_fileSecurityCheck = &dwBuffer;
    
g_memorySecurityCheck = &dwBuffer;
    
    
//File Manipulation Check (Patch Je --> Jnz)
    
AddressSearchPattern("50 FF 15 x x x x 8B 8D x x x x 89 8D x x x x 81 BD x x x x x x x x 0F 84 x x x x",g_dwBasePointerAddress,0x007fffff);
    
MemCpyEx((LPVOID)(Address+29),(LPVOID)g_fileSecurityCheck2);

    
    
//Memory Manipulation Check (Patch je--> Jnz)
    
AddressSearchPattern("81 BD x x x x 05 07 01 00  0F 84 9D 01 00 00",g_dwBasePointerAddress,0x007fffff);
    
MemCpyEx((LPVOID)(Address+10),(LPVOID)g_memorySecurityCheck2); 
SimSir is offline  
Thanks
3 Users
Old 12/30/2011, 16:26   #114
 
elite*gold: 0
Join Date: Dec 2011
Posts: 1
Received Thanks: 0
I'm trying to create a dinput8.dll proxy using this tutorial (although not for Kal Online but for another game), however the LoadLibrary function doesn't seems to find my renamed original DLL (dinput8_.dll) and I thought this topic would be the best to post my question.

To try and find which causes that error I changed to code for loading the library to this:

Code:
		hL = LoadLibrary("dinput8_.dll");
		if (!hL) {
			char error[300];
			sprintf(error, "LoadLibrary failed >> %d",GetLastError());
			MessageBox(
				NULL,
				error,
				"Error",
				MB_OK
				);
				return false;
		};
The error message I get is "LoadLibrary failed >> 193", so LoadLibrary seems to fail with code 193, but I can't find what this error actually means, but on Google I found it could be either a damaged original DLL (I copied the original from System32, so It's probably not damaged) or the code being compiled for 64bit while it has to be 32bit and vice versa. I couldn't find any site though which came with a fix, so I was wondering if someone here knows how to fix this.

Maybe usefull to know:
I am working on a 64bit Windows 7 with Visual Studi 10, and the DLL is used in a 32bit game from 2004 .
FrankHenk is offline  
Old 01/18/2012, 20:23   #115
 
elite*gold: 0
Join Date: Jan 2012
Posts: 3
Received Thanks: 4
€:Work Perfectly
Ty !
xNekro is offline  
Thanks
1 User
Old 02/04/2012, 04:57   #116
 
elite*gold: 0
Join Date: Sep 2011
Posts: 21
Received Thanks: 2
ever think done but at cheat setup i stoped can u help me plz and rly thx ^^
dawly50 is offline  
Old 04/11/2012, 09:30   #117
 
elite*gold: 0
Join Date: Apr 2012
Posts: 1
Received Thanks: 0
can i use another program other than microsoft visual studio?
g3orgi00 is offline  
Old 04/11/2012, 12:43   #118
 
elite*gold: 42
Join Date: Jun 2008
Posts: 5,425
Received Thanks: 1,888
You can use any C++-Compiler ;o
MoepMeep is offline  
Old 06/21/2012, 12:25   #119
 
elite*gold: 0
Join Date: Mar 2008
Posts: 50
Received Thanks: 3
I got an error: file manipulation detected

It happens when I press start on kalonline launcher ... any solutions?
Doctor2 is offline  
Old 09/10/2012, 02:51   #120
 
elite*gold: 0
Join Date: Nov 2008
Posts: 70
Received Thanks: 5
im trying to ready all the post but i cant find any solution of my problem .
Im trying to learn but im stuck at step 4, it seems that "Wrappit.exe" it's wrong or corrupted somewhere cause when i typed "wrappit.exe ... .. . .. ." the command prompt says that "wrappit.exe" cant be recognized as an internal or external command

what can i do? :/
Sephit is offline  
Reply


Similar Threads Similar Threads
[Guide] Creating a Simple Loader with Injected DLL for Silkroad
02/02/2016 - SRO Coding Corner - 37 Replies
This next article in my series is a very important one for anyone wanting to get started with client modifications or understanding the client itself. This is the base article that will be used for all my future articles that explain various Silkroad development concepts. Like my previous article, there is nothing terribly exciting with this one as we have to get through the necessary boring stuff first before we can have any real fun. Unfortunately, this article is very heavy text wise and...
1 Hit Hack Cheat Engine Tutorial Request
05/27/2010 - Metin2 - 1 Replies
Hi there, I know how to change Atk Speed, Mov Speed, Range & Type Weapon with CE But i have never find the way to get the 1hit hack like Multihacks. Someone can teach me how to get it with Cheat Engine ??? Thanks
[Intermediate] Creating a strong but simple cipher
08/31/2008 - CO2 Programming - 9 Replies
Basically, here's the idea, we have a 'key' that contains every value a byte supports (0 to 255). When you encrypt a byte for instance 171 (0xAB) it creates an "x" using the first 4 bits of the byte, and "y" using the last for bits of the byte Value = 171 (0xAB) X = 10 (0xA) Y = 11 (0xB) Then in the output of the encrypt routine, it it'll fill that index as Key Here's an illustration to make it simpler; http://img120.imageshack.us/img120/3282/cipheran4 .gif



All times are GMT +1. The time now is 22:49.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.