Arcade Prehacks

Results 1 to 8 of 8
  1. #1

    Join Date
    Aug 2008
    Posts
    78

    How to hack flash games using Bytecode

    Well, this is my first post, and I'm new to this forum. I just turned 14 yesterday.(I needed to say that lol) So what's up? Anyway, I might post some more tuts. Hope this helped you.
    Oh yeah, if the bytecode of the game doesn't make sense to you, use the actionscript, I'll post a tut on how to use the actionscript later on. Actionscript is like a human's second language.

    1. Download flasm. http://www.nowrap.de/download/flasm16win.zip
    2.Make a new folder, call it whatever you want to call it.
    3. copy flasm, and paste it in the new folder you just made.
    4.Ok, let's download a flash game to hack. We must get the .Swf How about [u]http://www.flamjam.com/spank/spankthemonkey.swf[u] Highlight that, and press CTRL + S
    5. Download that to the new folder that you made.
    6. Now open notepad, and put
    Code:
    flasm -d spankthemonkey.swf > Foo.flm
    7. Open notepad again, and put
    Code:
    @echo off
    flasm -a foo.flm
    pause
    double click this once you are done editing the bytecode.
    If you edited the bytecode wrong, it will say say what you did wrong, but you can't edit it to make it right. You'll have to do it all over again.
    8. once you are done doing everything to the folder that needs to be done, it should look like this:

    9. Own the game.




    ---------------------------------------------------------------------------------------------------------
    push-this identifies something.
    setVariable-sets a variable to something
    getVariable-gats a variable's value
    setMember-gives something an element
    getMember-gets the element something to be applied to it.
    callMethod-calls a method
    callFunction-calls a function
    trace-used in flash, traces a value or message to teh output window, used diagnostically.
    branch-goes to a label
    branchiftrue-goes to a label, if a certain condition is true
    not-used to signify if something is not something else, branchiftrue
    label#:-a marker used to set the destination of a branch
    pop-used to signify the end of an action

    --------------------------------------------------------------------------------------------------------
    Making keypresses and toggles.

    To make a keypress, and toggle, you would first need to add your keylistener.

    Code:
    push 'keyListener'
    getVariable
    push 1, 'Key'
    getVariable
    push 'removeListener'
    callMethod
    pop
    push 'keyListener', 0.0, 'Object'
    new
    varEquals
    push 'keyListener'
    getVariable
    push 'onKeyDown'
    function ()
    //KEYPRESSES GO HERE
    end // of function
    A keypress... Let me give an example.

    Code:
    push 9, 1, 'Key'
    getVariable
    push 'isDown'
    callMethod
    not
    branchIfTrue label3
    push 0.0, 'WHATEVERYOUNEED'
    getVariable
    push 'VARIABLE'
    callMethod
    pop
    label3:
    Now, a toggle is two keypresses joined together, but the setMember part makes it permanent.

    Code:
    push 9, 1, 'Key'
    getVariable
    push 'isDown'
    callMethod
    not
    branchIfTrue label3
    push 0.0, 'WHATEVERYOUNEED'
    getVariable
    push 'VARIABLE'
    setMember
    pop
    label3:
    Now, that is a permanent keypress, all because of the "setMember"
    so, we would need to add another one to turn the variable off.

    Though, the actionscript keypresses are so much more short.

    Code:
    if (Key.isDown(9)) {
    player.VARIABLE();
    }

    Key codes:


    Code:
    .(esc)  27
    .(backspace) 8
    (capslock) 20
    (shift) 16
    (alt) 18
    (ctrl) 17
    (enter) 13
    (space) 32
    
    CODE
    
    (F1)  112
    (F2)  113
    (F3)  114
    (F4)  115
    (F5)  116
    (F6)  117
    (F7)  118
    (F8)  119
    (F9)  120
    (F10)  121
    (F11)  122
    (F12)  123
    
    
    (keyboard)
    CODE
    
    `  192
    1  49
    2  50
    3  51
    4  52
    5  53
    6  54
    7  55
    8  56
    9  57
    0  48
    -  189
    =  187
    \  220
    w  87
    e  69
    r  82
    t  84
    y  89
    u  85
    i    73
    o  79
    p  80
    [  219
    ]  221
    a  65
    s  83
    d  68
    f  70
    g  71
    h  72
    j  74
    k  75
    l  76
    ;  186
    '  222
    z  90
    x  88
    c  67
    v  86
    b  66
    n  78
    m  77
    ,  188
    .  190
    /  191
    
    
    (Number pads with number lock)
    CODE
    
    /   111
    *  106
    -  109
    7  103
    8  104
    9  105
    4  100
    5  101
    6  102
    1  97
    2  98
    3  99
    0  96
    .  110
    +  107
    
    
    CODE
    
    (Ins)   45
    (Home)  36
    (PageUp) 33
    delete) 46
    (End) 35
    (PageDown) 34
    this post has been edited in a total of 100 times.

    http://www.imagerotate.com/sig/2155717.png

  2. #2

    Join Date
    Jun 2008
    Location
    Don't have one,destroyed it
    Posts
    977

    Re: How to hack flash games using Bytecode

    Where can you download games?

  3. #3

    Join Date
    Aug 2008
    Posts
    78

    Re: How to hack flash games using Bytecode

    Quote Originally Posted by ten10dix
    Where can you download games?
    To download a game, you would need a .swf file. An example:

    http://www.flamjam.com/spank/spankthemonkey.swf

    Click the link. Highlight it, then press CTRL + S
    Save it to desktop.
    this post has been edited in a total of 100 times.

    http://www.imagerotate.com/sig/2155717.png

  4. #4

    Join Date
    Jun 2008
    Location
    New York
    Posts
    1,995

    Re: How to hack flash games using Bytecode

    Wow, this seems advanced, great tutorial, it was easy to follow, although hacking w/ Flasm seems just a bit easier for newcomers.

  5. #5

    Join Date
    May 2008
    Location
    Your Moms Pants
    Posts
    3,040

    Re: How to hack flash games using Bytecode

    byte code helps u get past encryptions cause thats what i use on my stick arena hack pack
    Someone got an 11 killstreak so I must come back.

  6. #6

    Join Date
    Aug 2008
    Location
    Above and beyond the valleys of contentment
    Posts
    1,217

    Re: How to hack flash games using Bytecode

    how did you know this stuff...exactly(not knowing action script but byte code)

  7. #7

    Join Date
    May 2008
    Location
    Your Moms Pants
    Posts
    3,040

    Re: How to hack flash games using Bytecode

    be smart duh
    Someone got an 11 killstreak so I must come back.

  8. #8
    Senior Member
    Join Date
    Oct 2008
    Location
    Having a rave in the UK!
    Posts
    1,706

    Re: How to hack flash games using Bytecode

    Pressing Ctrl+S doesn't work for me, might be something to do with Win XP? Any way I use FlashGet which downloads almost all files in the web with an adress.

Posting Permissions

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