Register for your free account! | Forgot your password?

You last visited: Today at 18:02

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

Advertisement



Sending Packets

Discussion on Sending Packets within the PW Hacks, Bots, Cheats, Exploits forum part of the Perfect World category.

Reply
 
Old 11/05/2012, 03:45   #331
 
elite*gold: 0
Join Date: Aug 2009
Posts: 8
Received Thanks: 0
not work

Quote:
Originally Posted by Interest07 View Post
C# code I use for packet sending as follows

PacketSender class:

use as follows:
PHP Code:
//open process
IntPtr pr_processHandle MemFunctions.OpenProcess(pid);
//create new packetSender class for this process
PacketSender sendPacket = new PacketSender(pr_processHandle);

//send packet for toggling flymode for example:
sendPacket.useItem(10xCplayer.values.flyMountId); 
Memfunctions class:

i used these classes for test and my pw got crash (not report bug, just terminate process) PS: i changed real base and send packet address.
can someone help me?
------------------------
i discovered the problem is in createremotethread. when the debugger execute the createremotethread line pw get crashes.
But i don't know what is the solution
------------------------
Sorry for noob quests. I think I found the problem. I use the pwbr and i think the problem is in opcode. i wanna know how to find de sendpacketopcodeaddress for my pw... can someone help me?
thanks in advance
somatando is offline  
Old 11/20/2012, 01:13   #332
 
elite*gold: 0
Join Date: Nov 2012
Posts: 96
Received Thanks: 81
Thats an very interesting Part i read here.
Did not read all 34 Pages, but that sound like you use the Ingame Functions with this.
So this can be used on any Ingame Function we may found an no need to inject them ?
Since i use asm code for Pick up Loot etc.

To Bad i found this Board and Info not some Months ago.
Murmuring is offline  
Old 01/15/2013, 08:02   #333
 
ronald19's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 7
Received Thanks: 2
Quote:
Originally Posted by vuduy View Post
Looks fine to me. It might be better to wait until the targetID is registered before executing the skills; you can also measure the server's latency while waiting as well. Example:

Code:
public long DoSetTarget(uint targetID)
{
	var stream = new MemoryStream();
	stream.Write(BitConverter.GetBytes(0x2), 0, 2);
	stream.Write(BitConverter.GetBytes(targetID), 0, 4);
	byte[] data = stream.ToArray();
	SendPackage(data);
	Stopwatch timer = Stopwatch.StartNew();
	while (timer.ElapsedMilliseconds < 5000)
	{
		// Check for TargetID to show up
		if (Self.TargetId == targetID) break;
		Thread.Sleep(10);
	}
	return timer.ElapsedMilliseconds / 2;
}
i am so confused how to convert that to C++ ?

i already try but still error.
ronald19 is offline  
Old 01/15/2013, 16:50   #334
 
Interest07's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 862
Received Thanks: 576
Quote:
Originally Posted by ronald19 View Post
i am so confused how to convert that to C++ ?

i already try but still error.
Prolly a good idea to post your attempt so people can actually see what you did wrong
Interest07 is offline  
Old 01/21/2013, 09:04   #335
 
elite*gold: 0
Join Date: Jan 2013
Posts: 4
Received Thanks: 0
omg i dont understand what is this use for.. and where to get it.. what is the function??>. how to use???... blurrrr
raymamat05 is offline  
Old 01/21/2013, 17:41   #336
 
Interest07's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 862
Received Thanks: 576
Quote:
Originally Posted by raymamat05 View Post
omg i dont understand what is this use for.. and where to get it.. what is the function??>. how to use???... blurrrr
When you want to create a bot or similar tools, you generally want your client to perform certain actions. In order to do those actions you need to find the function ingame so you can call it from your process. Instead of finding a separate function for every action, it is easier to call the function that sends packets to the server as every action has to come through this function.

This way you need to only locate one function and determine the structure of the packets, which hardly ever change.
Interest07 is offline  
Thanks
1 User
Old 02/02/2013, 17:39   #337
 
elite*gold: 0
Join Date: Dec 2012
Posts: 3
Received Thanks: 1
Dear for all Member at this forum.....
I have a problem to write code for buying or selling multiple items...
especially for above 4 different items....
for example ..
for buy item .. $packet_size use formula = (8 + 12 * nDifferent items),,,
if i put the $packet_size from above formula..
.it will crash the client


can anyone help me.......
santa777 is offline  
Old 02/04/2013, 13:05   #338
 
elite*gold: 0
Join Date: Aug 2009
Posts: 10
Received Thanks: 0
Quote:
lPacket.len := 50;
lPacket.buf[0] := $25;
lPacket.buf[1] := $00;

lPacket.buf[2] := $01;
lPacket.buf[3] := $00;
lPacket.buf[4] := $00;
lPacket.buf[5] := $00;

lPacket.buf[6] := $28;
lPacket.buf[7] := $00;
lPacket.buf[8] := $00;
lPacket.buf[9] := $00;

Fillmemory(@lPacket.buf[10], 24, $00);

lPacket.buf[34] := $01;
lPacket.buf[35] := $00;
lPacket.buf[36] := $00;
lPacket.buf[37] := $00;

copymemory(@lPacket.buf[38], @ID, sizeof(Cardinal));
copymemory(@lPacket.buf[42], @Shopindex, sizeof(Cardinal));
copymemory(@lPacket.buf[46], @Number, sizeof(Cardinal))

How About,more then 128 byte packet,what code to write 128 byte packet...can any one help?
nashua100 is offline  
Old 02/04/2013, 15:12   #339
 
Sᴡoosh's Avatar
 
elite*gold: 20
Join Date: May 2009
Posts: 1,290
Received Thanks: 326
Get creative...

Code:
procedure TMain.SendReforgePacket;
begin
Self.Buffer.Flush;
Self.Buffer.WriteWord(37); //25 00
Self.Buffer.WriteInt(58);  //3A 00 00 00
Self.Buffer.WriteInt(145); //91 00 00 00
Self.Buffer.WriteInt(0);   //00 00 00 00
Self.Buffer.WriteInt(Self.GetRecipieID(Self.ReforgeItemID));
Self.Buffer.WriteInt(MOMORIAL_COINS);
Self.Buffer.WriteInt(ROUND_SHIELD_MEDAL);
Self.Buffer.WriteInt(DAMASCENE_ORE);
Self.Buffer.WriteInt(0);
Self.Buffer.WriteInt(0);
Self.Buffer.WriteInt(0);
Self.Buffer.WriteInt(0);
Self.Buffer.WriteInt(0);
Self.Buffer.WriteInt(0);
Self.Buffer.WriteInt(0);
Self.Buffer.WriteInt(0);
Self.Buffer.WriteInt(0);
Self.Buffer.WriteInt(0);
Self.Buffer.WriteInt(0);
Self.Buffer.WriteInt(0);
Self.Buffer.WriteInt(0);
Self.Buffer.WriteInt(Self.Inv.GetItemIndexFromInventoryIDWhereMinNumber(MOMORIAL_COINS,90));
Self.Buffer.WriteInt(Self.Inv.GetItemIndexFromInventoryIDWhereMinNumber(ROUND_SHIELD_MEDAL,9));
Self.Buffer.WriteInt(Self.Inv.GetItemIndexFromInventoryIDWhereMinNumber(DAMASCENE_ORE,3));
Self.Buffer.WriteInt(0);
Self.Buffer.WriteInt(0);
Self.Buffer.WriteInt(0);
Self.Buffer.WriteInt(0);
Self.Buffer.WriteInt(0);
Self.Buffer.WriteInt(0);
Self.Buffer.WriteInt(0);
Self.Buffer.WriteInt(0);
Self.Buffer.WriteInt(0);
Self.Buffer.WriteInt(0);
Self.Buffer.WriteInt(0);
Self.Buffer.WriteInt(0);
Self.Buffer.WriteInt(0);
Self.Buffer.WriteInt(Self.ReforgeItemID);
Self.Buffer.WriteInt(Self.Inv.GetItemIndexFromInventoryID(Self.ReforgeItemID));
Self.Buffer.WriteByte(7); //wtf
Self.PWAction.SendPointerPacket(@Self.Buffer.Buffer[0],Self.Buffer.Bufferlength);
end;
Sᴡoosh is offline  
Old 02/04/2013, 15:52   #340
 
elite*gold: 0
Join Date: Aug 2009
Posts: 10
Received Thanks: 0
Sorry Swoosh..but when i buy item use buypacket,its normally working if $packet size under 128byte ,when $packet size above 128 byte,,it will crash the client....can You help me Swoosh...
nashua100 is offline  
Old 02/04/2013, 18:42   #341
 
Sᴡoosh's Avatar
 
elite*gold: 20
Join Date: May 2009
Posts: 1,290
Received Thanks: 326
That's because length is generally written as a packed Dword/CUINT. This means everything under 0x80 is written as a literal, while everything over 0x80 is encoded differently.
Sᴡoosh is offline  
Old 02/04/2013, 19:34   #342
 
elite*gold: 0
Join Date: Aug 2009
Posts: 10
Received Thanks: 0
so..it means ...i cant send packet over 0x80 with (sendpacket function) as the usual i use ?
if cannot...how i write it......can You tell me ...Swoosh....Txs before
nashua100 is offline  
Old 02/04/2013, 19:37   #343
 
Sᴡoosh's Avatar
 
elite*gold: 20
Join Date: May 2009
Posts: 1,290
Received Thanks: 326
You can, you just need to send differently encoded data. If somebody else feels the need to share this, go ahead, but I won't.
Sᴡoosh is offline  
Old 02/05/2013, 19:30   #344
 
elite*gold: 0
Join Date: Aug 2009
Posts: 10
Received Thanks: 0
Ok Swoosh...THANKS for ur reply...
nashua100 is offline  
Old 02/06/2013, 17:04   #345
 
elite*gold: 0
Join Date: Dec 2011
Posts: 6
Received Thanks: 0
So, can anyone please translate the main subject here? I ain't no programmer or anything related but I'd still like to know how would I make a good use of this 35 pages o info. It'd be much appreciated
belobrk is offline  
Reply


Similar Threads Similar Threads
Help with sending packets in autoit
08/16/2010 - AutoIt - 1 Replies
ive been lookin around different sites for ways to send packets to the game server. the only examples i see is to create a server and a client which i dont need, i think. well to the point now, can someone lead me in a direction or tell me how to send packets to a game? also if i send packets then that means i dont need the game to be active, correct? Because in autoit when u use keys u need to have the game active, and control send does not work. ty
Sending Packets !!!
09/07/2008 - Kal Online - 14 Replies
now i know how to sniff / analyse packets ... but what then ? :) how can i send packets ?? to pimp or mix weapon for example i just need the way to send , and then i can depend on myself :D
Sending Packets (need advice)
03/20/2008 - Conquer Online 2 - 7 Replies
OK well im finaly trying to stop leaching off of everybodys work its been great n all download n play :D But im tired of being a begger n the past couple months ive been learning as much as i can about macros memery add blah blah you know ... After playing around with ce and ahk the past couple months i stumbled across wpe pro, theres not alot of tuturals and its hard to find good help. Well heres what ive been doing so far, open my CO then i attach it to my sniffer. I change my...
Scamming by sending packets???
04/15/2006 - Conquer Online 2 - 1 Replies
Well my friend and i came up with the idea to send packets to the server to show a certain item in the trade window. We want to use this as a type of scam. I didnt see this in any other threads and was wondering if anyone knew if this is possible and if they could point use in the right direction. My friend was pretty good with packets in CO 1.0 but we arent really sure to go about doing it. If anyone one could please lend a helping hand? P.S.- Before I get flamed for this because i know i...
Sending packets
10/12/2005 - Conquer Online 2 - 10 Replies
I've a question. Is it possible to send 1 packet multiple times at the exact same time?



All times are GMT +1. The time now is 18:03.


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.