Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Kal Online
You last visited: Today at 02:32

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

Advertisement



[HOWTO] Send commands to server on INT

Discussion on [HOWTO] Send commands to server on INT within the Kal Online forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2011
Posts: 2
Received Thanks: 0
[HOWTO] Send commands to server on INT

To send commands to the server you must:

1. Get your code into the kal process.
Use an injector, or use the recently popular dsound.dll > bot.dll technique (what would we technically call this???).

2. Find the send function address.
Plenty of public code for this around, but let's use this common source (if you originally wrote this code, claim it because I don't know).

Code:
DWORD Send_To_Server_Main_ = SearchPattern("55 8B EC 83 EC 18 83 3D x x x x 00 74 07 33 C0 E9 x x x x 8A 45 08",0x00400000,0x007FFFFF);

DWORD Send_To_Server_Main  = SearchPattern("55 8B EC 83 EC 18 83 3D x x x x 00 74 07 33 C0 E9 x x x x 8A 45 08", Send_To_Server_Main_+1,0x007FFFFF);
3. Send command to server using simple inline assembly to push values on the stack and call the send function by address. I'm basically using the same declarations for variables as in the public source.

The following will make you sit down.

Code:
LPTSTR Format = "b";
DWORD Flag = 1;
DWORD SendType = 0x1C;
__asm
{
	PUSH Flag;
	PUSH Format;
	PUSH SendType;
	call Send_To_Server_Main; 
}
* The old command for sit, and a few others will give you autoban. If you know what commands will give autoban, kindly reply in this thread please.

BONUS: The following will change your Z position. Run it in a loop or call it a number of times to make you go underground.

Code:
LPTSTR Format = "bbb";
DWORD SendType = 0x12;
__asm
{
	PUSH 128;
	PUSH 0;
	PUSH 0;
	PUSH Format;
	PUSH SendType;
	call Send_To_Server_Main; 
}
BONUS 2: In the public source, there's a STRUCT for mobs. Use it to attack a mob.

Code:
memcpy((void*)&(MOBID),(void*)&Mob[mob_you_want_to_kill].MID,4);
LPTSTR Format = "bbd";
DWORD SendType = 0x0d;
__asm
{
	PUSH MOBID;
	PUSH 1;
	PUSH 4;
	PUSH Format;
	PUSH SendType;
	call Send_To_Server_Main; 
}
If you think my code sucks, FUCK YOU, and release something better. There's many ways to do this, and if you know a better/simpler way, be kind and point others the way.
DontBeADick is offline  
Old 06/19/2011, 10:15   #2
 
elite*gold: 0
Join Date: Jun 2011
Posts: 2
Received Thanks: 0
BONUS 3: behead (put it in your receive algorithm)

Code:
case 0x3D:
	memcpy((void*)&id,(void*)((DWORD)Buffer+3),4);
	BYTE state;
	memcpy((void*)&state,(void*)((DWORD)Buffer+3+4),1) ;
	if (state==0x08)
	{
		LPTSTR Format = "bbd";
		DWORD SendType = 0x0d;
		__asm
		{
			PUSH id;
			PUSH 1;
			PUSH 1;
			PUSH Format;
			PUSH SendType;
			call Send_To_Server_Main; 
		}
	}
	break;
DontBeADick is offline  
Old 06/19/2011, 11:37   #3
 
elite*gold: 0
Join Date: Feb 2008
Posts: 1,102
Received Thanks: 185
??!??
pamz12 is offline  
Old 06/19/2011, 12:04   #4
 
strik3r2k5's Avatar
 
elite*gold: 0
Join Date: Jun 2006
Posts: 1,203
Received Thanks: 366
Simpler way, with public code
f.e.:SendPacket(0x1D,"ddd",IID,X/32,Y/32); //Pick
Code:
__declspec(naked) int __cdecl SendPacket (BYTE bHeader , LPCSTR szFormat , ... )
{
	__asm
	{
		push ebp
		mov ebp, esp
		sub esp, 18h
	}
	__asm JMP dwSendBack
}
strik3r2k5 is offline  
Old 06/19/2011, 18:36   #5
 
Thiesius's Avatar
 
elite*gold: 0
Join Date: Feb 2009
Posts: 256
Received Thanks: 474
The engine send function isn't __stdcall call convention -> You push the args to the stack but I don't see you cleaning stack anywhere.

Create a function pointer and simply call the function. It has been shown many times before.

If you want to use hook + my HackShield emulator, then I don't recommend you to hook the whole function.
Hooking functions with variable count of arguments isn't safe.

Instead of that I would recommend you to create hook somewhere between the place where the send buffer is already filled, but not encrypted yet. You can also get pointer to format if you want. This workaround might be slightly more difficult to accomplish but also the chance you will crash is lot smaller (If you do it correctly of-course).
Thiesius is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Storm hack with .send | .send lesson Part 1
08/21/2010 - Kal Online - 30 Replies
This is lesson 1 of what useful things .send can do =P later i'll post some more nice things I know that kocp dont allow kalhackit... but u can have some fun with it on servers without kocp or if you smart enough you can do it on servers without kalhackit or even on int if you even smarter :P First of all you need KalHackIt that works on private server with sniffing (Download attached... thx to syntex for the snif.ini add)
how to ban/send to bot jail with gm commands
07/13/2010 - CO2 Private Server - 4 Replies
guys, i have a co pserver5165 can some one tell me how to ban or send to bot jail with gm commands?
[osds] problem send item & send weapon
11/12/2009 - Dekaron Private Server - 3 Replies
Hello i have 2 problems with osds control panel when i try to send weapon i have no more weapon available i cant choice i have nothing but i can send armor succesfully and my second problem is send item when i try to send item the browser say Login Error, Please login again.anyone can be fix that please? i post screenshots http://panzer.power-heberg.com/itembug.JPG http://panzer.power-heberg.com/noweapon.JPG
Can someone send me v5017 commands through msn messenger?
08/24/2009 - CO2 Private Server - 1 Replies
Send me commands. Add me [email protected]
i send the codes to server but nothing happened
12/11/2006 - Lineage 2 - 8 Replies
i tried many things like the dagger with 30k p. attack and many other things.only effects are working for me (the light when lvl up,zarechi's sword etc). anyone can help me? :cry: text2schild.php?smilienummer=1&text=thanks' border='0' alt='thanks' />



All times are GMT +2. The time now is 02:32.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.