Packet senden[ASM / C++]

02/12/2015 03:09 blackout617#1
PHP Code:
0061E918    8B4D F8         MOV ECX,DWORD PTR SS:[EBP-8]
0061E91B    A1 30016700     MOV EAX,DWORD PTR DS:[670130]
0061E920    8B00            MOV EAX,DWORD PTR DS:[EAX]
0061E922    BA 7CE96100     MOV EDX,multicli.0061E97C                ASCII "walk"
0061E927    E8 648AF0FF     CALL multicli.00527390 
Code:
void SendPacket(DWORD Calladr,char *packet)
{
	DWORD adPtr = 0x670130;
	printf("Ich werde es versuchen: %s das packet zu senden.\n", packet);
	__asm
	{	
			MOV EAX, DWORD PTR DS : [adPtr]
			MOV EAX, DWORD PTR DS : [EAX]
			MOV EAX, DWORD PTR DS : [EAX]
			MOV EDX, packet
			CALL Calladr
	}
	printf("Packet wurde gesendet: %s\n", packet);
}
Die funktion habe jetzt geschrieben und mit ich ein packet senden kan mus das packet ja auch noch mit 0 terminiert werden dafür habe ich eine funktion geschrieben und es terminiert auch das packet mit 0 aber wen ich ein packet sende passiert garnichts egal was z.b habe ich 2clients geöffnet
Code:
SendPacket(0x00527390,packetString("say Hallo"));
gemacht das packet wurde gesendet also hat auf jeden fall in edx gepackt und die send funktion gecallt aber passiert nichts. Kan mir jemand weiter helfen ich finde meinen fehler nicht. Die adresse ist auch geupdated ich benutze eine pattern dafür also nachdem neusten update sind auch die neun adressen richtig was mache ich falsch ?


English(Ist schlimmer als mein deutsch ):

I Trying to send a packet to the server ,but when i send a packet nothing happens the packetString is my function that terminates the packet with 0.
I Could not find my misstake can anyone help me what do i wrong ??
02/12/2015 19:28 iArtrix#2
[Only registered and activated users can see links. Click Here To Register...]
Astring.cpp [Only registered and activated users can see links. Click Here To Register...]
Astring.h [Only registered and activated users can see links. Click Here To Register...]

This? Code from Amor Prohibido
02/12/2015 21:24 blackout617#3
Quote:
Originally Posted by iArtrix View Post
[Only registered and activated users can see links. Click Here To Register...]
Astring.cpp [Only registered and activated users can see links. Click Here To Register...]
Astring.h [Only registered and activated users can see links. Click Here To Register...]

This? Code from Amor Prohibido
thanks fixed now with the Astring but what do i wrong in my function?
char* packetString(char *string)
{
char test[256];
char* str2 = string;
DWORD lange = strlen(str2);
memcpy(test, str2, lange);
test[lange] = 0;
return test;
}


EDIT : Jetzt when ich ein packet gesendet habe sickt mein client keine pulse packets mehr -.- aber alle andere packete schon

EDIT : Now when i send a packet then its stops to send pulse packets but only pulse packets other one got sended ?
02/15/2015 15:50 blackout617#4
up - when ich ein packet sende habe ich nach 1min DC
after i send a packet i got dc after 1min but the packet works but DC
02/15/2015 16:53 _RowLegend_#5
lag bei mir daran das der flag 0 war und nicht 1
02/17/2015 13:01 blackout617#6
Danke für hilfe habe das AString removed und eine class geschrieben um mit 0 terminieren jetzt funkt es.

#closerequest
02/21/2015 19:15 Pain™#7
Quote:
Originally Posted by blackout617 View Post
Danke für hilfe habe das AString removed und eine class geschrieben um mit 0 terminieren jetzt funkt es.

#closerequest
Sorry, I've a question, how did you manage to keep connected to the server and not disconnecting each minute?
02/21/2015 21:10 blackout617#8
Quote:
Originally Posted by Pain™ View Post
Sorry, I've a question, how did you manage to keep connected to the server and not disconnecting each minute?
you must to terminate the string with 0 , AString have a problem dont use it or you will get DC every min ,i think like Rowlegend says "AString sets wrong flag" so write a class to terminate the string with 0 ;)

@Mr.Tr33 #closerequest
02/21/2015 23:13 Rorc#9
Und was, wenn ich es closen will? .·´¯`(>▂<)´¯`·.

/Close