A Flash Developer Resource Site

Results 1 to 14 of 14

Thread: [AS3] Another byteArray example to avoid stealing

  1. #1
    Senior Member tonypa's Avatar
    Join Date
    Jul 2001
    Location
    Estonia
    Posts
    8,223

    [AS3] Another byteArray example to avoid stealing

    Try here:

    http://www.tonypa.pri.ee/test/1.html

    There are 2 swfs. 1 is the loader and 2 is your great game. For the sake of this test 2.swf only contains textfield with HELLO!. Now lets suppose you are one of those hackers using decompiler from "the company whos name shall not be said" and you are eager to change the content of the game (adding some code for your arcade plugin, removing name of author, removing url lock etc).

    Can you break it and change the game file?

  2. #2
    Member
    Join Date
    Jun 2007
    Posts
    64
    Yes, here are both swf files.

    http://www.coregraphic.com/Rick/gameandloader.zip

    I don't have a decompiler here, but I would venture to say having both of these files is all I need... Is that incorrect?

  3. #3
    Senior Member tonypa's Avatar
    Join Date
    Jul 2001
    Location
    Estonia
    Posts
    8,223
    Try to run 2.swf on its own or open it in decompiler.

  4. #4
    Member
    Join Date
    Jun 2007
    Posts
    64
    Quote Originally Posted by tonypa
    Try to run 2.swf on its own or open it in decompiler.
    I'll have to wait until later to decompile it. I did run 2.swf by itself and saw nothing, but I assumed that was because it doesn't know how to start itself, 1.swf does.

    If I ran 1.swf in the same directory as 2.swf I saw the textfield message though, which means the logic is somewhere in those two files...

  5. #5
    Senior Member tonypa's Avatar
    Join Date
    Jul 2001
    Location
    Estonia
    Posts
    8,223
    The "game" is fully in the file 2 (currently represnted by text box). The idea is that you cant decompile it meaning if it would contain url checks etc it would not be possible to steal it.

  6. #6
    Member
    Join Date
    Jun 2007
    Posts
    64
    I guess I'm missing the point then, because I have 2.swf (which has the logic) and a swf decompiler to look at it.

    Doesn't that give me everything I need to steal your code?

  7. #7
    Senior Member tonypa's Avatar
    Join Date
    Jul 2001
    Location
    Estonia
    Posts
    8,223
    I sure hope you wont find decompiler that can open it.

  8. #8
    Member
    Join Date
    Jun 2007
    Posts
    64
    I have no idea... I'm curious though, what makes 2.swf different than other swfs that can be decompiled?

    Edit: I haven't tried to decompile it yet... I don't have one but a friends company does who will do it for me later this evening

  9. #9
    Student
    Join Date
    Apr 2001
    Location
    -
    Posts
    4,756
    the difference is that people can exchange it with their advertisement crap and their logo/title or graphics.
    a good example of such is:
    http://www.thepencilfarm.com/blog/20...ng_olympi.html

    or some of the lately new threads about 'I have a new portal site...'

  10. #10
    Senior Member realMakc's Avatar
    Join Date
    Oct 2002
    Posts
    927
    now this is stupid. you removed 4 bytes. I added them back. now what? do I win a cookie?
    Attached Files Attached Files
    • File Type: zip 3.zip (789 Bytes, 118 views)
    who is this? a word of friendly advice: FFS stop using AS2

  11. #11
    Senior Member realMakc's Avatar
    Join Date
    Oct 2002
    Posts
    927
    oh yeah,
    Code:
    package loadedswf_fla
    {
        import flash.display.*;
    
        dynamic public class MainTimeline extends MovieClip
        {
            public var testing:Object;
    
            public function MainTimeline()
            {
                addFrameScript(0, frame1);
                return;
            }// end function
    
            function frame1()
            {
                testing = "1234567890";
                return;
            }// end function
    
        }
    }
    who is this? a word of friendly advice: FFS stop using AS2

  12. #12
    383,890,620 polygons nGFX's Avatar
    Join Date
    Oct 2002
    Location
    Germany / Ruhrgebiet
    Posts
    902
    You miss the point. It's not meant to be hacker safe. It's meant to prevent kids messing with your stuff.

    (For all others wondering why I replied to a dead thread, read about something similar here).

    nGFX

  13. #13
    Student
    Join Date
    Apr 2001
    Location
    -
    Posts
    4,756
    then put the link in the first place,- very odd way of posting a resoruce- nice link though

  14. #14
    383,890,620 polygons nGFX's Avatar
    Join Date
    Oct 2002
    Location
    Germany / Ruhrgebiet
    Posts
    902
    because it's something I didn't want to post explicitly here in the first place ...

    nGFX

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center