Collaboration for a new member

Started by Laer07, February 20, 2010, 07:23:51 PM

Previous topic - Next topic

MiCrOMaN1

K ima give it a shot. I hope all this time we gave won't go to vain. Peace.
Our Greatest Resource is Our Mind ~ Kareem Abdul-Jabbar
Check this: http://img123.exs.cx/img123/4497/gif1.gif

Myst

For those interested in battle.net.dll, don't know if you checked this out already, it may help: http://botdev.org/doku.php?id=battle.net.dll
Suggest also to start other threads in regard to one given topic, so you don't fall into having pages and pages of multiple different things. ;)

Haplo

#32
software piracy
#Post Deleted.

MiCrOMaN1

#33
Hmm...There seems to be a problem. I converted it to CWS, yet when I try to open it with SWF decompiler, it says that the file is corrupted. By the way, It says GFX in the hex editor not CFX...I must be doing something wrong.

Quote from: Haplo on February 21, 2010, 04:13:35 AM
Post deleted.

Thanks for the help, but I've already got flash :D
Our Greatest Resource is Our Mind ~ Kareem Abdul-Jabbar
Check this: http://img123.exs.cx/img123/4497/gif1.gif

MiCrOMaN1

Ya..I don't think you can convert it to .swf just by changing the extension. .Swf is actually flash object too, if you didn't know.
Our Greatest Resource is Our Mind ~ Kareem Abdul-Jabbar
Check this: http://img123.exs.cx/img123/4497/gif1.gif

MADCATX

I decompiled gfx files by changing extension to SWF and editing first 3 letters to CWS with Sothink SWF Decompiler. But there is no usefull code generated:
File Battle.net.MPQ->SWF->Dashboard->PlayGame->WindowMapList.gfx->Action:Dashboard-PlayGame-WindowMapList

// Action script...

// [onClipEvent of sprite 57 in frame 1]
onClipEvent (construct)
{
    disableConstraints = false;
    disabled = false;
    disableFocus = true;
    labelID = "";
    toggle = false;
    visible = true;
}

// [onClipEvent of sprite 58 in frame 1]
onClipEvent (construct)
{
    disableConstraints = false;
    disabled = false;
    disableFocus = false;
    labelID = "";
    toggle = false;
    visible = true;
}

// [onClipEvent of sprite 63 in frame 1]
onClipEvent (construct)
{
    disabled = false;
    offsetBottom = 0;
    offsetTop = 0;
    inspectableScrollTarget = "";
    trackMode = "scrollPage";
    visible = true;
}

// [onClipEvent of sprite 65 in frame 1]
onClipEvent (construct)
{
    disabled = false;
    itemRenderer = "WindowMapList-MapListRenderer";
    margin = 0;
    paddingBottom = 0;
    paddingLeft = 0;
    paddingRight = 0;
    paddingTop = 0;
    inspectableRendererInstanceName = "";
    rowHeight = 0;
    inspectableScrollBar = "m_scrollbar";
    thumbOffsetBottom = 0;
    thumbOffsetTop = 0;
    thumbSizeFactor = 1;
    visible = true;
}

// [Initial MovieClip Action of sprite 79]
#initclip 33
Object.registerClass("Dashboard-PlayGame-WindowMapList", SC2.Dashboard.PlayGame.MapVetoList.WindowMapList);
#endinitclip

// [Action in Frame 1]
stop ();


There is also text files in this file, but they are not usefull too:

<p align="left"><font face="$Font_Title1" size="18" color="#0d75b0" letterSpacing="0.000000" kerning="1">Valley of Judgement</font></p>

MiCrOMaN1

@ MADCATZ

We're trying to crack the Battle.net.gfx file, not the MPQ file. Thanks for helping anyways.
Our Greatest Resource is Our Mind ~ Kareem Abdul-Jabbar
Check this: http://img123.exs.cx/img123/4497/gif1.gif

MADCATX

I opened the WindowMapList.gfx not the mpq, there is nothing usefull, it seems that all data is indeed in battle.net.gfx. This file is really huge on scripts, i can send it if you didn't opened it. Some code from file:
_Packeges.Protocol.BSN.Battlenet.S2Map.Statistics

// Action script...

// [Initial MovieClip Action of sprite 20504]
#initclip 25
if (!Protocol.BSN.Battlenet.S2Map.Statics)
{
    if (!Protocol)
    {
        _global.Protocol = new Object();
    } // end if
    if (!Protocol.BSN)
    {
        _global.Protocol.BSN = new Object();
    } // end if
    if (!Protocol.BSN.Battlenet)
    {
        _global.Protocol.BSN.Battlenet = new Object();
    } // end if
    if (!Protocol.BSN.Battlenet.S2Map)
    {
        _global.Protocol.BSN.Battlenet.S2Map = new Object();
    } // end if
    var _loc1 = (_global.Protocol.BSN.Battlenet.S2Map.Statics = function ()
    {
    }).prototype;
    ASSetPropFlags(_loc1, null, 1);
    (_global.Protocol.BSN.Battlenet.S2Map.Statics = function ()
    {
    }).MAX_REQUIRED_MODS = 4;
    (_global.Protocol.BSN.Battlenet.S2Map.Statics = function ()
    {
    }).MAX_OPTIONAL_MODS = 4;
    (_global.Protocol.BSN.Battlenet.S2Map.Statics = function ()
    {
    }).MAX_DEPENDENCIES = 10;
    (_global.Protocol.BSN.Battlenet.S2Map.Statics = function ()
    {
    }).MAX_VARIANTS = 32;
    (_global.Protocol.BSN.Battlenet.S2Map.Statics = function ()
    {
    }).MAX_NAME_LENGTH = 80;
    (_global.Protocol.BSN.Battlenet.S2Map.Statics = function ()
    {
    }).MAX_DESCRIPTION_LENGTH = 500;
    (_global.Protocol.BSN.Battlenet.S2Map.Statics = function ()
    {
    }).BATCH_SIZE = 10;
    (_global.Protocol.BSN.Battlenet.S2Map.Statics = function ()
    {
    }).BAD_ID = 0;
    (_global.Protocol.BSN.Battlenet.S2Map.Statics = function ()
    {
    }).MIN_MAP_SEARCH_STRING = 3;
    (_global.Protocol.BSN.Battlenet.S2Map.Statics = function ()
    {
    }).MAX_MAP_LOCALES = 50;
    (_global.Protocol.BSN.Battlenet.S2Map.Statics = function ()
    {
    }).MAPFILTERTYPE_EVERYTHING = 0;
    (_global.Protocol.BSN.Battlenet.S2Map.Statics = function ()
    {
    }).MAPFILTERTYPE_GENRE = 1;
    (_global.Protocol.BSN.Battlenet.S2Map.Statics = function ()
    {
    }).BAD_VERSION = 0;
    (_global.Protocol.BSN.Battlenet.S2Map.Statics = function ()
    {
    }).FIRST_VALID_VERSION = 1;
    (_global.Protocol.BSN.Battlenet.S2Map.Statics = function ()
    {
    }).LINKENTRYTYPE_PRIMARY = 0;
    (_global.Protocol.BSN.Battlenet.S2Map.Statics = function ()
    {
    }).LINKENTRYTYPE_OPTIONAL = 1;
    (_global.Protocol.BSN.Battlenet.S2Map.Statics = function ()
    {
    }).LINKENTRYTYPE_DEPENDENCY = 2;
    (_global.Protocol.BSN.Battlenet.S2Map.Statics = function ()
    {
    }).MAP_LINK_LIST_SIZE = 100;
    (_global.Protocol.BSN.Battlenet.S2Map.Statics = function ()
    {
    }).BlizzardLabel = "BLIZ";
    (_global.Protocol.BSN.Battlenet.S2Map.Statics = function ()
    {
    }).BlizzardPublisher = "blizzmaps#blizzmaps";
    (_global.Protocol.BSN.Battlenet.S2Map.Statics = function ()
    {
    }).MAX_GAMETYPE_VALUE = 7;
    (_global.Protocol.BSN.Battlenet.S2Map.Statics = function ()
    {
    }).FLAGVALUE_FLAG_BANNED = 1;
} // end if
#endinitclip


_Packeges.SC2.Dashboard.CreateGame.MapItemRenderer

// Action script...

// [Initial MovieClip Action of sprite 20538]
#initclip 59
if (!SC2.Dashboard.CreateGame.MapItemRenderer)
{
    if (!SC2)
    {
        _global.SC2 = new Object();
    } // end if
    if (!SC2.Dashboard)
    {
        _global.SC2.Dashboard = new Object();
    } // end if
    if (!SC2.Dashboard.CreateGame)
    {
        _global.SC2.Dashboard.CreateGame = new Object();
    } // end if
    var _loc1 = (_global.SC2.Dashboard.CreateGame.MapItemRenderer = function ()
    {
        super();
        BATTLENET.Singletons.Social.Party.AddListener(this);
        this.m_featuredBackground1._visible = this.m_featuredBackground2._visible = false;
        if (this.hitArea != undefined)
        {
            this.hitArea._visible = false;
        } // end if
        this.doubleClickEnabled = true;
    }).prototype;
    _loc1.setData = function (itemData)
    {
        if (itemData == this.data)
        {
            return;
        } // end if
        super.setData(itemData);
        if (itemData != undefined)
        {
            var _loc4 = new SC2.Containers.Maps.Link(itemData);
            this.m_primaryHandle = _loc4.GetPrimaryHandle();
            SC2.Singletons.Maps.S2Maps.GetS2Map(this.m_primaryHandle.m_id, this.m_primaryHandle.m_version, new LIBRARY.Utilities.Callback(this.setDataCallback, this));
        }
        else
        {
            this.m_primaryHandle = undefined;
            this.SetNormalMode();
        } // end else if
    };
    _loc1.setDataCallback = function (success)
    {
        var _loc3 = success.m_mapInfo;
        var _loc4 = _loc3.m_handle;
        if (this.m_primaryHandle.m_id != _loc4.m_id && this.m_primaryHandle.m_version != _loc4.m_version)
        {
            return;
        } // end if
        this.m_s2MapInfo = _loc3;
        this.SetNormalMode();
        this.PopulateText();
    };
    _loc1.PartyMemberJoined = function ()
    {
        this.SetNormalMode();
    };
    _loc1.PartyMemberLeft = function ()
    {
        this.SetNormalMode();
    };
    _loc1.PartyLeft = function ()
    {
        this.SetNormalMode();
    };
    _loc1.updateAfterStateChange = function ()
    {
        super.updateAfterStateChange();
        this.SetNormalMode();
        this.PopulateText();
    };
    _loc1.PopulateText = function ()
    {
        if (this.data == undefined)
        {
            this.m_name.text = this.m_author.text = this.m_genre.text = this.m_players.text = "";
            this.m_s2MapInfo = undefined;
            return;
        } // end if
        if (this.m_s2MapInfo != undefined)
        {
            var _loc2 = this.m_s2MapInfo.m_maxPlayers;
            if (_loc2 != undefined)
            {
                this.m_players.text = String(_loc2);
            } // end if
            var _loc3 = BattlenetAPI.GetMapHeaderString(this.m_s2MapInfo.m_handle, this.m_s2MapInfo.m_mapName);
            if (_loc3 != undefined)
            {
                this.m_name.text = _loc3;
            } // end if
            var _loc4 = this.CreateGenreListString(this.m_s2MapInfo);
            if (_loc4 != undefined)
            {
                this.m_genre.text = _loc4;
            } // end if
            var _loc5 = this.m_s2MapInfo.m_authorName.m_name;
            if (_loc5 != undefined)
            {
                this.m_author.text = BATTLENET.Utilities.Name.FormatToonName(_loc5);
                this.SetBlizzIcon(this.m_s2MapInfo);
            } // end if
        } // end if
    };
    _loc1.CreateGenreListString = function (mapInfo)
    {
        var _loc3 = SC2.Singletons.Maps.S2Maps.CreateGenreList(mapInfo);
        var _loc4 = new Array();
        var _loc5 = 0;
       
        while (++_loc5, _loc5 < _loc3.length)
        {
            if (_loc3[_loc5].m_visual.length == 0)
            {
                continue;
            } // end if
            _loc4.push(_loc3[_loc5].m_visual);
        } // end while
        return (_loc4.join(", "));
    };
    _loc1.SetBlizzIcon = function (mapInfo)
    {
        if (mapInfo != undefined && mapInfo.m_label == Protocol.BSN.Battlenet.S2Map.Statics.BlizzardLabel)
        {
            this.m_blizzIcon._visible = true;
        }
        else
        {
            this.m_blizzIcon._visible = false;
        } // end else if
    };
    _loc1.SetShowMoreButtonMode = function ()
    {
        this.m_buttonPiece._visible = true;
        this.textField._visible = true;
        this.m_name._visible = false;
        this.m_genre._visible = false;
        this.m_author._visible = false;
        this.m_players._visible = false;
        this.m_blizzIcon._visible = false;
        this.m_numberIcon._visible = false;
        if (this.m_downAnim)
        {
            this.m_downAnim._visible = false;
        } // end if
        if (this.m_overAnim)
        {
            this.m_overAnim._visible = false;
        } // end if
    };
    _loc1.SetNormalMode = function ()
    {
        this.m_buttonPiece._visible = false;
        this.textField._visible = false;
        if (this.data != undefined && this.m_s2MapInfo != undefined)
        {
            this.m_name._visible = true;
            this.m_author._visible = true;
            this.m_players._visible = true;
            this.m_numberIcon._visible = true;
            this.m_genre._visible = true;
            if (this.m_s2MapInfo.m_maxPlayers < BATTLENET.Singletons.Social.Party.GetNumberInParty())
            {
                this.disabled = true;
            }
            else
            {
                this.disabled = false;
            } // end else if
        }
        else
        {
            this.m_name._visible = false;
            this.m_author._visible = false;
            this.m_players._visible = false;
            this.m_numberIcon._visible = false;
            this.m_genre._visible = false;
            this.m_blizzIcon._visible = false;
            this.disabled = true;
        } // end else if
        if (this.m_downAnim)
        {
            this.m_downAnim._visible = true;
        } // end if
        if (this.m_overAnim)
        {
            this.m_overAnim._visible = true;
        } // end if
    };
    ASSetPropFlags(_loc1, null, 1);
} // end if
#endinitclip


There is 20000 symbol limit on this forum, posting one more message.

MADCATX

_Packeges.SC2.Singletons.Maps.S2Maps
as attachment

MiCrOMaN1

@MADCATZ

Do you think you can somehow open up the battle.net.gfx file? 'Cause that's the only one I'm interested in, and the only one that would be helpful to us. Opening the other scripts won't be of any help. If you got it open, then just tell me. I'd like to see where we can go if we got it cracked.
Our Greatest Resource is Our Mind ~ Kareem Abdul-Jabbar
Check this: http://img123.exs.cx/img123/4497/gif1.gif

MiCrOMaN1

#40
Dam! What's up with the 2nd attachment? Anyhow I only need the battle.net.gfx file. Can you somehow crack it open?

/offtopic Looks like there is strain on the darkblizz servers.

EDIT: Wiki site down?
Our Greatest Resource is Our Mind ~ Kareem Abdul-Jabbar
Check this: http://img123.exs.cx/img123/4497/gif1.gif

MADCATX

#41
2nd attachment is scripts from battle.net.gfx.
To open battle.net.gfx - rename it to battle.net.swf and edit first 3 symbols(from CFX to CWS) in notepad or hex editor. Then open it in Sothink SWF Decompiler. It will look like on attached screenshot...

MiCrOMaN1

#42
Aww man!!! I can't get it to open. STILL. I did everything you said..It says The file battle.net.swf is corrupted.

Also, when I try and open it in a hex editor, the first three letters are NOT CFX! They're GFX...
Our Greatest Resource is Our Mind ~ Kareem Abdul-Jabbar
Check this: http://img123.exs.cx/img123/4497/gif1.gif

MiCrOMaN1

Wait I got it! Can you click on file then click on Export as FLA? Then upload it to megaupload or something and post the link!! That would be helpful since I can't get this to open.
Our Greatest Resource is Our Mind ~ Kareem Abdul-Jabbar
Check this: http://img123.exs.cx/img123/4497/gif1.gif

far.runner

Quote from: Laer07 on February 20, 2010, 07:43:03 PM
Two, find the location in the code where it is defined to look at the blizzard servers and change that to something like 127.0.0.1/etc/etc...
just a thought:
one possible way to do this without changing the code is domain name redirection by using windows hosts file.
for example, assume map download server's domain name is "map.battle.net", then add one line like this:"127.0.0.1 map.battle.net" into hosts file in C:\WINDOWS\system32\drivers\etc. then all tcp/ip connection to map.battle.net will be redirected to 127.0.0.1

of course this require the actual domain name of the map server(and if sc2 use domain name iso ip address directly), however I think the domain name can be accquired by using sniffering tool like wireshark