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!
Re: AS3 SWF Editing / Altering packet structures
Use rabcdasm to decompile and recompile the swf file.
Re: AS3 SWF Editing / Altering packet structures
Quote:
Originally Posted by
Era
Use rabcdasm to decompile and recompile the swf file.
Ye I did try that, but it doesn't quite output AS3
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.
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:
http://image.prntscr.com/image/c08db...588d8a082e.png
Edited:
http://image.prntscr.com/image/9b6f7...597fb55f4f.png
Re: AS3 SWF Editing / Altering packet structures
Quote:
Originally Posted by
Beny.
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
Re: AS3 SWF Editing / Altering packet structures
Quote:
Originally Posted by
Keiz
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.
Re: AS3 SWF Editing / Altering packet structures
Quote:
Originally Posted by
Beny.
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!
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
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
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!
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.
Re: AS3 SWF Editing / Altering packet structures
Quote:
Originally Posted by
The General
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 :-)
Re: AS3 SWF Editing / Altering packet structures
Quote:
Originally Posted by
Boraida
Let's make one :-)
We are already two steps ahead of you.
Re: AS3 SWF Editing / Altering packet structures
Quote:
Originally Posted by
Beny.
We are already two steps ahead of you.
Good for you! :-)
Re: AS3 SWF Editing / Altering packet structures
Quote:
Originally Posted by
The General
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.
Re: AS3 SWF Editing / Altering packet structures
Quote:
Originally Posted by
Keiz
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.
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