HackShield + MyBot + edxLoader

10/03/2011 20:01 DeXeee#1
Hello guys ..I didn't bored you long time :D

I am trying to connect my bot to hackshield that iBot and agBot are using ..

I managed to connect my bot to hackshield :


Code:
Public Client As Socket = New Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)

Client.Connect("127.0.0.1", 15777)
But now, idk how to connect new Sro Client with my bot ..

I think i have to make something like proxy in my bot but i rly don't know how :S

Thank you all in advance :)

Edit 1 :

I try this now but i got DC when Client is starting :

Code:
Dim serverSocket As New TcpListener(16000)
        serverSocket.Start()

        serverSocket.AcceptTcpClient()
Edit 2 :

I try now this , but still isn't working :

Code:
Public Client As Socket = New Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)

    Private Sub SRO_Proj_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        ' Connect to HS Server.
        Client.Connect("127.0.0.1", 15777)


        Dim serverSocket As New TcpListener(16000)
        serverSocket.Start()

        DoBeginAcceptTcpClient(serverSocket)

    End Sub


    ' Thread signal.
    Public Shared tcpClientConnected As New ManualResetEvent(False)


    ' Accept one client connection asynchronously.
    Public Shared Sub DoBeginAcceptTcpClient(ByVal listener As TcpListener)
        ' Set the event to nonsignaled state.
        tcpClientConnected.Reset()

        ' Start to listen for connections from a client.
        Console.WriteLine("Waiting for a connection...")

        ' Accept the connection. 
        ' BeginAcceptSocket() creates the accepted socket.
        listener.BeginAcceptTcpClient(New AsyncCallback(AddressOf DoAcceptTcpClientCallback), listener)

        ' Wait until a connection is made and processed before 
        ' continuing.
        tcpClientConnected.WaitOne()
    End Sub 'DoBeginAcceptTcpClient


    ' Process the client connection.
    Public Shared Sub DoAcceptTcpClientCallback(ByVal ar As IAsyncResult)
        ' Get the listener that handles the client request.
        Dim listener As TcpListener = CType(ar.AsyncState, TcpListener)

        ' End the operation and display the received data on 
        ' the console.
        Dim client As TcpClient = listener.EndAcceptTcpClient(ar)

        ' Process the connection here. (Add the client to a
        ' server table, read data, etc.)
        Console.WriteLine("Client connected completed")

        ' Signal the calling thread to continue.
        tcpClientConnected.Set()
    End Sub 'DoAcceptTcpClientCallback
10/05/2011 16:21 DeXeee#2
Hmmm, can some1 help me ? :D
10/06/2011 01:29 LastThief#3
What's your problem actually ?
10/06/2011 15:57 DeXeee#4
Quote:
Originally Posted by LastThief View Post
What's your problem actually ?
I start HackShield Server, then i start my bot that's connecting on HackShield Server , and that easy, i make it :)

Now, i need to start Client from edxLoader ...

So, i need to open TCP connection on some port like "16000"

In VB that will be like this :

Code:
Public serverSocket As New TcpListener(16000)

serverSocket.Start()
Ok, i do that, and then i start Sro with edx Loader, but when the small picture appears i got Disconnect ..

So, what i need to do to fix that ? :)

Thanks in advance !!!
10/06/2011 16:02 ÑõÑ_Ŝŧóp#5
Quote:
Originally Posted by DeXeee View Post
I start HackShield Server, then i start my bot that's connecting on HackShield Server , and that easy, i make it :)

Now, i need to start Client from edxLoader ...

So, i need to open TCP connection on some port like "16000"

In VB that will be like this :

Code:
Public serverSocket As New TcpListener(16000)

serverSocket.Start()
Ok, i do that, and then i start Sro with edx Loader, but when the small picture appears i got Disconnect ..

So, what i need to do to fix that ? :)

Thanks in advance !!!
You need to write a proxy, you can use SilkroadSecurityApi by pushedx, it has a proxy example in c#.