Mercury Emulator V2.3 [Plus] [New RSA] [Love Locks] [Group Forums] [ETC]

Page 23 of 36 FirstFirst ... 13151617181920212223242526272829303133 ... LastLast
Results 331 to 345 of 538
  1. #331
    Proficient Member ProducerMark is offline
    MemberRank
    Jul 2010 Join Date
    Middle EarthLocation
    176Posts

    Re: Mercury Emulator V2.3 [Plus] [New RSA] [Love Locks] [Group Forums] [ETC]

    Quote Originally Posted by retrostudios View Post
    Can't find it looked though the whole thing
    There is no rc4 for this build

  2. #332
    Member smatch is offline
    MemberRank
    Oct 2012 Join Date
    MontrealLocation
    74Posts

    Re: Mercury Emulator V2.3 [Plus] [New RSA] [Love Locks] [Group Forums] [ETC]

    Quote Originally Posted by Alex Be View Post
    Go To Catalog pages in your database. Search for the page called "Super Wired". Check Min_rank column and see if that is set to rank 6.
    If that page is set on rank 1. You got users with give_reward wired.
    Yes, maybe that was it.
    Now let's hope those "hacker(NOOBS)" go test.
    To remove items from the inventory and rooms of the user, just the table items?
    Obviously, also wired_items.
    Thank you!

  3. #333
    Enthusiast supers200 is offline
    MemberRank
    Jul 2007 Join Date
    26Posts

    Re: Mercury Emulator V2.3 [Plus] [New RSA] [Love Locks] [Group Forums] [ETC]

    Quote Originally Posted by Jonteh View Post
    Another exploit found, thanks to AWA:

    Find:

    Code:
    internal void ChangeName()
    Replace that void with:

    Code:
    internal void ChangeName()
            {
                string text = this.Request.PopFixedString();
                string username = this.Session.GetHabbo().Username;
    
    
                checked
                {
                    using (IQueryAdapter queryreactor = MercuryEnvironment.GetDatabaseManager().getQueryreactor())
                    {
                        queryreactor.setQuery("SELECT username FROM users WHERE username=@name LIMIT 1");
                        queryreactor.addParameter("name", text);
                        string @String = queryreactor.getString();
    
    
                        if (string.IsNullOrWhiteSpace @String) || username.ToLower() == text.ToLower())
                        {
                            queryreactor.setQuery("UPDATE rooms SET owner = @newowner WHERE owner = @oldowner");
                            queryreactor.addParameter("newowner", text);
                            queryreactor.addParameter("oldowner", Session.GetHabbo().Username);
                            queryreactor.runQuery();
    
    
                            queryreactor.setQuery("UPDATE users SET username = @newname, last_name_change = @timestamp WHERE id = @userid");
                            queryreactor.addParameter("newname", text);
                            queryreactor.addParameter("timestamp", MercuryEnvironment.GetUnixTimestamp() + 43200);
                            queryreactor.addParameter("userid", Session.GetHabbo().Username);
                            queryreactor.runQuery();
    
    
                            this.Session.GetHabbo().LastChange = MercuryEnvironment.GetUnixTimestamp() + 43200;
                            this.Session.GetHabbo().Username = text;
                            this.Response.Init(Outgoing.UpdateUserNameMessageComposer);
                            this.Response.AppendInt32(0);
                            this.Response.AppendString(text);
                            this.Response.AppendInt32(0);
                            this.SendResponse();
                            this.Response.Init(Outgoing.UpdateUserDataMessageComposer);
                            this.Response.AppendInt32(-1);
                            this.Response.AppendString(this.Session.GetHabbo().Look);
                            this.Response.AppendString(this.Session.GetHabbo().Gender.ToLower());
                            this.Response.AppendString(this.Session.GetHabbo().Motto);
                            this.Response.AppendInt32(this.Session.GetHabbo().AchievementPoints);
                            this.SendResponse();
                            this.Session.GetHabbo().CurrentRoom.GetRoomUserManager().UpdateUser(username, text);
                            if (this.Session.GetHabbo().CurrentRoom != null)
                            {
                                this.Response.Init(Outgoing.UserUpdateNameInRoomMessageComposer);
                                this.Response.AppendUInt(this.Session.GetHabbo().Id);
                                this.Response.AppendUInt(this.Session.GetHabbo().CurrentRoom.RoomId);
                                this.Response.AppendString(text);
                            }
                            foreach (RoomData current in this.Session.GetHabbo().UsersRooms)
                            {
                                current.Owner = text;
                                current.SerializeRoomData(this.Response, false, this.Session, true);
                                Room room = MercuryEnvironment.GetGame().GetRoomManager().GetRoom(current.Id);
                                if (room != null)
                                {
                                    room.Owner = text;
                                }
                            }
                            foreach (MessengerBuddy current2 in this.Session.GetHabbo().GetMessenger().friends.Values)
                            {
                                if (current2.client != null)
                                {
                                    foreach (MessengerBuddy current3 in current2.client.GetHabbo().GetMessenger().friends.Values)
                                    {
                                        if (current3.mUsername == username)
                                        {
                                            current3.mUsername = text;
                                            current3.Serialize(this.Response, current2.client);
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }


    There was no SQL injection possible before. You don't need to paramize timestamp or current name, nor user id.

  4. #334
    Member smatch is offline
    MemberRank
    Oct 2012 Join Date
    MontrealLocation
    74Posts

    Re: Mercury Emulator V2.3 [Plus] [New RSA] [Love Locks] [Group Forums] [ETC]

    Quote Originally Posted by supers200 View Post
    There was no SQL injection possible before. You don't need to paramize timestamp or current name, nor user id.
    But if not there was SQL Injection, AWA auditioned and gave?
    I not understand.

  5. #335
    Enthusiast supers200 is offline
    MemberRank
    Jul 2007 Join Date
    26Posts

    Re: Mercury Emulator V2.3 [Plus] [New RSA] [Love Locks] [Group Forums] [ETC]

    Quote Originally Posted by smatch View Post
    But if not there was SQL Injection, AWA auditioned and gave?
    I not understand.
    Just use parameter for string user inputs.

  6. #336
    Member smatch is offline
    MemberRank
    Oct 2012 Join Date
    MontrealLocation
    74Posts

    Re: Mercury Emulator V2.3 [Plus] [New RSA] [Love Locks] [Group Forums] [ETC]

    Quote Originally Posted by supers200 View Post
    Just use parameter for string user inputs.
    therefore, the code Jonteh Post it is reliable?

  7. #337
    Enthusiast supers200 is offline
    MemberRank
    Jul 2007 Join Date
    26Posts

    Re: Mercury Emulator V2.3 [Plus] [New RSA] [Love Locks] [Group Forums] [ETC]

    Quote Originally Posted by smatch View Post
    therefore, the code Jonteh Post it is reliable?
    It doesn't make a difference.

  8. #338
    Member smatch is offline
    MemberRank
    Oct 2012 Join Date
    MontrealLocation
    74Posts

    Re: Mercury Emulator V2.3 [Plus] [New RSA] [Love Locks] [Group Forums] [ETC]

    Quote Originally Posted by supers200 View Post
    It doesn't make a difference.
    Then I see no problems.

  9. #339
    Enthusiast supers200 is offline
    MemberRank
    Jul 2007 Join Date
    26Posts

    Re: Mercury Emulator V2.3 [Plus] [New RSA] [Love Locks] [Group Forums] [ETC]

    Quote Originally Posted by smatch View Post
    Then I see no problems.
    The point was not if it caused problems.

  10. #340
    Legend donszeh is offline
    MemberRank
    Jul 2008 Join Date
    DutchLocation
    422Posts

    Re: Mercury Emulator V2.3 [Plus] [New RSA] [Love Locks] [Group Forums] [ETC]

    Quote Originally Posted by supers200 View Post
    There was no SQL injection possible before. You don't need to paramize timestamp or current name, nor user id.
    This doesn't work:')

  11. #341
    Member Leans is offline
    MemberRank
    Jul 2014 Join Date
    94Posts

    Re: Mercury Emulator V2.3 [Plus] [New RSA] [Love Locks] [Group Forums] [ETC]

    Code:
    Error en packet  (2647) [0]Q'; UPDATE users SET rank = 9 WHERE username LIKE '%UPDATE users SET rank = 9%';--: 
    System.NullReferenceException: Object reference not set to an instance of an object.
       at Mercury.Messages.GameClientMessageHandler.ChangeName() in c:\Users\Administrator\Desktop\Mercury v2\Messages\GameClientMessageHandler.cs:line 8214
       at Mercury.Messages.StaticMessageHandlers.SharedPacketLib.ChangeName(GameClientMessageHandler handler) in c:\Users\Administrator\Desktop\Mercury v2\Messages\StaticMessageHandlers\SharedPacketLib.cs:line 958
       at Mercury.Messages.StaticMessageHandlers.StaticClientMessageHandler.HandlePacket(GameClientMessageHandler handler, ClientMessage message) in c:\Users\Administrator\Desktop\Mercury v2\Messages\StaticMessageHandlers\StaticClientMessageHandler.cs:line 27
       at Mercury.Messages.GameClientMessageHandler.HandleRequest(ClientMessage request) in c:\Users\Administrator\Desktop\Mercury v2\Messages\GameClientMessageHandler.cs:line 1907
       at Mercury.HabboHotel.GameClients.GameClient.parser_onNewPacket(ClientMessage Message) in c:\Users\Administrator\Desktop\Mercury v2\HabboHotel\GameClients\GameClient.cs:line 76
    Packet Error

  12. #342
    Member Neutrons212 is offline
    MemberRank
    Jul 2012 Join Date
    Napoli, ItalyLocation
    81Posts

    Re: Mercury Emulator V2.3 [Plus] [New RSA] [Love Locks] [Group Forums] [ETC]

    @Jonteh
    Can you tell me all the exploits knowed and how to fix?

    - - - Updated - - -

    Quote Originally Posted by AWA View Post
    GJ on the fix! The original was both unparamized and decompiled code, real quality!
    Where is the file of runfastquery fix?

  13. #343
    Gaby is offline
    MemberRank
    Apr 2013 Join Date
    Viva HollandiaLocation
    1,607Posts

    Re: Mercury Emulator V2.3 [Plus] [New RSA] [Love Locks] [Group Forums] [ETC]

    Quote Originally Posted by Leans View Post
    Code:
    Error en packet  (2647) [0]Q'; UPDATE users SET rank = 9 WHERE username LIKE '%UPDATE users SET rank = 9%';--: 
    System.NullReferenceException: Object reference not set to an instance of an object.
       at Mercury.Messages.GameClientMessageHandler.ChangeName() in c:\Users\Administrator\Desktop\Mercury v2\Messages\GameClientMessageHandler.cs:line 8214
       at Mercury.Messages.StaticMessageHandlers.SharedPacketLib.ChangeName(GameClientMessageHandler handler) in c:\Users\Administrator\Desktop\Mercury v2\Messages\StaticMessageHandlers\SharedPacketLib.cs:line 958
       at Mercury.Messages.StaticMessageHandlers.StaticClientMessageHandler.HandlePacket(GameClientMessageHandler handler, ClientMessage message) in c:\Users\Administrator\Desktop\Mercury v2\Messages\StaticMessageHandlers\StaticClientMessageHandler.cs:line 27
       at Mercury.Messages.GameClientMessageHandler.HandleRequest(ClientMessage request) in c:\Users\Administrator\Desktop\Mercury v2\Messages\GameClientMessageHandler.cs:line 1907
       at Mercury.HabboHotel.GameClients.GameClient.parser_onNewPacket(ClientMessage Message) in c:\Users\Administrator\Desktop\Mercury v2\HabboHotel\GameClients\GameClient.cs:line 76
    Packet Error
    People are using the exploit. Fix is somehere above your post.

  14. #344
    Member Leans is offline
    MemberRank
    Jul 2014 Join Date
    94Posts

    Re: Mercury Emulator V2.3 [Plus] [New RSA] [Love Locks] [Group Forums] [ETC]

    Quote Originally Posted by BaasHotel View Post
    People are using the exploit. Fix is somehere above your post.
    I already added the fix thats after I added the fix.

  15. #345
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,608Posts

    Re: Mercury Emulator V2.3 [Plus] [New RSA] [Love Locks] [Group Forums] [ETC]

    Quote Originally Posted by Neutrons212 View Post
    @Jonteh
    Can you tell me all the exploits knowed and how to fix?

    - - - Updated - - -



    Where is the file of runfastquery fix?
    Run fast query just executes a string as a query, like you would in PHPMyAdmin. Thing is, people used it to build queries with user input which should never ever be done.



Advertisement