Solved How to mess around in a chatbox? (mainly flash app)

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

oharra

Jr.Coder
Full Member
Nobleman
Mar 9, 2015
56
252
0
I would like to know how I could change font and colors in a chatbox :) in my favourite game, using html strings doesn't work or colored text just shows up as usual there... I have seen few ppl do such things, and even modifying game messages, or talking just like it's another person talking etc.... Does anyone know tricks being used for this? This is a kind of standalone chatbox (within that site/game). It's mainly flash with some html and javascript. I have the src code if that could help anyone to see how it's written...

Kind Regards
 
Last edited by a moderator:

till0sch

Respected Hacker
Dank Tier VIP
Dank Tier Donator
Oct 14, 2012
1,104
12,593
51
Where are the pros here on this forum? :p I'm a noob in chat hacking...
What I found using Sothink SWF Decompiler is this:
C++:
private function ConnectSmartFox() : void
        {
            this.mNet = new NetBase();
            if (FlexGlobals.topLevelApplication.url.indexOf("http") == -1)
            {
                sWebUrl = "";
                name = OWUser.GetUser().GetName();
                this.mNet.Connect("localhost", 9339, "OWChat", name, "", this.OnSmartFoxReady);
            }
            else if (FlexGlobals.topLevelApplication.url.indexOf("tetrisfriends.tetrisdev.com") != -1)
            {
                sWebUrl = "https://tetrisfriends.tetrisdev.com";
                this.mNet.Connect("64.128.14.171", 9339, "OWChat", OWUser.GetUser().GetName(), "", this.OnSmartFoxReady);
            }
            else if (FlexGlobals.topLevelApplication.url.indexOf("localhost") != -1)
            {
                sWebUrl = "https://localhost:81";
                this.mNet.Connect("localhost", 9339, "OWChat", OWUser.GetUser().GetName(), "", this.OnSmartFoxReady);
            }
            else if (FlexGlobals.topLevelApplication.url.indexOf("tetrisfriends.tetrisbeta.com") != -1)
            {
                sWebUrl = "https://tetrisfriends.tetrisbeta.com";
                this.mNet.Connect("64.128.14.173", 9339, "OWChat", OWUser.GetUser().GetName(), "", this.OnSmartFoxReady);
            }
            else
            {
                sWebUrl = "https://www.tetrisfriends.com";
                this.mNet.Connect("sfs.tetrisfriends.com", 9339, "OWChat", OWUser.GetUser().GetName(), "", this.OnSmartFoxReady);
            }
            return;
        }// end function
just ignore those local host connectings
 

till0sch

Respected Hacker
Dank Tier VIP
Dank Tier Donator
Oct 14, 2012
1,104
12,593
51
I would like to know how I could change font and colors in a chatbox :) in my favourite game, using html strings doesn't work or colored text just shows up as usual there... I have seen few ppl do such things, and even modifying game messages, or talking just like it's another person talking etc.... Does anyone know tricks being used for this? This is a kind of standalone chatbox (within that site/game). It's mainly flash with some html and javascript. I have the src code if that could help anyone to see how it's written...

Kind Regards
source code and name of game could help
 

oharra

Jr.Coder
Full Member
Nobleman
Mar 9, 2015
56
252
0
Where are the pros here on this forum? :p I'm a noob in chat hacking...
 

oharra

Jr.Coder
Full Member
Nobleman
Mar 9, 2015
56
252
0
What I found using Sothink SWF Decompiler is this:
C++:
private function ConnectSmartFox() : void
        {
            this.mNet = new NetBase();
            if (FlexGlobals.topLevelApplication.url.indexOf("http") == -1)
            {
                sWebUrl = "";
                name = OWUser.GetUser().GetName();
                this.mNet.Connect("localhost", 9339, "OWChat", name, "", this.OnSmartFoxReady);
            }
            else if (FlexGlobals.topLevelApplication.url.indexOf("tetrisfriends.tetrisdev.com") != -1)
            {
                sWebUrl = "https://tetrisfriends.tetrisdev.com";
                this.mNet.Connect("64.128.14.171", 9339, "OWChat", OWUser.GetUser().GetName(), "", this.OnSmartFoxReady);
            }
            else if (FlexGlobals.topLevelApplication.url.indexOf("localhost") != -1)
            {
                sWebUrl = "https://localhost:81";
                this.mNet.Connect("localhost", 9339, "OWChat", OWUser.GetUser().GetName(), "", this.OnSmartFoxReady);
            }
            else if (FlexGlobals.topLevelApplication.url.indexOf("tetrisfriends.tetrisbeta.com") != -1)
            {
                sWebUrl = "https://tetrisfriends.tetrisbeta.com";
                this.mNet.Connect("64.128.14.173", 9339, "OWChat", OWUser.GetUser().GetName(), "", this.OnSmartFoxReady);
            }
            else
            {
                sWebUrl = "https://www.tetrisfriends.com";
                this.mNet.Connect("sfs.tetrisfriends.com", 9339, "OWChat", OWUser.GetUser().GetName(), "", this.OnSmartFoxReady);
            }
            return;
        }// end function
just ignore those local host connectings
Hi, I also use sothink decompiler since recently, I just don't really know what to look for in this case... I have the source of that site too including flash files but it wasn't reading codes that made me hack the game :) it's just a bunch of variables and names you find but that doesn't get you any far with cheat engine...

What can I do with this script u posted?
Thanks
 

till0sch

Respected Hacker
Dank Tier VIP
Dank Tier Donator
Oct 14, 2012
1,104
12,593
51
Could you make an example or show us how actually such messages look like etc.
public function SendMessage(param1:String) : void
{
var _loc_2:* = null;
var _loc_3:* = 0;
var _loc_6:* = false;
var _loc_7:* = false;
var _loc_8:* = false;
var _loc_9:* = null;
var _loc_4:* = /~/g;
var _loc_5:* = /\|/g;
param1 = param1.replace(_loc_4, "").replace(_loc_5, "");
if (param1.charAt(0) == "!")
{
}
if (OWUser.GetUser().GetIsDeveloper())
{
_loc_2 = param1;
_loc_6 = false;
_loc_7 = false;
_loc_8 = false;
_loc_3 = _loc_2.indexOf("!!");
if (_loc_3 == 0)
{
_loc_2 = _loc_2.slice(2, _loc_2.length);
_loc_6 = true;
}
else
{
_loc_2 = _loc_2.slice(1, _loc_2.length);
}
if (_loc_2.charAt(0) == "*")
{
_loc_7 = true;
_loc_2 = _loc_2.slice(1, _loc_2.length);
}
this.mNet.SendModeratorMessage(_loc_2 + "\n", _loc_6, _loc_7, _loc_8);
}
else
{
if (param1.charAt(0) == "[")
{
}
if (param1.charAt(1) != "]")
{
}
if (OWUser.GetUser().GetIsDeveloper())
{
_loc_2 = param1;
_loc_3 = _loc_2.indexOf("]");
if (_loc_3 != -1)
{
_loc_9 = _loc_2.slice(1, _loc_3);
_loc_2 = _loc_2.slice((_loc_3 + 1), _loc_2.length);
this.mNet.SendModeratorMessage(_loc_2 + "\n", false, false, _loc_8, _loc_9);
}
}
else
{
this.mNet.SendPublicChat(param1);
}
}
return;
}// end function

Otherwise does this function check whether you are mod / developer..


Other than that can't I say how this looks like, or what you can do aditionally as moderator / developer
 
Last edited:

oharra

Jr.Coder
Full Member
Nobleman
Mar 9, 2015
56
252
0
Could you make an example or show us how actually such messages look like etc.
public function SendMessage(param1:String) : void
{
var _loc_2:* = null;
var _loc_3:* = 0;
var _loc_6:* = false;
var _loc_7:* = false;
var _loc_8:* = false;
var _loc_9:* = null;
var _loc_4:* = /~/g;
var _loc_5:* = /\|/g;
param1 = param1.replace(_loc_4, "").replace(_loc_5, "");
if (param1.charAt(0) == "!")
{
}
if (OWUser.GetUser().GetIsDeveloper())
{
_loc_2 = param1;
_loc_6 = false;
_loc_7 = false;
_loc_8 = false;
_loc_3 = _loc_2.indexOf("!!");
if (_loc_3 == 0)
{
_loc_2 = _loc_2.slice(2, _loc_2.length);
_loc_6 = true;
}
else
{
_loc_2 = _loc_2.slice(1, _loc_2.length);
}
if (_loc_2.charAt(0) == "*")
{
_loc_7 = true;
_loc_2 = _loc_2.slice(1, _loc_2.length);
}
this.mNet.SendModeratorMessage(_loc_2 + "\n", _loc_6, _loc_7, _loc_8);
}
else
{
if (param1.charAt(0) == "[")
{
}
if (param1.charAt(1) != "]")
{
}
if (OWUser.GetUser().GetIsDeveloper())
{
_loc_2 = param1;
_loc_3 = _loc_2.indexOf("]");
if (_loc_3 != -1)
{
_loc_9 = _loc_2.slice(1, _loc_3);
_loc_2 = _loc_2.slice((_loc_3 + 1), _loc_2.length);
this.mNet.SendModeratorMessage(_loc_2 + "\n", false, false, _loc_8, _loc_9);
}
}
else
{
this.mNet.SendPublicChat(param1);
}
}
return;
}// end function

Otherwise does this function check whether you are mod / developer..


Other than that can't I say how this looks like, or what you can do aditionally as moderator / developer
Thx, that's interesting, seems to be something really interesting to make yourself a developper :p I have the whole sourcecode of the site so I could further look into how that function works ("getIsdevelopper"), the chatbox is pretty simple, ill make a capture and add it.
 
Last edited by a moderator:
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods