Reinjecting Packets Similar to WPE Pro
Hello I haven't used Visual Basic for a while now (since college), but I've recently picked up the express edition of 2008 to tackle a couple small projects.
I'm sure you have seen Graffiti on Facebook... it's basically a whiteboard application which you can doodle on and there are programs designed to draw pixel for pixel a perfect image onto the Graffiti board. What I am trying to do is similar to this, only with a different product that only supports 8 colors.
The low down is that through WPE I discovered that the first six digits of the drawing packet are hexidecimal color codes (so theoretically I can put any color on there) and the rest are just coordinates.
This is a breakdown of what a packet might look like this whereas "Whiteboard" is the identifier number of the board and "RVari" is a random number:
"{""t"":""xt"",""b"":{""x"":""myLife"",""c"":""sendMessage"",""p"":{""message"":""ITEMEVT:{\""itemId \"":0,\""itemY\"":387,\""itemX\"":406,\""params\"":{\""value\"":\""000000644552645552647573607582594 578590596\"",\""action\"":\""addLine\"",\""eventName\"":\""itemEvent_" + Whiteboard + "\""},\""eventName\"":\""itemEvent_" + Whiteboard + "\""}"",""target"":""0""},""r"":" + RVari + "}}."
The approximate size of the board is 220x145 and goes from 500,500 to 720,645.
I can resend the packet through WPE again and it will draw the same thing again, so I can verify that it does work. I can construct a new packet just fine with my variables as well.
I have a PHP script designed to give me the details of every pixel which looks something like this...
9E7D72500500501500,B19893502500503500,....
So I'm not worried about my VB program mapping out the image (I will just copy and paste it in from my PHP script in a text box).
So where I would like to start is re-injecting that single known working packet to have it output the image before proceeding further in my project. I've gone through winsock tutorials but nothing seems to give me what I'm looking for in a scenario such as this. I'm hoping someone can give me some guidance or perhaps tell me what I'm missing and / or looking over.
I was told to be as detailed as possible but this seems somewhat excessive. :eek:
Re: Reinjecting Packets Similar to WPE Pro
It's not hard. But you need to have the code in a C/C++ DLL and have it injected inside the program and use some API hooking to get the socket handle the program is using.
Once your DLL has the socket handle, it can use the send() Winsock API function to send the packet.
I don't know if we're allowed to talk about DLL injection or API hooking though.
Re: Reinjecting Packets Similar to WPE Pro
Well, thanks for the guidance. I will seek Google and elsewhere for assistance with this project. You got me in the right direction however, which is appreciated.