Plus Emulator Exploit fix

AusNGrant

Member
Jun 21, 2015
74
9
Hi, I have set up many hotels r63 and r63b. I'm trying to set one up currently. I downloaded the latest swfs and emu from *****, and also applied a few exploit fixes myself in the emulator code. No issues upon debugging - but I get 76% on the client. Emu shows that I am not connected. I have open ports in firewall and I took my proxy off the client while trying to fix this. Here are my client.php and config.ini :
Code:
## uberEmulator System Configuration File
## Must be edited for the server to work

## MySQL Configuration
db.hostname=localhost
db.port=3306
db.username=root
db.password=password
db.name=databasename
## MySQL pooling setup (controls amount of connections)
db.pool.minsize=10
db.pool.maxsize=250

## Game TCP/IP Configuration
game.tcp.bindip=serverip
game.tcp.port=30000
game.tcp.conlimit=100000
game.tcp.conperip=200
game.tcp.enablenagles=true

## MUS TCP/IP Configuration
mus.tcp.bindip=serverip
mus.tcp.port=30001
mus.tcp.allowedaddr=localhost;serverip

## Client configuration
client.ping.enabled=1
client.ping.interval=20000
client.maxrequests=300

The emulator connects to the database and shows it's listening for connections on 30000. Heres the client.php:
Code:
    <?php        require_once ('app/tpl/skins/site/includes/checktheban.php'); ?>
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8">
        <title>{hotelname} - Client</title>

  <link rel="stylesheet" href="http://url/client.css" type="text/css">
 
 
        
        <script type="text/javascript" src="http://url/swfobject.js"></script>
        <script type="text/javascript">
            var BaseUrl = "http://url/swf/gordon/PRODUCTION-201602082203-712976078/";
            var flashvars =
            {   
  "client.allow.cross.domain" : "0",
  "client.notify.cross.domain" : "1",
  "connection.info.host" : "ip",
  "connection.info.port" : "30000",
  "site.url" : "http://url",
  "url.prefix" : "http://url",
  "client.reload.url" : "http://url/client",
  "client.fatal.error.url" : "http://url/client",
  "client.connection.failed.url" : "http://url/client",
  "logout.url" : "http://url/client",
  "logout.disconnect.url" : "http://url/client",
  "external.variables.txt" : "http://url/swf/gamedata/external_variables.txt",
  "external.texts.txt" : "http://url/swf/gamedata/external_flash_texts.txt",
  "external.figurepartlist.txt" : "http://url/swf/gamedata/figuredata.xml",
  "productdata.load.url" : "http://url/swf/gamedata/productdata.txt",
  "furnidata.load.url" : "http://url/swf/gamedata/furnidata.xml",
  "sso.ticket" : "{sso}",
  "processlog.enabled" : "0",
  "client.starting" : "{username}, Welcome to hotel Hotel!",
  "flash.client.url" : "http://url/swf/gordon/PRODUCTION-201602082203-712976078/",
  "user.hash" : "code that i dont know is safe to release",
  "has.identity" : "1",
  "flash.client.origin" : "popup",
  "nux.lobbies.enabled" : "true",
  "country_code" : "GB"
            };
            var params =
            {
                "base" : BaseUrl + "/",
                "allowScriptAccess" : "always",
                "menu" : "false"               
            };
            swfobject.embedSWF(BaseUrl + "habbo.swf", "client", "100%", "100%", "10.0.0", "http://url/swf/gordon/PRODUCTION-201602082203-712976078/expressInstall.swf", flashvars, params, null);
          </script>
</head>

    
    <body>

        <div id="client"></div>


    </body>
</html>
No errors on developer tools (chrome). Full clean database. The exploits I applied are the SSO one's , where you edit the emulator code and change some class.core and .users stuff, dont think that's the issue anyway since if I close my emulator when trying to connect is continues to stay on 76. Note that it doesnt disconnect me after being on 76% for 30secs, it goes on for hours.


Any help would be appreciated, never seen this before when I set all hotels up the same.
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,199
3,934
Bring up the console in your browser, and check if anything is 'hanging' on the network tab.

You can usually see this after it loads the gamedata stuff, if something is linked incorrectly, or 404'd it'll hang.

Code:
"user.hash" : "code that i dont know is safe to release",

Isn't used as far as I'm aware.

As for:

Code:
game.tcp.bindip

You can simply set these to '127.0.0.1' and MUS.
 

AusNGrant

Member
Jun 21, 2015
74
9
Bring up the console in your browser, and check if anything is 'hanging' on the network tab.

You can usually see this after it loads the gamedata stuff, if something is linked incorrectly, or 404'd it'll hang.

Code:
"user.hash" : "code that i dont know is safe to release",

Isn't used as far as I'm aware.

As for:

Code:
game.tcp.bindip

You can simply set these to '127.0.0.1' and MUS.
Nothing on the console, nice and clean.
Also, since I updated the codes I was supplied with to fix the sso in class.core and class.users, everytime i try to refresh the client page or close it and try navigate to another page on the cms, It logs me out to the index. And I changed the ip's in emulator config to 127.0.0.1, loads to 76% and disconnects me.
Even when it disconnects me at 76%, I get logged out and have to sign back in. Might be something in the sqls for the php..?
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,199
3,934
Are you disconnected instantly now? If so that sounds like packet structure issues (or SSO issues, as it'll disconnect you straight away if the SSO is wrong).

The CMS is logging you out, not the emulator (probably the redirection on disconnection?).

Check if your SSO is updated in the database as you load the client, it might be also worth running the emulator in debug mode so you can see where it gets up to.
 

Joe

Well-Known Member
Jun 10, 2012
4,172
1,955
Have you had the hotel running previously?
Have you started using a new production and are using the correct Habbo.swf? A lot of people download the latest and add the non cracked Habbo.swf
Are all of your SWF's linked up correctly?

I can try help you on Skype, if you want, joe.g95
 

AusNGrant

Member
Jun 21, 2015
74
9
Have you had the hotel running previously?
Have you started using a new production and are using the correct Habbo.swf? A lot of people download the latest and add the non cracked Habbo.swf
Are all of your SWF's linked up correctly?

I can try help you on Skype, if you want, joe.g95
Latest (cracked) habbo.swf off *****, and I had it up earlier but I reset my vps for personal reasons and can't seem to get it back up - using exact same backed up cms, just different emu and the edits in class.core / .users . All swfs linked correctly, no issues in console and the habbo.swf loads the loading images with the bar. Skype added
 
Are you disconnected instantly now? If so that sounds like packet structure issues (or SSO issues, as it'll disconnect you straight away if the SSO is wrong).

The CMS is logging you out, not the emulator (probably the redirection on disconnection?).

Check if your SSO is updated in the database as you load the client, it might be also worth running the emulator in debug mode so you can see where it gets up to.
Disconnect reload url is /client, performing the test to see if it updates the sso now.
I deleted all user_auth_ticket records before logging in then tried, it created a record with correct user id and a auth_ticket, but the ticket changed once I loaded the client.
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,199
3,934
Latest (cracked) habbo.swf off *****, and I had it up earlier but I reset my vps for personal reasons and can't seem to get it back up - using exact same backed up cms, just different emu and the edits in class.core / .users . All swfs linked correctly, no issues in console and the habbo.swf loads the loading images with the bar. Skype added
 

Disconnect reload url is /client, performing the test to see if it updates the sso now.
I deleted all user_auth_ticket records before logging in then tried, it created a record with correct user id and a auth_ticket, but the ticket changed once I loaded the client.

Okay, another question:
- The ticket that {sso} is returning - is it the same as the one in 'user_auth_ticket' table?
 

AusNGrant

Member
Jun 21, 2015
74
9
Okay, another question:
- The ticket that {sso} is returning - is it the same as the one in 'user_auth_ticket' table?
The one in the user table hasn't updated since yesterday, only thing that's changing is the user_auth_ticket table
 
All fixed now, just needed to use the same SWF that came with the emulator, not the latest cracked one. Could you assist me with the logging out issue? It really is a pain.
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,199
3,934
The one in the user table hasn't updated since yesterday, only thing that's changing is the user_auth_ticket table
 
All fixed now, just needed to use the same SWF that came with the emulator, not the latest cracked one. Could you assist me with the logging out issue? It really is a pain.

Oh, oops. I should have picked up when you mentioned 'latest SWF', my bad thought you meant something else.

Sure, what's exactly the issue? Do you have TeamViewer, might be easier?
 

AusNGrant

Member
Jun 21, 2015
74
9
Oh, oops. I should have picked up when you mentioned 'latest SWF', my bad thought you meant something else.

Sure, what's exactly the issue? Do you have TeamViewer, might be easier?
If you could pm me your skype we can talk there for instant messaging, may be easier. Forgot to update the thread but @JMG supplied me with a fix for the logging out issue, just put my class.core and class.users back to the original and he gave me a code to put in ssoticketevent. Saved that ssoticketevent file and started debugging, now I only get to 76% and it disconnects me.
 

Users who are viewing this thread

Top