1 |
joko |
1.1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
2 |
|
|
<html xmlns="http://www.w3.org/1999/xhtml"> |
3 |
|
|
<head> |
4 |
|
|
<title>fluscate - The Flash Obfuscator</title> |
5 |
|
|
<link rel="stylesheet" href="http://netfrag.org/horde/css.php?app=chora" type="text/css" /> |
6 |
|
|
<link rev="made" href="mailto:" /> |
7 |
|
|
</head> |
8 |
|
|
|
9 |
|
|
<body> |
10 |
|
|
<table border="0" width="100%" cellspacing="0" cellpadding="3"> |
11 |
|
|
<tr><td class="block" valign="middle"> |
12 |
|
|
<big><strong><span class="block"> fluscate - The Flash Obfuscator</span></strong></big> |
13 |
|
|
</td></tr> |
14 |
|
|
</table> |
15 |
|
|
|
16 |
|
|
<p><a name="__index__"></a></p> |
17 |
|
|
<!-- INDEX BEGIN --> |
18 |
|
|
|
19 |
|
|
<ul> |
20 |
|
|
|
21 |
|
|
<li><a href="#features">Features</a></li> |
22 |
|
|
<ul> |
23 |
|
|
|
24 |
|
|
<li><a href="#requests">Requests</a></li> |
25 |
|
|
<li><a href="#functions">Functions</a></li> |
26 |
|
|
</ul> |
27 |
|
|
|
28 |
|
|
<li><a href="#notes">Notes</a></li> |
29 |
|
|
<li><a href="#todo___review">Todo / Review</a></li> |
30 |
|
|
<li><a href="#usage">Usage</a></li> |
31 |
|
|
<ul> |
32 |
|
|
|
33 |
|
|
<li><a href="#usage__win32__">Usage (win32):</a></li> |
34 |
|
|
<li><a href="#usage___nix__">Usage (*nix):</a></li> |
35 |
|
|
</ul> |
36 |
|
|
|
37 |
|
|
</ul> |
38 |
|
|
<!-- INDEX END --> |
39 |
|
|
|
40 |
|
|
<hr /> |
41 |
|
|
<p>This program is free software; you can redistribute it and/or |
42 |
|
|
modify it under the terms of the GNU General Public License |
43 |
|
|
as published by the Free Software Foundation; either version 2 |
44 |
|
|
of the License, or (at your option) any later version.</p> |
45 |
|
|
<p>This program is distributed in the hope that it will be useful, |
46 |
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of |
47 |
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
48 |
|
|
GNU General Public License for more details.</p> |
49 |
|
|
<p>You should have received a copy of the GNU General Public License |
50 |
|
|
along with this program; if not, write to the Free Software |
51 |
|
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
52 |
|
|
=cut</p> |
53 |
|
|
<p> |
54 |
|
|
<a href="#__index__"><small>back to top</small></a> |
55 |
|
|
</p> |
56 |
|
|
<hr /> |
57 |
|
|
<h1><a name="features">Features</a></h1> |
58 |
|
|
<p> |
59 |
|
|
</p> |
60 |
|
|
<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 |
61 |
|
|
- komplexere verschlüsselung als ``-1, -2 ...'' z-b nicht in der numerischen reihenfolge sondern nach |
62 |
|
|
zufallsprinip (-21,-3,-89)? (->random) |
63 |
|
|
- evtl. constants nach abfrage ersetzen ? leider sehr aufwendig, bei vielen constants (->ask) |
64 |
|
|
- rausgeben des arrays mit den ``neuen'' werten um evtl die obfuscation rückgängig zu machen (->undo) |
65 |
|
|
- `` push 0 |
66 |
|
|
ls: |
67 |
|
|
dup |
68 |
|
|
trace |
69 |
|
|
branchIfTrue ls'' |
70 |
|
|
... after each ``constants'' declaration (->pollute)</a></h2> |
71 |
|
|
<p> |
72 |
|
|
</p> |
73 |
|
|
<h2><a name="functions_fluscate_handles_two_different_styles_of_function_declarations_">Functions |
74 |
|
|
fluscate handles two different styles of function declarations:</a></h2> |
75 |
|
|
<pre> |
76 |
|
|
1. "Normal" ones |
77 |
|
|
function mp3Player ('arg1', 'arg2')</pre> |
78 |
|
|
<pre> |
79 |
|
|
2. There may be "stacked" function declarations |
80 |
|
|
push 'mp3Player' |
81 |
|
|
function ()</pre> |
82 |
|
|
<p> |
83 |
|
|
<a href="#__index__"><small>back to top</small></a> |
84 |
|
|
</p> |
85 |
|
|
<hr /> |
86 |
|
|
<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 |
87 |
|
|
- no function may be called ``Initialize'', rename it to (e.g.) ``Initialize2'', reassembling will not work otherwise |
88 |
|
|
(doesn't matter when obfuscating since function names will be replaced of course) |
89 |
|
|
- function names seem to be/work case insensitive (shuffle <-> Shuffle) |
90 |
|
|
- 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> |
91 |
|
|
- make sure -1, -2, -3, .... gets replaced with '-1', '-2', '-3', ... |
92 |
|
|
- there are multiple caller lines: callFunction, callMethod; do we have to take special care to methods? |
93 |
|
|
- ``getMember'' and ``getVariable'' also do function calls! |
94 |
|
|
- there are reserved function names which must not be replaced! (-> event handlers, e.g. ``onPress'')</a></h1> |
95 |
|
|
<p> |
96 |
|
|
<a href="#__index__"><small>back to top</small></a> |
97 |
|
|
</p> |
98 |
|
|
<hr /> |
99 |
|
|
<h1><a name="todo___review__what_about_other_symbols_beside_functions">Todo / Review |
100 |
|
|
- what about other symbols beside ``function''s?</a></h1> |
101 |
|
|
<p> |
102 |
|
|
<a href="#__index__"><small>back to top</small></a> |
103 |
|
|
</p> |
104 |
|
|
<hr /> |
105 |
|
|
<h1><a name="usage">Usage</a></h1> |
106 |
|
|
<p> |
107 |
|
|
</p> |
108 |
|
|
<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): |
109 |
|
|
#> flasm.exe -d puzzle.swf > puzzle.flm |
110 |
|
|
#> cat puzzle.flm | perl fluscate.pl > puzzle_fusc.flm |
111 |
|
|
#> flasm.exe -a puzzle_fusc.flm</a></h2> |
112 |
|
|
<p> |
113 |
|
|
</p> |
114 |
|
|
<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): |
115 |
|
|
#> flasm -d puzzle.swf > puzzle.flm |
116 |
|
|
#> cat puzzle.flm | fluscate.pl > puzzle_fusc.flm |
117 |
|
|
#> flasm -a puzzle_fusc.flm</a></h2> |
118 |
|
|
<p><a href="#__index__"><small>back to top</small></a></p> |
119 |
|
|
<table border="0" width="100%" cellspacing="0" cellpadding="3"> |
120 |
|
|
<tr><td class="block" valign="middle"> |
121 |
|
|
<big><strong><span class="block"> fluscate - The Flash Obfuscator</span></strong></big> |
122 |
|
|
</td></tr> |
123 |
|
|
</table> |
124 |
|
|
|
125 |
|
|
</body> |
126 |
|
|
|
127 |
|
|
</html> |