SOUL
┼ ┼ ┼
- Nov 10, 2015
- 224
- 45
Howdy,
The global variable "PlusEnvironment.SWFRevision" displays your hotel's current revision on the "about command" and users can send a new string to the server which replaces the SWF Revision string. It isn't the biggest exploit although didn't get much attention.
Tested it on Peace and a few others quite surprised they haven't patched it yet , will leave this here simply for proof not going to post more as it's nothing to gloat about..
Here's the fix
Or you could just remove it as showing your revision isn't necessary but that's down to you.
The global variable "PlusEnvironment.SWFRevision" displays your hotel's current revision on the "about command" and users can send a new string to the server which replaces the SWF Revision string. It isn't the biggest exploit although didn't get much attention.
Tested it on Peace and a few others quite surprised they haven't patched it yet , will leave this here simply for proof not going to post more as it's nothing to gloat about..
Here's the fix
- Locate the file 'GetClientVersionEvent.cs' -Communication > Packets > Incoming > Handshake
- Replace the class content with the code below.
using Plus.HabboHotel.GameClients;using Plus.Communication.Packets.Incoming;
namespace Plus.Communication.Packets.Incoming.Handshake
{
public class GetClientVersionEvent : IPacketEvent
{
public void Parse(GameClient Session, ClientPacket Packet)
{
string Build = Packet.PopString();
if (!Build.ToLower().StartsWith("production"))
return;
Session.SWFRevision = Build;
}
}
}
namespace Plus.Communication.Packets.Incoming.Handshake
{
public class GetClientVersionEvent : IPacketEvent
{
public void Parse(GameClient Session, ClientPacket Packet)
{
string Build = Packet.PopString();
if (!Build.ToLower().StartsWith("production"))
return;
Session.SWFRevision = Build;
}
}
}
- Locate file "GameClient.cs" - HabboHotel > GameClients
- Find "private readonly int _id;" (at top) and above it, add the code:
internal string SWFRevision { get; set; }
- Save the file.
- Locate the file "InfoCommand.cs" - HabboHotel > Rooms > Chat > Commands > User
- Search for
PlusEnvironment.SWFRevision
- Replace with
Session.SWFRevision
Or you could just remove it as showing your revision isn't necessary but that's down to you.
Last edited: