Any SWIFT EMULATOR FIXES? [SQL]

Results 1 to 10 of 10
  1. #1
    Account Upgraded | Title Enabled! master99 is offline
    MemberRank
    Nov 2011 Join Date
    AustrailaLocation
    307Posts

    Any SWIFT EMULATOR FIXES? [SQL]

    I'm sick to death of getting my hotel.users deleted!! It pisses me of real bad.... Can you please... tell me any swift emulator SQL fixes? Please??

    AND!? How do I translate the commands on swift emulator?


  2. #2
    The Omega Superfun is offline
    MemberRank
    Dec 2006 Join Date
    The NetherlandsLocation
    5,227Posts

    Re: Any SWIFT EMULATOR FIXES? [SQL]

    Who says its becouse of swift, maybe somebody is using a website exploit.

    (look in your log, use different users for emu and web to indentify the origin)

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

    Re: Any SWIFT EMULATOR FIXES? [SQL]

    There is an exploit in the navigator when you search for room -> owner: 'Inject Here'

    Quote Originally Posted by Superfun View Post
    Who says its becouse of swift, maybe somebody is using a website exploit.

    (look in your log, use different users for emu and web to indentify the origin)
    Because he probably already checked his site?

  4. #4
    Account Upgraded | Title Enabled! master99 is offline
    MemberRank
    Nov 2011 Join Date
    AustrailaLocation
    307Posts

    Re: Any SWIFT EMULATOR FIXES? [SQL]

    I don't think ubercms has exploits....


    Thanks HillBilly I'll give it a go fixing it....

  5. #5
    Account Upgraded | Title Enabled! master99 is offline
    MemberRank
    Nov 2011 Join Date
    AustrailaLocation
    307Posts

    Re: Any SWIFT EMULATOR FIXES? [SQL]

    My bad, UBERCMS has a few exploits.... but not many.... Easy fix...... Ethan galea.... I don't find that help.... I'd probably class that as spam.... :l

  6. #6
    Proficient Member TriDev is offline
    MemberRank
    Jan 2013 Join Date
    169Posts

    Re: Any SWIFT EMULATOR FIXES? [SQL]

    Quote Originally Posted by master99 View Post
    My bad, UBERCMS has a few exploits.... but not many.... Easy fix...... Ethan galea.... I don't find that help.... I'd probably class that as spam.... :l
    Just be careful owning a retro, have you even checked if you have received a DMCA?

  7. #7
    Account Upgraded | Title Enabled! master99 is offline
    MemberRank
    Nov 2011 Join Date
    AustrailaLocation
    307Posts

    Re: Any SWIFT EMULATOR FIXES? [SQL]

    Yes, Everyday ;)

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

    Re: Any SWIFT EMULATOR FIXES? [SQL]

    I'll give you the fix for the owner: exploit.
    Go to butterfly > habbohotel> navigators > navigator
    Search for:
    Code:
    internal ServerMessage SerializeSearchResults(string SearchQuery)
    Change to:
    Code:
    internal ServerMessage SerializeSearchResults(string SearchQuery)
            {
                string ProtectedSearch = ButterflyEnvironment.FilterInjectionChars(SearchQuery);
                if (ProtectedSearch.Contains("INSERT") || ProtectedSearch.Contains("DELETE") || ProtectedSearch.Contains("TRUNCATE") || ProtectedSearch.Contains(";"))
                {
                    ProtectedSearch = "";
                    SearchQuery = "";
                }
                DataTable table = new DataTable();
                using (IQueryAdapter adapter = ButterflyEnvironment.GetDatabaseManager().getQueryreactor())
                {
                    if (SearchQuery.Length > 0)
                    {
                        if (SearchQuery.StartsWith("owner:"))
                        {
                            adapter.setQuery("SELECT * FROM rooms WHERE owner LIKE @owner ORDER BY id DESC LIMIT 50");
                        }
                        else if (adapter.dbType == DatabaseType.MySQL)
                        {
                            adapter.setQuery("SELECT rooms.*, room_active.active_users FROM rooms LEFT JOIN room_active ON (room_active.roomid = rooms.id) WHERE owner = @query AND roomtype = 'private' UNION ALL SELECT rooms.*, room_active.active_users FROM rooms LEFT JOIN room_active ON (room_active.roomid = rooms.id) WHERE caption = @query AND roomtype = 'private' ORDER BY active_users DESC LIMIT 50");
                        }
                        else
                        {
                            adapter.setQuery("SELECT TOP 50 rooms.*, room_active.active_users FROM rooms LEFT JOIN room_active ON (room_active.roomid = rooms.id) WHERE owner = @query AND roomtype = 'private' UNION ALL SELECT rooms.*, room_active.active_users FROM rooms LEFT JOIN room_active ON (room_active.roomid = rooms.id) WHERE caption = @query AND roomtype = 'private' ORDER BY active_users DESC");
                        }
                        adapter.addParameter("query", ProtectedSearch);
                        adapter.addParameter("owner", ProtectedSearch.Replace("owner:", ""));
                        table = adapter.getTable();
                    }
                }
                List<RoomData> list = new List<RoomData>();
                if (table != null)
                {
                    foreach (DataRow row in table.Rows)
                    {
                        RoomData item = ButterflyEnvironment.GetGame().GetRoomManager().FetchRoomData(Convert.ToUInt32(row["id"]), row);
                        list.Add(item);
                    }
                }
                ServerMessage message = new ServerMessage(Outgoing.NavigatorPacket);
                message.AppendInt32(8);
                message.AppendString(SearchQuery);
                message.AppendInt32(list.Count);
                foreach (RoomData data2 in list)
                {
                    data2.Serialize(message, false);
                }
                message.AppendBoolean(false);
                return message;
            }

  9. #9
    Account Upgraded | Title Enabled! master99 is offline
    MemberRank
    Nov 2011 Join Date
    AustrailaLocation
    307Posts

    Re: Any SWIFT EMULATOR FIXES? [SQL]

    thanks so much!

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

    Re: Any SWIFT EMULATOR FIXES? [SQL]

    Quote Originally Posted by master99 View Post
    thanks so much!
    You're welcome ;)



Advertisement