Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

IIS7 and iis7.5 let ISAPI extend the method of DLL execution

2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Configure to run the ISAPI file (.dll file) under IIS7.0/7.5

First, put dll into the corresponding directory of the website, then click on the website to switch to the function view, then double-click the handler mapping under IIS, and then right-click ISAPI-dll- "Edit function permissions, select execute. Please refer to the following for details

Perform the following two steps:

1. Open the ISAPI execution permission of IIS:

Double-click the Handler Mapping function, then click Edit function permissions, and select execute in the editing window that appears:

2. Navigate to the c:\ windows\ system32\ inetsrv\ directory (be sure to navigate to this directory, otherwise you can't run the command appcmd using an absolute path in any other directory, as is my machine)

Execute the following command:

Appcmd.exe set config / section:isapiCgiRestriction / + "[path='E:\ work\ AnyCom\ Exe\ AnyServer.dll',description='AnyServer ISAPI',allowed='True']"

Path and description should be modified according to the actual file and description information.

You can use the following command to see if the addition is successful:

Appcmd list config / section:isapiCgiRestriction

You can delete it using the following command:

Appcmd.exe set config / section:isapiCgiRestriction /-"[path='E:\ work\ AnyCom\ Exe\ AnyServer.dll',description='AnyServer ISAPI',allowed='True']"

There is only one difference between this command and the additional command: + becomes -, and it should be noted that path and description must be strictly equal, with spaces before and after.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 215

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report