[REQUEST] Agent and Gateway SERVER IP

09/10/2019 20:44 alangomez2#1
Hi boiz, im here cuz i wanna to know, if it is possible to know any server AGENT AND GATEWAY ip? For example, if im playing at NOOBSRO


How i can know agent and gateway ip also ports of that sro?

edit: i found gateway ip and port using edx loader, but agent ip and port? how to find em

Cheers, and hope some1 can help me
09/10/2019 21:15 #HB#2
Target agent connection settings is received within the login response, A102:
Code:
1   byte    result
if(result == 0x01)
{
    4   uint    AgentServer.Token
    2   ushort  AgentServer.IP.Length
    *   string  AgentServer.IP
    2   ushort  AgentServer.Port
}
else if(result == 0x02)
{
    1   byte    errorCode
    if(errorCode == 0x01)
    {
        4   uint    MaxAttempts
        4   uint    CurAttempts
    }
    else if(errorCode == 0x02)
    {
        1   byte    blockType
        if(blockType == BlockType.Punishment)
        {
            2   ushort  punishment.Reason.Length
            *   string  punishment.Reason
            2   ushort  punishment.EndDate.Year
            2   ushort  punishment.EndDate.Month
            2   ushort  punishment.EndDate.Day
            2   ushort  punishment.EndDate.Hour
            2   ushort  punishment.EndDate.Minute
            2   ushort  punishment.EndDate.Second
            2   ushort  punishment.EndDate.Microsecond
        }
    }
}
else if(result == 0x03) //Custom Message as A102 result, not supported by every client.
{
    //I've not looked into this yet.
    1   byte    unkByte0
    1   byte    unkByte1
    2   ushort  Message.Length
    *   string  Message
    2   ushort  unkUShort0
}
09/10/2019 22:27 alangomez2#3
Quote:
Originally Posted by #HB View Post
Target agent connection settings is received within the login response, A102:
Code:
1   byte    result
if(result == 0x01)
{
    4   uint    AgentServer.Token
    2   ushort  AgentServer.IP.Length
    *   string  AgentServer.IP
    2   ushort  AgentServer.Port
}
else if(result == 0x02)
{
    1   byte    errorCode
    if(errorCode == 0x01)
    {
        4   uint    MaxAttempts
        4   uint    CurAttempts
    }
    else if(errorCode == 0x02)
    {
        1   byte    blockType
        if(blockType == BlockType.Punishment)
        {
            2   ushort  punishment.Reason.Length
            *   string  punishment.Reason
            2   ushort  punishment.EndDate.Year
            2   ushort  punishment.EndDate.Month
            2   ushort  punishment.EndDate.Day
            2   ushort  punishment.EndDate.Hour
            2   ushort  punishment.EndDate.Minute
            2   ushort  punishment.EndDate.Second
            2   ushort  punishment.EndDate.Microsecond
        }
    }
}
else if(result == 0x03) //Custom Message as A102 result, not supported by every client.
{
    //I've not looked into this yet.
    1   byte    unkByte0
    1   byte    unkByte1
    2   ushort  Message.Length
    *   string  Message
    2   ushort  unkUShort0
}
okey, i understood nothing, how i should use that to get the agent ip and port if any sro server?
09/11/2019 07:10 sarkoplata#4
After you login to the game, open cmd, type netstat -n. Check for the ESTABLISHED one with the gateway IP you find from the edx loader.