Deprecated: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /home/iano/public_html/tpforums-vb5/forum/includes/class_core.php on line 5842

PHP Warning: Use of undefined constant MYSQL_NUM - assumed 'MYSQL_NUM' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: Use of undefined constant MYSQL_ASSOC - assumed 'MYSQL_ASSOC' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: Use of undefined constant MYSQL_BOTH - assumed 'MYSQL_BOTH' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ..../includes/functions_navigation.php on line 588

PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ..../includes/functions_navigation.php on line 612

PHP Warning: Use of undefined constant misc - assumed 'misc' (this will throw an Error in a future version of PHP) in ..../global.php(29) : eval()'d code(6) : eval()'d code on line 1

PHP Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in ..../global.php(29) : eval()'d code(6) : eval()'d code on line 1

PHP Warning: Use of undefined constant misc - assumed 'misc' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code(4) : eval()'d code on line 1

PHP Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code(4) : eval()'d code on line 1

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6
Packet List of Character 7.6
Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Packet List of Character 7.6

  1. #1
    Junior Member
    Join Date
    Apr 2013
    Posts
    5

    Question Packet List of Character 7.6

    can someone help me?
    I am using the following structure to send the list of characters
    for tibia client 7.6 in vb.net, sorry for the bad handling bytes hehehe but follows the code


    PHP Code:
                '2 bytes packet length
                '
    1 byte packet type (0x14)
                
    '2 bytes motd length
                '
    x bytes motd (id:0-255 messageexample123 "\n\nyaddayadda")
                
    '0x64 (not sure what this is)
                '
    1 byte amount of characters
                
    '--- loop this
                '
    ---2 bytes character name length
                
    '---x bytes character name
                '
    ---2 bytes server name length
                
    '---x bytes server name
                '
    ---4 bytes server ip
                
    '---2 bytes server port

                Dim mtd As String = "123 + \n\nyaddayadda"
                Dim characterName As String = "Duca Nuker"


                Dim PacketSize As Short
                Dim PackType(0) As Byte
                PacketType = BitConverter.GetBytes(Convert.ToInt16(&H14))
                Dim MotdLength As Short = Convert.ToInt16(Encoding.ASCII.GetBytes(mtd).Length)
                Dim Motd As [Byte]() = Encoding.ASCII.GetBytes(mtd)
                Dim CharListType As Short = &H64
                Dim AmmountOfChar As Byte = Convert.ToByte(1)
                Dim charNameLength As Short = Convert.ToInt16(Encoding.ASCII.GetBytes(characterName).Length)
                Dim charName As [Byte]() = Encoding.ASCII.GetBytes(characterName)
                Dim serverNameLength As Short = Convert.ToInt16(Encoding.ASCII.GetBytes(characterName).Length)
                Dim serverName As [Byte]() = Encoding.ASCII.GetBytes(characterName)
                Dim ipServer(3) As Byte
                ipServer = Encoding.ASCII.GetBytes("127.0.0.1")
                Dim portServer As Short = 7171
                Dim premDay As Short = 60

                PacketSize = Len(PacketSize) + Len(PacketType.Length) + Len(MotdLength) + Motd.Length + Len(CharListType) + Len(AmmountOfChar) + Len(charNameLength) + charName.Length + Len(serverNameLength) + serverName.Length + ipServer.Length + Len(portServer) + Len(premDay) 
    The structure this done correctly? when I send the package nothing happens on the client tibia 7.6
    Last edited by sequeled; 05-07-2013 at 03:20 PM. Reason: negrito

  2. #2
    Super Moderator
    Join Date
    May 2007
    Posts
    1,191
    You need to encrypt the packet with XTEA

  3. #3
    Junior Member
    Join Date
    Apr 2013
    Posts
    5
    xtea in client 7.6 ? o.0
    Last edited by sequeled; 05-07-2013 at 03:41 PM. Reason: err

  4. #4
    Super Moderator
    Join Date
    May 2007
    Posts
    1,191
    Quote Originally Posted by sequeled View Post
    xtea in client 7.6 ? o.0
    I'm fairly sure XTEA was implemented then. I develop mostly for 7.72, and XTEA (and RSA) is implemented there.

  5. #5
    Senior Member
    Join Date
    Apr 2008
    Posts
    689
    Look at the packets with Wireshark

  6. #6
    Junior Member
    Join Date
    Apr 2013
    Posts
    5
    good idea man ! thanks

  7. #7
    Junior Member
    Join Date
    Apr 2013
    Posts
    5

    Question packet

    The packet, i'dont understand
    someone translate for me the structure for this packet ?


    copied from wireshark

    PHP Code:
    0000   80 ee 73 06 84 8b 00 0c 42 29 16 ef 08 00 45 00  ..s.....B)....E.
    0010   00 72 ad b2 40 00 36 06 e8 32 45 a2 5e e8 0a 11  .r..@.6..2E.^...
    0020   00 06 1c 03 8b 66 4b 0e 7c 66 7c 84 09 44 50 18  .....fK.|f|..DP.
    0030   00 73 b9 6d 00 00 48 00 14 28 00 35 0a 57 65 6c  .s.m..H..(.5.Wel
    0040   63 6f 6d 65 20 74 6f 20 53 76 2d 54 75 72 69 6f  come to Sv
    -Turio
    0050   6e 20 4f 6c 64 53 63 68 6f 6f 6c 20 53 65 72 76  n OldSchool Serv
    0060   65 72 21 64 01 04 00 58 62 6f 78 0b 00 31 32 2f  er
    !d...Xbox..12/
    0070   53 6f 72 63 65 72 65 72 45 a2 5e e8 04 1c d1 03                                                  SorcererE.^..... 

  8. #8
    Senior Member
    Join Date
    Apr 2008
    Posts
    689
    1. you should be looking only at the tcp frame
    2. apparently it doesn't use xtea

  9. #9
    Junior Member
    Join Date
    Apr 2013
    Posts
    5
    yes, but I understand querria What do packet that contains exactly

  10. #10
    Senior Member
    Join Date
    Apr 2008
    Posts
    689
    1. When does that packet show up? Figure that out

    2. Is it reproduceable? Good. Based on when this packet shows up, try to figure what information it carries

    3. Try to change the pre-condition for the appearance of this packet. Did the packet data change? Great. Repeat this process a bunch of times until you get several packets of this type with different data. Make sure you keep note of what you did differently each time to make difference in the packet

    4. Compare the recorded packets. Try to find how the changed bytes of data correlate to the changes you kept note of.

    That's how you figure the packet structure without debugging the client.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •