Hi everyone, I'm currently attempting to create a 'bot' that will connect to a Flash game and send and receive packets. However, I'm a bit stuck as to how I should go about doing this...
I've searched about dll injection, sockets etc., but I haven't found anything that really gives me an idea of what I need to do, hence why I decided to join this forum and ask others.
If I could get some sort of send/recv packets to a server thing going, that'd be a real push in the right direction.
I'd be happy if someone could help/tell me what I need to know to complete this. Thanks
As far as i know, Actionscript of flash has some built-in class for socket programming.
such as class "Socket" in namespace "flash.net.Socket", here is an example:
package {
import flash.display.Sprite;
import flash.events.*;
import flash.net.Socket;
public class SocketExample extends Sprite {
private var socket:Socket;
public function SocketExample( ) {
socket = new Socket( );
// Add an event listener to be notified when the connection
// is made
socket.addEventListener( Event.CONNECT, onConnect );
// Connect to the server
socket.connect( "localhost", 2900 );
}
private function onConnect( event:Event ):void {
trace( "The socket is now connected..." );
}
}
}
Last edited by deyili; June 15th, 2011 at 09:40 PM.
Reason: finished
Bookmarks