Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Coding Corner
You last visited: Today at 17:06

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

Advertisement



Hilfe bei Packet Injection

Discussion on Hilfe bei Packet Injection within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2010
Posts: 1
Received Thanks: 0
Hilfe bei Packet Injection

Hallo,

ich hab mal versucht das
"Client Based Packet Injection in Silkroad"

nach zu bauen.

Da ich die express Version von Visual C++ habe, konnte ich das nicht zu 100% nach bauen. Bei "namespace Win32Gui" hab ich das so gemacht:
Code:
namespace Win32Gui
{
	//INT_PTR CALLBACK DlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
	//{
	//	switch(uMsg) 
	//	{
	//		case WM_INITDIALOG:
	//		{
	//		}
	//		break;

	//		case WM_COMMAND:
	//		{
	//			int button = LOWORD(wParam);
	//			switch(button)
	//			{
	//				case IDCANCEL:
	//				{
	//					PostQuitMessage(0);
	//				} break;

	//				case IDC_BUTTON1:
	//				{
	//					Packet::TPacket * sitPacket = new Packet::TPacket;
	//					sitPacket->size = 1;
	//					sitPacket->opcode = 0x7017;
	//					sitPacket->data[0] = 0x04;
	//					Packet::SendPacket(sitPacket);
	//				} break;
	//			}
	//		} break;

	//		default:
	//		{
	//			return FALSE;
	//		}
	//	}
	//	return TRUE;
	//}

	DWORD WINAPI GuiThread(LPVOID lpParam)
	{
		//HWND hwnd = CreateDialog(gInstance, MAKEINTRESOURCE(IDD_DIALOG1), NULL, DlgProc);
		
		//MSG Msg = {0};
		//while(GetMessage(&Msg, NULL, 0, 0) > 0)
		//{
		//	if(!IsDialogMessage(hwnd, &Msg))
		//	{
		//		TranslateMessage(&Msg);
		//		DispatchMessage(&Msg);
		//	}
		//}
		Sleep(60000);
		//while(true){
			Packet::TPacket * sitPacket = new Packet::TPacket;
			sitPacket->size = 1;
			sitPacket->opcode = 0x7017;
			sitPacket->data[0] = 0x04;
			Packet::SendPacket(sitPacket);

		//}
		return 0;
	}

	void Setup()
	{
		CreateThread(0, 0, GuiThread, 0, 0, 0);
	}
}
Also nach 60 Sek. sollte das Programm das Packet schicken. Leider passiert nichts. Liegt das an dem Code, wird er viellicht garnicht gestartet oder ist das Packet ungültig?
--------------------------------------------------------------------------
english
hello and sorry for my english ,

i have tried the
"Client Based Packet Injection in Silkroad"


but i have visual c++ express edition, and i can't create resources. at "namespace Win32Gui" i do it so (look code above).

after 60 sec. the code shoult send the packet. but it happen nothing (in game). is the packet invalid or the packet is not sendig because the code?
n3gative is offline  
Old 12/20/2010, 22:58   #2
 
lordshreck's Avatar
 
elite*gold: 40
Join Date: Jul 2010
Posts: 64
Received Thanks: 6
sich denke mal ungültig weil die die packets andaund ändern ,isro halt aber ich guck mal.Aber es es so schon fast richtig
lordshreck is offline  
Old 12/21/2010, 05:47   #3
 
bootdisk's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 134
Received Thanks: 41
0x7017 is old. Sniff the new op code or maybe try with 0x7045 (I don't remember if it's correct or not so that's why you should sniff that one).

And careful about Sleep as it might cause some deadlocks.

A quick trick to check if you're sending the correct OP code would be to open sro_client.exe with OllyDbg, Search for all constants and then put the OP code.

And also, I'd recommend you to download the full version of VS 2008 at least, it will cause you less headaches.

/ultraofftopic
Hope that solves it and sorry if lordshreck already said it, German is another language I'd like to learn as well as French... *sigh* one day...
bootdisk is offline  
Reply


Similar Threads Similar Threads
[Guide] Client Based Packet Injection in Silkroad
08/01/2013 - SRO Coding Corner - 29 Replies
This article is a special one! Thanks to clockwork for letting me share some knowledge I learned from him in the past. This information is still relevant and useful for Silkroad, but as I will write about, might be too much work for the benefits. Client Based Packet Injection in Silkroad I. Purpose Welcome to the fourth guide in my series! I would like to take this time to thank clockwork for allowing me to write a guide based on his approach for performing client based packet...
Packet Injection
01/08/2010 - SRO Private Server - 1 Replies
I know Silkroad has the stupid blowfish encryption which is preventing me from sending packets. So if i wanted to make an autopot, i would need the key. Now if i have the key what would i do to make it accept it. Would it be easiest to just do it in c++ to bypass blowfish? Can someone explain it a little better for me, I'm trying to make a packet based autopot/autograb. I've never done anything in SRO with c++ except a server status checker. I usually make CS 1.6/CZ Hacks(Haven't...
Packet injection
10/06/2008 - General Coding - 0 Replies
I´ve got a question about packet injection. So is it right that you have to sniff the packets from the game and then you can send it to the server?? E.g I found the packet wich is sent when casting an ability, could i use a packet injection tool to send this packet to the server and then my character would cast this spell?



All times are GMT +2. The time now is 17:06.


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.