ちょっと話題の記事

Adobe SWF Investigator

この記事は公開されてから1年以上経過しています。情報が古い可能性がありますので、ご注意ください。

Adobe SWF Investigatorって?

Adobe SWF InvestigatorというSWFを解析するアプリケーションが公開されました。
http://labs.adobe.com/technologies/swfinvestigator/
このツールはFlashデベロッパーには品質の向上に役立つと思いました。
また、セキュリティに関してもチェックできるツールはこれしかないですね。

ADCに記事が公開されています。
http://www.adobe.com/products/catalog/software._sl_id-contentfilter_sl_catalog_sl_software_sl_mostpopular.html

基本機能

Flashコンテンツについて隅々まで確認できます。
心当たりがある人は確認してみましょう
デバック版で公開していませんか?

  • SWF Info:SWFファイルの情報
  • Tag Viewer:SWFのタグの一覧とその中身
  • SWF Disassembler:SWFを解析
  • Hex Editor:SWFのバイナリエディタ
  • SWF Viewer:SWFの表示チェック
  • Inspector:SWFを外から操作
  • AS3 Navigator:SWFに含まれているAS3クラスの一覧と中身
  • Strings:SWFに含まれている文字列の一覧

ユーティリティ

Flashコンテンツ開発で必要になるユーティリティが勢揃い

  • View - LSO Editor:Local Shared Object エディタ
  • AMF - LC Communicator:LCとのAMF通信チェック
  • ANF - AMF Transmitter:RemoteObjectを使ったサービスメソッド呼び出しチェック
  • AMF - AMF Indentifier:RemoteObjectを使ったサービスチェック
  • AMF - AMF Fzsser:RemoteObjectを使った脆弱性チェック
  • AMF - Object Editor:オブジェクト生成エディター
  • Utilities - Decoder Util:文字列のエンコードやデコード
  • Utilities - Binary Editor:バイナリエディタ
  • Utilities - AS3 Compiler:AS3のコード書いてコンパイルして実行できる!
  • Utilities - XSS Fuzzer:XSS脆弱性チェック
  • Utilities - Remap Browser:ドメインのチェック用
  • Utilities - Mini Web Server:簡易サーバー

オープンソース

sourceforgeでソースが管理されています。
http://sourceforge.net/adobe/swfinvestigator
ソースは↓↓↓
http://sourceforge.net/adobe/swfinvestigator/code/11/tree/trunk/
trunkにはSWFInvestigatorだけでなくユーティリティのプロジェクトもあります。

スクリーンショット

SWFを読み込んだところ

Tag Viewerタブを表示

AMF Transmitter
サービスメソッド呼び出しに重宝しそう

AS3 Compiler
Sourceに書いたソースをコンパイルして実行できる
何気に一番すごい!!!

TamarinのESC::compileStringToBytesを使って文字列からコンパイルしてABCを生成
http://svn.code.sf.net/adobe/swfinvestigator/code/trunk/SWFInvestigator/src/utils/AS3Compiler/CompiledESC.as

ABCLoaderは、SWFのstartとendのバイナリをABCにくっ付けてLoader#loadBytesで読み込む
http://svn.code.sf.net/adobe/swfinvestigator/code/trunk/SWFInvestigator/src/utils/AS3Compiler/ABCLoader.as

あわせてよみたい

SWF Technology Center
http://www.adobe.com/devnet/swf.html
SWF10 Spec
http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/swf/pdf/swf_file_format_spec_v10.pdf
AVM2 Overview
http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/actionscript/articles/avm2overview.pdf
ABC
http://code.google.com/p/redtamarin/wiki/ABC