タグ

binaryに関するkoba04のブックマーク (2)

  • Binary in Javascript

    Here is our packaged up tile data type in all of its 17 bits of glory. 00000100001100001 or just 2145. Now we come across another problem, how do we get those values into a number? parseInt with base 2? Binary literals? Unbeknownst to some, Javascript comes equipped with a relatively good set of bitwise operators. We can use these to perform all kinds of binary operations on our data. From here on

  • SWFバイナリ解析

    バイナリって何となく苦手意識のある方も多いかと思いますが、swfのバイナリ解析は数パターンの計算方法だけ抑えてしまえば意外と素直に読み解けてしまいます。 文系大学出身&英語が読めない私でも大丈夫だったので、興味のある方は是非! 用意するもの まずはバイナリファイルを閲覧・編集できる環境を用意します。 バイナリエディタは様々なものがありますが、自分の環境や好みに合わせて選んでみてください。代表的なものを下記します。 Stirling(Windowsの場合) HexEditor(Macの場合) vi 1. バイナリモードでswfファイルを開く vi -b hoge.swf 2. テキスト形式から16進数ダンプ形式に変換 :%!xxd 3. 16進数ダンプ形式からテキスト形式に変換 :%!xxd -r

  • 1