AS3 SWF Editing / Altering packet structures

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    The **** Keiz is offline
    MemberRank
    Nov 2015 Join Date
    238Posts

    AS3 SWF Editing / Altering packet structures

    Hey y'all.

    I have a question, only respond to the question if you know what I mean. ( No I'm not searching for Flash Decompiler )

    Say I hypothetically want to alter a packet's structure, I want an int converted to a string. I'm obviously familiar with AS3 Sorcerer, I can see the code I want to edit, yet I simply can't. AS3 Sorcerer is read-only.
    Does anyone have software to change AS3 code of a Habbo.swf?

    Thanks in advance!
    Last edited by Keiz; 27-11-16 at 06:34 PM.


  2. #2
    Apprentice So Lazy Today is offline
    MemberRank
    Aug 2015 Join Date
    NetherlandsLocation
    18Posts

    Re: AS3 SWF Editing / Altering packet structures

    Use rabcdasm to decompile and recompile the swf file.

  3. #3
    The **** Keiz is offline
    MemberRank
    Nov 2015 Join Date
    238Posts

    Re: AS3 SWF Editing / Altering packet structures

    Quote Originally Posted by Era View Post
    Use rabcdasm to decompile and recompile the swf file.
    Ye I did try that, but it doesn't quite output AS3

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

    Re: AS3 SWF Editing / Altering packet structures

    No because it outputs Actionscript Byte Code

    Its the only way. Yes its possible but you gotta know what you're doing.
    And no I don't know as I am not familar with ABC.

  5. #5
    V.I.P Member Beny. is offline
    MemberRank
    Aug 2009 Join Date
    536Posts

    Re: AS3 SWF Editing / Altering packet structures

    The decompiler I use, JPEXS Free Flash Decompiler, has an experimental feature that lets you alter ActionScript in ActionScript language.
    Otherwise ABC is the only way.


    I tested it out by adding a 'userId' to the disconnection/logged out packet (this packet redirects client to specific 'logged out' page).
    Seems to have worked.

    Original:




    Edited:


  6. #6
    The **** Keiz is offline
    MemberRank
    Nov 2015 Join Date
    238Posts

    Re: AS3 SWF Editing / Altering packet structures

    Quote Originally Posted by Beny. View Post
    The decompiler I use, JPEXS Free Flash Decompiler, has an experimental feature that lets you alter ActionScript in ActionScript language.
    Otherwise ABC is the only way.
    Wow! Ironic I asked not for such Flash Decompilers.. I will look into this, thanks

  7. #7
    V.I.P Member Beny. is offline
    MemberRank
    Aug 2009 Join Date
    536Posts

    Re: AS3 SWF Editing / Altering packet structures

    Quote Originally Posted by Keiz View Post
    Wow! Ironic I asked not for such Flash Decompilers.. I will look into this, thanks
    It's the only thing I have found which is what you are asking for ( even though you hate decompilers? )
    Feel free to PM if you want help, but I assume you know what you are doing based on what you asked to do.

  8. #8
    The **** Keiz is offline
    MemberRank
    Nov 2015 Join Date
    238Posts

    Re: AS3 SWF Editing / Altering packet structures

    Quote Originally Posted by Beny. View Post
    It's the only thing I have found which is what you are asking for ( even though you hate decompilers? )
    Feel free to PM if you want help, but I assume you know what you are doing based on what you asked to do.
    Thanks! Yes I altered the extendedProfile packet in both swf and emulator, and added an XML layout for it..
    Disconnects for now but does show what I want!
    Spoiler:




    Note the screen is taken just before disconnection. So it must have something to do with the relationships parser.
    But thanks for sure, this is what I was looking for
    Last edited by Keiz; 28-11-16 at 12:41 AM.

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

    Re: AS3 SWF Editing / Altering packet structures

    Oh wow. That opens up the possiblity for so much more @Beny.

    *cough* snowstorm *cough*

    Now all I want is a proper IDE. I tried decompiling and opening with FlexBuilder but that sucked.

    - - - Updated - - -

    Quote Originally Posted by Keiz View Post
    Thanks! Yes I altered the extendedProfile packet in both swf and emulator, and added an XML layout for it..
    Disconnects for now but does show what I want!
    Spoiler:




    Note the screen is taken just before disconnection. So it must have something to do with the relationships parser.
    But thanks for sure, this is what I was looking for
    Check the disconnect reason in the console of your browser.

  10. #10
    Proficient Member Boraida is offline
    MemberRank
    May 2011 Join Date
    The NetherlandsLocation
    161Posts

    Re: AS3 SWF Editing / Altering packet structures

    Quote Originally Posted by The General View Post
    Oh wow. That opens up the possiblity for so much more @Beny.

    *cough* snowstorm *cough*

    Now all I want is a proper IDE. I tried decompiling and opening with FlexBuilder but that sucked.

    - - - Updated - - -



    Check the disconnect reason in the console of your browser.
    Let's make one :-)

  11. #11
    V.I.P Member Beny. is offline
    MemberRank
    Aug 2009 Join Date
    536Posts

    Re: AS3 SWF Editing / Altering packet structures

    Quote Originally Posted by Boraida View Post
    Let's make one :-)
    We are already two steps ahead of you.

  12. #12
    Proficient Member Boraida is offline
    MemberRank
    May 2011 Join Date
    The NetherlandsLocation
    161Posts

    Re: AS3 SWF Editing / Altering packet structures

    Quote Originally Posted by Beny. View Post
    We are already two steps ahead of you.
    Good for you! :-)

  13. #13
    The **** Keiz is offline
    MemberRank
    Nov 2015 Join Date
    238Posts

    Re: AS3 SWF Editing / Altering packet structures

    Quote Originally Posted by The General View Post
    Oh wow. That opens up the possiblity for so much more @Beny.

    *cough* snowstorm *cough*

    Now all I want is a proper IDE. I tried decompiling and opening with FlexBuilder but that sucked.

    - - - Updated - - -



    Check the disconnect reason in the console of your browser.
    Many great things can come from this, for sure.

    Disconnection log:
    http://pastebin.com/raw/NeaVn96s

    This particular string is useful:
    Code:
    ["sent_msg_data"]=>
      string(970) "id=3760, pos=316, data=0e:b0:00:00:00:09:00:00:00:03:00:00:00:01:00:00:00:01:00:00:00:0d:00:07:53:68:61:72:6d:61:6e:00:38:73:68:2d:33:30:33:35:2d:31:31:30:2e:68:64:2d:36:32:39:2d:32:2e:6c:67:2d:33:34:31:38:2d:31:33:32:39:2e:63:68:2d:33:30:31:33:2d:31:33:33:35:2e:68:72:2d:35:31:35:2d:34:35:00:00:00:03:00:00:00:01:00:00:00:0c:00:03:31:30:35:00:4e:73:68:2d:33:35:32:34:2d:36:34:2d:31:34:30:38:2e:68:72:2d:38:32:38:2d:31:34:30:37:2e:63:68:2d:33:30:35:30:2d:31:34:30:38:2d:31:34:30:38:2e:68:64:2d:31:38:30:2d:32:2e:6c:67:2d:33:30:35:37:2d:38:30:2e:63:70:2d:33:33:31:31:2d:31:34:31:39:00:00:00:02:00:00:00:01:00:00:00:06:00:06:5a:6f:64:69:61:6b:00:6c:63:68:2d:38:30:34:2d:39:32:2e:65:61:2d:31:34:30:31:2d:39:32:2e:63:61:2d:31:38:31:33:2d:36:33:2e:6c:67:2d:33:32:30:32:2d:37:31:2d:39:32:2e:66:61:2d:31:32:30:31:2d:36:33:2e:73:68:2d:33:30:38:39:2d:37:31:2e:68:61:2d:31:30:31:36:2d:36:33:2e:68:72:2d:38:33:31:2d:35:36:2e:68:64:2d:31:38:30:2d:31:2e:63:63:2d:33:31:35:32:2d:37:31"
    In the revision I use, header 3760 is actually the GetRelationshipsMessageComposer
    I'm not sure what would cause such an error, but I did change the RelationshipsComposer to a static packet with count 0 sent, even that disconnects me. Even not-sending the packet disconnects, quite odd.

  14. #14
    V.I.P Member Beny. is offline
    MemberRank
    Aug 2009 Join Date
    536Posts

    Re: AS3 SWF Editing / Altering packet structures

    Quote Originally Posted by Keiz View Post
    Many great things can come from this, for sure.

    Disconnection log:
    http://pastebin.com/raw/NeaVn96s

    This particular string is useful:
    Code:
    ["sent_msg_data"]=>
      string(970) "id=3760, pos=316, data=0e:b0:00:00:00:09:00:00:00:03:00:00:00:01:00:00:00:01:00:00:00:0d:00:07:53:68:61:72:6d:61:6e:00:38:73:68:2d:33:30:33:35:2d:31:31:30:2e:68:64:2d:36:32:39:2d:32:2e:6c:67:2d:33:34:31:38:2d:31:33:32:39:2e:63:68:2d:33:30:31:33:2d:31:33:33:35:2e:68:72:2d:35:31:35:2d:34:35:00:00:00:03:00:00:00:01:00:00:00:0c:00:03:31:30:35:00:4e:73:68:2d:33:35:32:34:2d:36:34:2d:31:34:30:38:2e:68:72:2d:38:32:38:2d:31:34:30:37:2e:63:68:2d:33:30:35:30:2d:31:34:30:38:2d:31:34:30:38:2e:68:64:2d:31:38:30:2d:32:2e:6c:67:2d:33:30:35:37:2d:38:30:2e:63:70:2d:33:33:31:31:2d:31:34:31:39:00:00:00:02:00:00:00:01:00:00:00:06:00:06:5a:6f:64:69:61:6b:00:6c:63:68:2d:38:30:34:2d:39:32:2e:65:61:2d:31:34:30:31:2d:39:32:2e:63:61:2d:31:38:31:33:2d:36:33:2e:6c:67:2d:33:32:30:32:2d:37:31:2d:39:32:2e:66:61:2d:31:32:30:31:2d:36:33:2e:73:68:2d:33:30:38:39:2d:37:31:2e:68:61:2d:31:30:31:36:2d:36:33:2e:68:72:2d:38:33:31:2d:35:36:2e:68:64:2d:31:38:30:2d:31:2e:63:63:2d:33:31:35:32:2d:37:31"
    In the revision I use, header 3760 is actually the GetRelationshipsMessageComposer
    I'm not sure what would cause such an error, but I did change the RelationshipsComposer to a static packet with count 0 sent, even that disconnects me. Even not-sending the packet disconnects, quite odd.
    Do you have debug function on your FlashExternalInterface?
    This may return more info.

  15. #15
    j’aime ma famille dominic is offline
    MemberRank
    Aug 2012 Join Date
    ~/Location
    611Posts

    Re: AS3 SWF Editing / Altering packet structures

    Well, you're not alone. When I alter a structure, I get "failed to parse incoming message" although I've done everything as Sulake have done



Page 1 of 2 12 LastLast

Advertisement