Jump to content
  • 0
Sign in to follow this  
AsiaGenius

New dll shield packet

Question

Hello!
 
I need help to finish my DLL Shield.
 
 
My packet 0x64 content: (my dll working)
 
0e64853029be41dd80944029e6472a0a.png
 
 
My part of DLL source:
 

unsigned int command = (*(unsigned short*)buf);

if( (command == 0x64) ) { //if login packet, send mac to host serv
			char mac_address[18] = "";
			GetMACaddress((char *)mac_address); //GET MAC 
			memcpy((char*)buf+*len, mac_address, sizeof(mac_address)); //ATTACH MAC IN TO CURRENT PACKET 0X64
			*len += 17;
} ...

correctly sends new packet value
 
How do I get data added to the packet leng in the emulator?
 
I tried so;
 

char mac = RFIFOL(fd,12);

But always returns zero...
 
But I need some tips to properly handle this new value! I want to add MAC, HWID, Shield Version. I'm testing
first only with the MAC!
 
Help-me pls, I intend to share the DLL Shield for community!

Edited by DAFUQ BR

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Did you configure your emulator to get mac address?

 

Did you attached your dll file to be loaded by the client in order to get mac as well?

Share this post


Link to post
Share on other sites
  • 0

Did you configure your emulator to get mac address?

 

Did you attached your dll file to be loaded by the client in order to get mac as well?

 

Dll loaded and getting MAC successful

 

The question is, how can I configure the emulator to receive MAC and other data that I want to send using my dll?

 

 

Thanks for your attention!

Share this post


Link to post
Share on other sites
  • 0

Have you tried using this diff made by dastgir. 

 

LINK

 

you can manually use that patch to enable your server/emulator capture mac address.. Well the patch is originally made to work w/ clients who uses a launcher to get the mac address..

 

Well, I've been looking forward to your project.. :)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.