| 21 |
<li><a href="#features">Features</a></li> |
<li><a href="#features">Features</a></li> |
| 22 |
<ul> |
<ul> |
| 23 |
|
|
|
<li><a href="#requests">Requests</a></li> |
|
| 24 |
<li><a href="#functions">Functions</a></li> |
<li><a href="#functions">Functions</a></li> |
| 25 |
</ul> |
</ul> |
| 26 |
|
|
|
<li><a href="#notes">Notes</a></li> |
|
|
<li><a href="#todo___review">Todo / Review</a></li> |
|
| 27 |
<li><a href="#usage">Usage</a></li> |
<li><a href="#usage">Usage</a></li> |
| 28 |
<ul> |
<ul> |
| 29 |
|
|
| 30 |
<li><a href="#usage__win32__">Usage (win32):</a></li> |
<li><a href="#win32">win32</a></li> |
| 31 |
<li><a href="#usage___nix__">Usage (*nix):</a></li> |
<li><a href="#_nix">*nix</a></li> |
| 32 |
|
</ul> |
| 33 |
|
|
| 34 |
|
<li><a href="#development">Development</a></li> |
| 35 |
|
<ul> |
| 36 |
|
|
| 37 |
|
<li><a href="#todo">Todo</a></li> |
| 38 |
|
<li><a href="#wishlist">Wishlist</a></li> |
| 39 |
|
<li><a href="#notes">Notes</a></li> |
| 40 |
</ul> |
</ul> |
| 41 |
|
|
| 42 |
</ul> |
</ul> |
| 43 |
<!-- INDEX END --> |
<!-- INDEX END --> |
| 44 |
|
|
| 45 |
<hr /> |
<hr /> |
| 46 |
<p>This program is free software; you can redistribute it and/or |
<pre> |
| 47 |
modify it under the terms of the GNU General Public License |
This software is Copyright (C) 2004 Andreas Motl |
| 48 |
as published by the Free Software Foundation; either version 2 |
Ideas and future AppleScript integration by Holger Marseille. |
| 49 |
of the License, or (at your option) any later version.</p> |
|
| 50 |
<p>This program is distributed in the hope that it will be useful, |
This program is free software; you can redistribute it and/or |
| 51 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
modify it under the terms of the GNU General Public License |
| 52 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
as published by the Free Software Foundation; either version 2 |
| 53 |
GNU General Public License for more details.</p> |
of the License, or (at your option) any later version. |
| 54 |
<p>You should have received a copy of the GNU General Public License |
|
| 55 |
along with this program; if not, write to the Free Software |
This program is distributed in the hope that it will be useful, |
| 56 |
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 57 |
=cut</p> |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 58 |
|
GNU General Public License for more details. |
| 59 |
|
|
| 60 |
|
You should have received a copy of the GNU General Public License |
| 61 |
|
along with this program; if not, write to the Free Software |
| 62 |
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.</pre> |
| 63 |
<p> |
<p> |
| 64 |
<a href="#__index__"><small>back to top</small></a> |
<a href="#__index__"><small>back to top</small></a> |
| 65 |
</p> |
</p> |
| 67 |
<h1><a name="features">Features</a></h1> |
<h1><a name="features">Features</a></h1> |
| 68 |
<p> |
<p> |
| 69 |
</p> |
</p> |
| 70 |
<h2><a name="requests__komplexere_verschlüsselung_als_1__2_____zb_nicht_in_der_numerischen_reihenfolge_sondern_nach_zufallsprinip__21_3_89____random___evtl__constants_nach_abfrage_ersetzen__leider_sehr_aufwendig__bei_vielen_constants___ask___rausgeben_des_arrays_mit_den_neuen_werten_um_evtl_die_obfuscation_rückgängig_zu_machen___undo____push_0_ls__dup_trace_branchiftrue_ls_____after_each_constants_declaration___pollute_">Requests |
<h2><a name="functions">Functions</a></h2> |
| 71 |
- komplexere verschlüsselung als ``-1, -2 ...'' z-b nicht in der numerischen reihenfolge sondern nach |
<pre> |
| 72 |
zufallsprinip (-21,-3,-89)? (->random) |
fluscate handles two different styles of function declarations:</pre> |
|
- evtl. constants nach abfrage ersetzen ? leider sehr aufwendig, bei vielen constants (->ask) |
|
|
- rausgeben des arrays mit den ``neuen'' werten um evtl die obfuscation rückgängig zu machen (->undo) |
|
|
- `` push 0 |
|
|
ls: |
|
|
dup |
|
|
trace |
|
|
branchIfTrue ls'' |
|
|
... after each ``constants'' declaration (->pollute)</a></h2> |
|
|
<p> |
|
|
</p> |
|
|
<h2><a name="functions_fluscate_handles_two_different_styles_of_function_declarations_">Functions |
|
|
fluscate handles two different styles of function declarations:</a></h2> |
|
| 73 |
<pre> |
<pre> |
| 74 |
1. "Normal" ones |
1. "Normal" ones |
| 75 |
function mp3Player ('arg1', 'arg2')</pre> |
function mp3Player ('arg1', 'arg2')</pre> |
| 81 |
<a href="#__index__"><small>back to top</small></a> |
<a href="#__index__"><small>back to top</small></a> |
| 82 |
</p> |
</p> |
| 83 |
<hr /> |
<hr /> |
| 84 |
<h1><a name="notes__no_function_may_be_called_initialize__rename_it_to__e_g___initialize2__reassembling_will_not_work_otherwise__doesn_t_matter_when_obfuscating_since_function_names_will_be_replaced_of_course___function_names_seem_to_be_work_case_insensitive__shuffle____shuffle___successfully_tested_with_http___download_macromedia_com_pub_flash_showme_win_puzzle_zip__make_sure_1__2__3_______gets_replaced_with__1____2____3________there_are_multiple_caller_lines__callfunction__callmethod__do_we_have_to_take_special_care_to_methods__getmember_and_getvariable_also_do_function_calls___there_are_reserved_function_names_which_must_not_be_replaced_____event_handlers__e_g__onpress_">Notes |
<h1><a name="usage">Usage</a></h1> |
|
- no function may be called ``Initialize'', rename it to (e.g.) ``Initialize2'', reassembling will not work otherwise |
|
|
(doesn't matter when obfuscating since function names will be replaced of course) |
|
|
- function names seem to be/work case insensitive (shuffle <-> Shuffle) |
|
|
- successfully tested with <a href="http://download.macromedia.com/pub/flash/showme/win/puzzle.zip">http://download.macromedia.com/pub/flash/showme/win/puzzle.zip</a> |
|
|
- make sure -1, -2, -3, .... gets replaced with '-1', '-2', '-3', ... |
|
|
- there are multiple caller lines: callFunction, callMethod; do we have to take special care to methods? |
|
|
- ``getMember'' and ``getVariable'' also do function calls! |
|
|
- there are reserved function names which must not be replaced! (-> event handlers, e.g. ``onPress'')</a></h1> |
|
| 85 |
<p> |
<p> |
|
<a href="#__index__"><small>back to top</small></a> |
|
| 86 |
</p> |
</p> |
| 87 |
<hr /> |
<h2><a name="win32">win32</a></h2> |
| 88 |
<h1><a name="todo___review__what_about_other_symbols_beside_functions">Todo / Review |
<pre> |
| 89 |
- what about other symbols beside ``function''s?</a></h1> |
#> flasm.exe -d puzzle.swf > puzzle.flm |
| 90 |
|
#> cat puzzle.flm | perl fluscate.pl > puzzle_fusc.flm |
| 91 |
|
#> flasm.exe -a puzzle_fusc.flm</pre> |
| 92 |
|
<p> |
| 93 |
|
</p> |
| 94 |
|
<h2><a name="_nix">*nix</a></h2> |
| 95 |
|
<pre> |
| 96 |
|
#> flasm -d puzzle.swf > puzzle.flm |
| 97 |
|
#> cat puzzle.flm | fluscate.pl > puzzle_fusc.flm |
| 98 |
|
#> flasm -a puzzle_fusc.flm</pre> |
| 99 |
<p> |
<p> |
| 100 |
<a href="#__index__"><small>back to top</small></a> |
<a href="#__index__"><small>back to top</small></a> |
| 101 |
</p> |
</p> |
| 102 |
<hr /> |
<hr /> |
| 103 |
<h1><a name="usage">Usage</a></h1> |
<h1><a name="development">Development</a></h1> |
| 104 |
<p> |
<p> |
| 105 |
</p> |
</p> |
| 106 |
<h2><a name="usage__win32______flasm_exe_d_puzzle_swf___puzzle_flm____cat_puzzle_flm___perl_fluscate_pl___puzzle_fusc_flm____flasm_exe_a_puzzle_fusc_flm">Usage (win32): |
<h2><a name="todo">Todo</a></h2> |
| 107 |
#> flasm.exe -d puzzle.swf > puzzle.flm |
<pre> |
| 108 |
#> cat puzzle.flm | perl fluscate.pl > puzzle_fusc.flm |
- provide list of flash event handler names to exclude from symbol replacement</pre> |
|
#> flasm.exe -a puzzle_fusc.flm</a></h2> |
|
| 109 |
<p> |
<p> |
| 110 |
</p> |
</p> |
| 111 |
<h2><a name="usage___nix______flasm_d_puzzle_swf___puzzle_flm____cat_puzzle_flm___fluscate_pl___puzzle_fusc_flm____flasm_a_puzzle_fusc_flm">Usage (*nix): |
<h2><a name="wishlist">Wishlist</a></h2> |
| 112 |
#> flasm -d puzzle.swf > puzzle.flm |
<pre> |
| 113 |
#> cat puzzle.flm | fluscate.pl > puzzle_fusc.flm |
- komplexere verschlüsselung als "-1, -2 ..." z-b nicht in der numerischen reihenfolge sondern nach |
| 114 |
#> flasm -a puzzle_fusc.flm</a></h2> |
zufallsprinip (-21,-3,-89)? (->random) |
| 115 |
|
- evtl. constants nach abfrage ersetzen ? leider sehr aufwendig, bei vielen constants (->ask) |
| 116 |
|
- rausgeben des arrays mit den "neuen" werten um evtl die obfuscation rückgängig zu machen (->undo) |
| 117 |
|
- " push 0 |
| 118 |
|
ls: |
| 119 |
|
dup |
| 120 |
|
trace |
| 121 |
|
branchIfTrue ls" |
| 122 |
|
... after each "constants" declaration (->pollute) |
| 123 |
|
- what about other symbols beside "function"s? (e.g. variables) (->mode)</pre> |
| 124 |
|
<p> |
| 125 |
|
</p> |
| 126 |
|
<h2><a name="notes">Notes</a></h2> |
| 127 |
|
<pre> |
| 128 |
|
- no function may be called "Initialize", rename it to (e.g.) "Initialize2", reassembling will not work otherwise |
| 129 |
|
(doesn't matter when obfuscating since function names will be replaced of course) |
| 130 |
|
- function names seem to be/work case insensitive (shuffle <-> Shuffle) |
| 131 |
|
- successfully tested with <a href="http://download.macromedia.com/pub/flash/showme/win/puzzle.zip">http://download.macromedia.com/pub/flash/showme/win/puzzle.zip</a> |
| 132 |
|
- make sure -1, -2, -3, .... gets replaced with '-1', '-2', '-3', ... |
| 133 |
|
- there are multiple caller lines: callFunction, callMethod; do we have to take special care to methods? |
| 134 |
|
- "getMember" and "getVariable" also do function calls! |
| 135 |
|
- there are reserved function names which must not be replaced! (-> event handlers, e.g. "onPress")</pre> |
| 136 |
<p><a href="#__index__"><small>back to top</small></a></p> |
<p><a href="#__index__"><small>back to top</small></a></p> |
| 137 |
<table border="0" width="100%" cellspacing="0" cellpadding="3"> |
<table border="0" width="100%" cellspacing="0" cellpadding="3"> |
| 138 |
<tr><td class="block" valign="middle"> |
<tr><td class="block" valign="middle"> |