6
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Delphi: Resource Hacker を使う(そしてバイナリファイル比較など)

Last updated at Posted at 2021-06-23

いうまでもなく、のところとして自作のExeに対して使うことが妥当。(以下 Wikipedia 引用)

コンパイルしたファイルに余計なリソースが含まれている場合、そのリソースを削除することで、実行ファイル等の余分なファイルサイズを削ることができる。また、アイコンを自由に置き換えることができるため、コンパイル元のソフトウェアでアイコンが指定できない場合、Resource Hackerを利用して置き換える。また、通常では変更できないプログラムの内容の変更をするために利用する。

Resource Hacker で Project1.exe を覗いたところ

image.png

Project1.exe サンプル

image.png

unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

type
  TForm1 = class(TForm)
    Button1: TButton;
    procedure Button1Click(Sender: TObject);
  private
    { Private 宣言 }
  public
    { Public 宣言 }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
  Showmessage('Hello World!');
end;

end.

他、バイナリを比較、解析するツール

BinDiffはIDA(アイダ)のプラグイン

で、IDAはリバースエンジニアリングのデファクトスタンダードらしい。

しかし商用利用NGとのことなので代替品を探す。

以上メモのみ。

6
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?