XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 9 of 9

Thread: Logout Function

  1. #1
    Banned
    Join Date
    Aug 2011
    Location
    Sweden
    Posts
    106
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Logout Function

    Since everyone (including me) is nagging so hard on this F*cking Logout function, i thought i might as well give this to ya:

    Code:
    int BaseAddress = 0x400000;
    int LogoutAddress = BaseAddress + 0xE2E0;
    
    typedef void _Lgt();
    static _Lgt *Logout = (_Lgt*)LogoutAddress;
    Code:
    Logout();
    ^ Logs out character, MAGIC :3

    This is the address for 10.00

    Code:
    My thought was, instead of being an annoying kid only asking for shit. I would actually atleast provide you with the shit needed. xP
    @DarkstaR
    Last edited by Milice; 06-09-2013 at 06:48 AM.

  2. #2
    Senior Member pixie_frigo's Avatar
    Join Date
    Dec 2012
    Location
    Ghent, Belgium
    Posts
    458
    Mentioned
    38 Post(s)
    Tagged
    0 Thread(s)
    Thank you for sharing ! Got some more functions like this ? Like to get skills maybe?


    There is already a training options check out Self.UseBed and doSelfSelectTrainingMode

    There is also a lua command that shuts the program down I have found recently

    os.exit() thats an x log ^^

  3. #3
    Senior Member XtrmJosh's Avatar
    Join Date
    Apr 2012
    Location
    Cambridge, England
    Posts
    1,324
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)
    Not sure if you noticed @pixie_frigo but this is C++ code, not Lua.

    If you did notice, and your question about getting skills etc was a genuine one, take a look at either www.tpforums.org or https://code.google.com/p/japi/. JAPI is a project I'm working on (it's kinda like TibiaAPI, but not nearly as good yet, and it will use keyboard / mouse simulation instead of memory writing), written entirely in C#, with a tiny bit of assembly coming soon (if I can work out how to run it correctly). If you're looking just to read values from Tibia it could be just the trick as it contains all the memory reading functions you'll need, and skills etc can be added quite easily

    @Milice - You do realise that this won't work for anyone using ASLR, right? I don't know if XB disables ASLR, but if it doesn't then this won't work on any machine with windows 7 / 8. On top of that, the method of doing it is pretty bad, I mean, why write to memory when you could simply SendMessage a ctrl + Q or ctrl + L combo followed by enter?
    You cannot fail, so I'm lowering the standard.

  4. #4
    Banned
    Join Date
    Aug 2011
    Location
    Sweden
    Posts
    106
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    @XtrmJosh I know this won't work for ASLR since i only set a static base address, this is just an example and the address offset from the baseaddress, maybe someone will find it useful. Maybe even DarkstaR would, i don't know how he would handle this.. But this is one way of doing it :3

    Also, write to memory? O_o'
    If you are so afraid that that shit will write anything, you could simply just:

    Code:
    void Logout(){
    	__asm{
    		call LogoutAddress
    	}
    }
    Last edited by Milice; 06-09-2013 at 10:06 PM.

  5. #5
    Senior Member XtrmJosh's Avatar
    Join Date
    Apr 2012
    Location
    Cambridge, England
    Posts
    1,324
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Milice View Post
    @XtrmJosh I know this won't work for ASLR since i only set a static base address, this is just an example and the address offset from the baseaddress, maybe someone will find it useful. Maybe even DarkstaR would, i don't know how he would handle this.. But this is one way of doing it :3
    The reason he hasn't implemented automatic logout is because it comes hand in hand with automatic login, and the reason he hasn't implemented that is because it is highly detectable if used incorrectly, and he doesn't trust that the community will respect the system enough to use it properly... The bigger issue of course being that if we start giving links to CIP that players who are logging in instantly etc are also generating certain patterns, they will have more evidence to ban more people (it only makes sense that they will use statistical analysis to improve their methods). I don't know if DarkstaR plans to implement an auto logout function, I suspect not though. The fact is we have an exit command which also disables alarms by ending the Tibia and XB process, which actually is probably far more productive than it would be to just logout (and potentially leave Tibia pointlessly lingering with alarms running etc), especially when you consider that the only real thing in favor of a logout function is data preservation, and that can be dealt with using a combination of HUDs and Screenshots... There is no solid argument which I can name in favor of a logout function, for the reasons listed above.

    It's nice of you to share though, don't get me wrong, I like and appreciate that your idea was well founded.
    You cannot fail, so I'm lowering the standard.

  6. #6
    Lifetime Subscriber Xeno Scripts's Avatar
    Join Date
    Dec 2011
    Location
    Sweden
    Posts
    1,556
    Mentioned
    158 Post(s)
    Tagged
    2 Thread(s)
    Quote Originally Posted by XtrmJosh View Post
    The reason he hasn't implemented automatic logout is because it comes hand in hand with automatic login, and the reason he hasn't implemented that is because it is highly detectable if used incorrectly, and he doesn't trust that the community will respect the system enough to use it properly... The bigger issue of course being that if we start giving links to CIP that players who are logging in instantly etc are also generating certain patterns, they will have more evidence to ban more people (it only makes sense that they will use statistical analysis to improve their methods). I don't know if DarkstaR plans to implement an auto logout function, I suspect not though. The fact is we have an exit command which also disables alarms by ending the Tibia and XB process, which actually is probably far more productive than it would be to just logout (and potentially leave Tibia pointlessly lingering with alarms running etc), especially when you consider that the only real thing in favor of a logout function is data preservation, and that can be dealt with using a combination of HUDs and Screenshots... There is no solid argument which I can name in favor of a logout function, for the reasons listed above.

    It's nice of you to share though, don't get me wrong, I like and appreciate that your idea was well founded.
    He has stated that he will make a logout function however he will never make a login function.



  7. #7
    Senior Member pixie_frigo's Avatar
    Join Date
    Dec 2012
    Location
    Ghent, Belgium
    Posts
    458
    Mentioned
    38 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by XtrmJosh View Post
    Not sure if you noticed @pixie_frigo but this is C++ code, not Lua.
    I know yes But isn't their a way to use c functions in lua or like push c functions into lua or something ? xD
    I don't know much about it ! I am in my masters physics now I only know java, lua and python haha But next year a lot c coding too so maybe i will then understand what you guys are sayina haha!

  8. #8
    Banned
    Join Date
    Aug 2011
    Location
    Sweden
    Posts
    106
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    @XtrmJosh As "Xeno Scripts" stated above. DarkstaR actually clearly stated in his last livestream that he will implent a logout function, but never a login function. I was just thinking maybe i could save him a little bit of work ( if even just a really small amount ) since we're just taking and taking and never really appreciating anything. I thought someone would stand up and actually try to help out

  9. #9
    Induce's Avatar
    Join Date
    Jun 2013
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Edit - using: os.exit()
    Last edited by Induce; 07-24-2013 at 08:17 PM.

Posting Permissions

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