RUNDLL32 & INF

Today,While I am installing the Ultraedit,a batch file leave me a great impression.it reads:

rundll32 setupapi.dll,InstallHinfSection DefaultInstall 128 ./Uedit32.inf

these days I use the batch process my work, it is very convenient, which made me want to learn more.

Rundll32 I was very familiar with it, it usually show up in my Task Manager. It is a great tool, but always made use of by crackers.

Rundll32’s command line is as below:

Rundlll32 <dllname>,<entrypoint> <optinal arguments>

Note:The comma betweens <dllname> and <entrypoint> is really important. It will fail without any error messages if it is missed.

The steps executed by rundll32 is :

1.       analysing the command line.

2.       Load the specified DLL through LoadLibrary()

3.       Get the address of <entrypoint> function through GetProcAdress()

4.       Call <entrypoint> function and pass the <optinal arguments> to it if it needs

5.       When <entrypoint> returns,rundll32 unload DLL and exit

Back up to the batch,it uses the format here:

RUNDLL32.EXE SETUPAPI.DLL,InstallHinfSection <section><mode><path>

SETUPAPI.DLL is the dll,InstallHinfSection is the entrypoint and the rest is the arguments. These arguments should used with .inf

 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值