On Inventory Packet / "ITC"

06/18/2016 06:18 Decrypted#1
Da ich einfach nur heulen könnte wenn ich diese dreckigen ASM & c++ snippets sehe, poste ich hier mal hier den C++ Code des packets aus meinem privaten Projekt.

Code:
void __cdecl CS4::S4_OnInventoryPacket(uint32_t i_iInventoryPacket, uint32_t i_iInventoryPointer)
{

	bool(__thiscall	*getItemAmountOfInventoryPacket)(uint32_t i_iEcx, uint32_t &i_pBindedValue, uint32_t i_pSize) = (bool( __thiscall *)(uint32_t, uint32_t&, uint32_t)) /*Srsly?*/;
	void(__cdecl	*extractItemfromPacket)(uint32_t i_iPacket, void* i_pBuffer) =	(void(__cdecl *)(uint32_t, void*))  /*Srsly?*/;
	void(__thiscall	*insertItemfromBuffer)(uint32_t i_pInventory, void* i_pBuffer) = (void(__thiscall *)(uint32_t, void*))  /*Srsly?*/;
	uint32_t a_iItemAmount = 0;
	printf("ITC -> Inventory call : 0x%x 0x%x\n", i_iInventoryPacket, i_iInventoryPointer);
	printf("\t<Normal>\n");
	{
		SItem a_oTempItem;
		ZeroMemory(&a_oTempItem, sizeof(a_oTempItem));
		bool a_fIsInventoryValid = getItemAmountOfInventoryPacket(i_iInventoryPacket, a_iItemAmount, sizeof(a_iItemAmount));
		if (!a_fIsInventoryValid)
		{
			return;
		}
		printf("\t -> Received %i Items\n", a_iItemAmount);
		for (uint32_t i = 0; i < a_iItemAmount; i++)
		{
			extractItemfromPacket(i_iInventoryPacket, &a_oTempItem);
			insertItemfromBuffer(i_iInventoryPointer, &a_oTempItem);
		}
	}
}
Wer logisch nachdenkt, könnte jetzt 1&1 zusammenfügen und noch z.b. so etwas in der Funktion hinten dranhängen:
Code:
	printf("\t<Hacked>\n");
	{
	
		insertItemfromBuffer(i_iInventoryPointer, /*Srsly?*/);
	}

Credits:
Decrypted
(Ant) = Jeder ITC hat eig. etwas mit ihm zu tuen durch sein damaliges CE Script was gepostet wurde.

Quote:
Originally Posted by Apflmus View Post
Wenn man sich mal die Sources von manchen Leuten an sieht, egal ob AutoIT oder C++, sehe ich pure Vergewaltigung, das tut mir schon im Herzen weh.
Selber Gedanke.
06/18/2016 09:45 RingleRangleRob#2
The Question here is why you didn't change the Packet Buffer ? :)

Code:
		
		for (uint32_t i = 0; i < a_iItemAmount; i++)
		{
			extractItemfromPacket(i_iInventoryPacket, &a_oTempItem);
			insertItemfromBuffer(i_iInventoryPointer, &a_oTempItem);
		}
i used simple that function in the new ITC it looks like

Code:
		
for (auto it = InventoryStack.begin(); it <  InventoryStack.end(); it++)
	{
                a_oTempItem = it->second;
		//extractItemfromPacket(i_iInventoryPacket, &a_oTempItem);
		insertItemfromBuffer(i_iInventoryPointer, &a_oTempItem);
	}
but the opensource is shit i said it everywhere :3

You can also Grab K1ramox Packet Mananger OpenSource to make it based on the Packet Buffer. Its a methode which i could recommend

{
Character_CurrentItemInfo_Ack = 1004,
Item_InventoryInfo_Ack = 1005,
}
Credits K1ramox
06/18/2016 10:35 Decrypted#3
Quote:
Originally Posted by Sycode' View Post
...
Because i just wanted to post the normal way like mentioned.
06/18/2016 10:50 RingleRangleRob#4
Quote:
Originally Posted by Decrypted View Post
Because i just wanted to post the normal way like mentioned.
Sorry but there isn't a normal way. You can also create the items later while you are in the inventory. An Item Creator hasn't a normal way ..you can do it like you want. :8
06/18/2016 11:25 »Unknown«#5
95% der S4 Section sind doch eh zu dumm um das anzuwenden. ^^
06/18/2016 11:28 Decrypted#6
Quote:
Originally Posted by Sycode' View Post
Sorry but there isn't a normal way. You can also create the items later while you are in the inventory. An Item Creator hasn't a normal way ..you can do it like you want. :8
Normal Way = How S4 Do It ... This isn´t an ITC-Thread its "ITC"

Quote:
Originally Posted by »Unknown« View Post
95% der S4 Section sind doch eh zu dumm um das anzuwenden. ^^
Das ist mir egal. Es gibt genug die einfach nichts auf EPVP schreiben, wie ich eig. auch.
06/18/2016 13:47 RingleRangleRob#7
Quote:
Originally Posted by Decrypted View Post
Normal Way = How S4 Do It ... This isn´t an ITC-Thread its "ITC"



Das ist mir egal. Es gibt genug die einfach nichts auf EPVP schreiben, wie ich eig. auch.
ITC -> Item Creator -> Jede Methode um ein Item zu erstellen :pimp:
06/18/2016 13:50 Hadi1996#8
Can anyone send me a link where i can download the faithdev injector pls
06/18/2016 14:34 K1ramoX#9
That's how I did it in the past when I tried to deal with it for the first time. The item struct and rmiID may changed over time. It still needs some more detours which you gotta figure out on your own.

06/18/2016 16:32 Decrypted#10
Quote:
Originally Posted by Sycode' View Post
ITC -> Item Creator -> Jede Methode um ein Item zu erstellen :pimp:
English. Can you read it?

"Normal Way = How S4 Do It" srsly learn to read
06/18/2016 17:18 RingleRangleRob#11
Quote:
Originally Posted by Decrypted View Post
English. Can you read it?

"Normal Way = How S4 Do It" srsly learn to read
No i can't. Finn :pimp:

But say "Normal Way of S4" next time kkkkkk ? and adding items is also a normal way of s4 (if you buy or craft)...
06/18/2016 17:20 Kar0z#12
???? I dont understand XD
06/18/2016 17:30 Decrypted#13
Quote:
Originally Posted by Sycode' View Post
No i can't. Finn :pimp:

But say "Normal Way of S4" next time kkkkkk ? and adding items is also a normal way of s4 (if you buy or craft)...
Np Virus.Bat
06/18/2016 19:43 TheMokko#14
Quote:
Originally Posted by Decrypted View Post
Virus.Bat
Ich frage mich warum ihn bis heute keiner wegen multiaccounting bannen lässt... Sein einer soulcr4ck acc ist ja noch nicht gebannt.

@topic pretty usefull for us. thanks
06/18/2016 20:10 [Beatrice]#15
Quote:
Originally Posted by TheMokko View Post
Ich frage mich warum ihn bis heute keiner wegen multiaccounting bannen lässt... Sein einer soulcr4ck acc ist ja noch nicht gebannt.

@topic pretty usefull for us. thanks
I thought you'd retire from elitepvpers. Why not leave already?