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 85

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 85

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 85

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
How to get recv address?
Page 1 of 4 123 ... LastLast
Results 1 to 10 of 31

Thread: How to get recv address?

  1. #1

    How to get recv address?

    I want to play a little bit with packets, tibia winsock, but I lack in finding recv address. Anyone could help me? I wont get address of 10.78 but little help how to find it. I'm new with ollydbg ;/

  2. #2
    Super Moderator klusbert's Avatar
    Join Date
    Dec 2007
    Posts
    1,201
    open ollydbg and search for:
    Code:
      PUSH EBP
      MOV EBP,ESP
      PUSH DWORD PTR SS:[EBP+10h]
      PUSH DWORD PTR SS:[EBP+0Ch]
      PUSH DWORD PTR SS:[EBP+8h]
      PUSH DWORD PTR DS:[ECX+4h]
    Doubleclick the call and you will see the address.
    http://i.imgur.com/i2cGcdl.png

    for 10.78 it is 0x757994 (with base 0x400000)
    How to find battlelist address --> http://tpforums.org/forum/thread-8146.html
    Updating addresses --> http://tpforums.org/forum/thread-8625.html
    DataReader --> http://tpforums.org/forum/thread-10387.html

  3. #3
    I am very thankfull!

  4. #4
    When I execute with olly tibia.exe with aslr on how I can find address? Always the base would be another... So, I'm asking if i think in good way, that I will run olly on virtualmachine with windowsxp thats hasnt aslr on? Should it be easier? I got mindfuck btw spent 1h looking into olly searchin for address xD

  5. #5
    I think I found it It's 0x707994 with base 0x400000?
    Last edited by belzebub; 06-18-2015 at 02:28 PM.

  6. #6
    Senior Member Lolrapa's Avatar
    Join Date
    Mar 2014
    Posts
    125
    If you have aslr activated in your pc every time windows opens tibia it will have a different starting point in the memory.
    To find, save and use addresses with aslr you need to do this:

    1) Find the address you want to use ex: My position in X lets put it in 0x800000

    2) Find the tibia current base address, you can do it by load tibia in cheat engine-> add address manually -> and write "Tibia.exe" let say the value you get is 0x500000

    3) Calculate the relative address position, this is the position of the address form the beggining of tibia's memory to do this just substract the base address to the absolute position: Relative= 0x800000 - 0x500000 = 0x300000

    4)(optional) tibia base address when aslr is off is 0x400000 so if you want to get the address to that base address just add the relative position to the base address: position for tibia 0x400000 = 0x300000 + 0x400000 = 0x700000

    5)Now in your program you'll have to find a way to get the current base address, for instance, for c# is Process.GetProcessByName("Tibia")[0].MainModule.BaseAddress() once you have tibia current base addess you have to calculte the absolute position of the address you want to read so:
    If you done step 4:
    My Pos X = 0x700000 - 0x400000 + Tibia Current Base Address
    If you didn't done step 4:
    My Pos X = 0x300000 + Tibia Current Base Address

    This Change of base address (Rebase) has to be done every time tibia reloads.
    Last edited by Lolrapa; 06-18-2015 at 03:32 PM.

  7. #7
    Senior Member
    Join Date
    Dec 2011
    Posts
    249
    Or just disable ASLR for Tibia.

  8. #8
    Senior Member Lolrapa's Avatar
    Join Date
    Mar 2014
    Posts
    125
    Quote Originally Posted by ottizy View Post
    Or just disable ASLR for Tibia.
    If want your program to be de distributable you can't ask for the user to disable aslr

  9. #9
    Senior Member
    Join Date
    Dec 2011
    Posts
    249
    With concern to this:

    Quote Originally Posted by belzebub View Post
    When I execute with olly tibia.exe with aslr on how I can find address? Always the base would be another... So, I'm asking if i think in good way, that I will run olly on virtualmachine with windowsxp thats hasnt aslr on? Should it be easier? I got mindfuck btw spent 1h looking into olly searchin for address xD

  10. #10
    Administrator
    Join Date
    Mar 2007
    Posts
    1,723
    While klusbert's method is fine, there's always the chance that the assembly could change in a future update, and it will no longer work. Here's a "better" method. Load the Tibia client in Ollydbg, right-click > Search for > All intermodular calls. When the window appears, click on "Destination" at the top to sort alphabetically. Scroll down to the 'R's, look for WS2_32.recv, double-click it and it will take you straight to the function call. Do the same for the send address by repeating the above process, but scrolling down to the 'S's and looking for WS2_32.send.

Posting Permissions

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