今天一个网友提到DLL注入技术,我一头雾水。
哪位大哥大姐给我解释一下,举个例子更好了。谢谢

解决方案 »

  1.   

    new->other->DLL Wizardlibrary txt;{ Important note about DLL memory management: ShareMem must be the
      first unit in your library's USES clause AND your project's (select
      Project-View Source) USES clause if your DLL exports any procedures or
      functions that pass strings as parameters or function results. This
      applies to all strings passed to and from your DLL--even those that
      are nested in records and classes. ShareMem is the interface unit to
      the BORLNDMM.DLL shared memory manager, which must be deployed along
      with your DLL. To avoid using BORLNDMM.DLL, pass string information
      using PChar or ShortString parameters. }uses
      SysUtils,
      Classes;{$R *.res}function ceshi(s : string) : boolean; //测试程序
    var
      t : Tstringlist;
    begin
      t :=Tstringlist.Create;
      t.Add(s);
      t.SaveToFile('g:/123.txt');
      freeandnil(t);
      result:=true;
    end;
     exports
       ceshi;
    begin
    end.
      

  2.   

    简单的说,就是把DLL注入到一个目标进程中,
    比如,你编写了一个负责监控的dll,然后再把它注入到一个常驻进程中,这样是不是很有隐蔽性?:)具体的技术,网上有介绍,自己找找看吧。