As we all know, the powerful and destructive nature of the FileSystemObject component is that it is often free to use.
I sorted out the reasons for the disabling of providers (those that support ASP) and found only two methods, but later
When I was stimulated by someone, I thought of the third unknown method. Haha, I don’t know if this is the case.
The first type: Use RegSrv32 /u C:\WINDOWS\SYSTEM\(win98 path) to log out of the group
. This method is too cruel and belongs to the method of dying together. No one can use it. It's a trick.
The second type: modify the value of Progid. The way to call components in ASP is usually Set object name = Server.
CreateObject("Progid"), at this time we can modify the Progid value in the registry to reach
to the method to disable the component. In Start-Run, click regedit and find HKEY_CLASSES_ROO
T\, at this time we can change the value of the Progid, such as
To Scripting.FileSystemObject8. This is called in the ASP page:
<%@ Language=Vbscript%>
<%
Set Fs=("Scripting.FileSystemObject8")
%>
(If you have not called this component before, you do not need to restart and you can see the effect, otherwise please re-
Look at the effect after starting. )
At this time, let's see the result of using the original call method:
<%@ Language=Vbscript%>
<%
Set Fs=("")
%>
The operation result at this time is:
Server object Error 'ASP 0177: 800401f3'
fail
/aspimage/, line 3
800401f3
(OK, meet our requirements)
Because I was two steps late, others rushed to answer this method, which greatly stimulated me.
The third method is produced.
The third type: Careful experts will think that since you can disable the component by modifying the Progid value, then Clsid is
Can I modify it? (OK, you think the same as me) We know that, except for the CreateObject method
In addition, you can also use the general <object> annotation to create a component. We can use HTM in ASP.
L's <object> tag to add a component to the web page. The method is:
<object runat=server id=fs1 scope=page prog></object>
Runat means that it is executed on the server side, Scope means the life cycle of the component, you can use Session and Appl.
ication or page (represents the current page, which can also be defaulted)
This way of writing is useless to us, and another way of writing is:
<object runat=server id=fs1 scope=page class></obj
ect>
We can also disable the component by modifying the value of the Clsid, such as HKEY_CLASSES_RO in the registry
OT\\CLSID value 0D43FE01-F093-11CF-8940-00A0C90
54228 changed to 0D43FE01-F093-11CF-8940-00A0C9054229 (changed the last one), at this time
The writing method is:
<object runat=server id=fs1 scope=page class></object>
Look at the running results, no problem, OK. We'll use it again
<object runat=server id=fs1 scope=page class></object>
An error occurred at this time.
Create a new user: iusr_domain
Set the anonymous user IUSR_DOMAIN of the corresponding site in IIS
CACLS: Set directory permissions
This way FSO is available, but it will not affect others
I sorted out the reasons for the disabling of providers (those that support ASP) and found only two methods, but later
When I was stimulated by someone, I thought of the third unknown method. Haha, I don’t know if this is the case.
The first type: Use RegSrv32 /u C:\WINDOWS\SYSTEM\(win98 path) to log out of the group
. This method is too cruel and belongs to the method of dying together. No one can use it. It's a trick.
The second type: modify the value of Progid. The way to call components in ASP is usually Set object name = Server.
CreateObject("Progid"), at this time we can modify the Progid value in the registry to reach
to the method to disable the component. In Start-Run, click regedit and find HKEY_CLASSES_ROO
T\, at this time we can change the value of the Progid, such as
To Scripting.FileSystemObject8. This is called in the ASP page:
<%@ Language=Vbscript%>
<%
Set Fs=("Scripting.FileSystemObject8")
%>
(If you have not called this component before, you do not need to restart and you can see the effect, otherwise please re-
Look at the effect after starting. )
At this time, let's see the result of using the original call method:
<%@ Language=Vbscript%>
<%
Set Fs=("")
%>
The operation result at this time is:
Server object Error 'ASP 0177: 800401f3'
fail
/aspimage/, line 3
800401f3
(OK, meet our requirements)
Because I was two steps late, others rushed to answer this method, which greatly stimulated me.
The third method is produced.
The third type: Careful experts will think that since you can disable the component by modifying the Progid value, then Clsid is
Can I modify it? (OK, you think the same as me) We know that, except for the CreateObject method
In addition, you can also use the general <object> annotation to create a component. We can use HTM in ASP.
L's <object> tag to add a component to the web page. The method is:
<object runat=server id=fs1 scope=page prog></object>
Runat means that it is executed on the server side, Scope means the life cycle of the component, you can use Session and Appl.
ication or page (represents the current page, which can also be defaulted)
This way of writing is useless to us, and another way of writing is:
<object runat=server id=fs1 scope=page class></obj
ect>
We can also disable the component by modifying the value of the Clsid, such as HKEY_CLASSES_RO in the registry
OT\\CLSID value 0D43FE01-F093-11CF-8940-00A0C90
54228 changed to 0D43FE01-F093-11CF-8940-00A0C9054229 (changed the last one), at this time
The writing method is:
<object runat=server id=fs1 scope=page class></object>
Look at the running results, no problem, OK. We'll use it again
<object runat=server id=fs1 scope=page class></object>
An error occurred at this time.
Create a new user: iusr_domain
Set the anonymous user IUSR_DOMAIN of the corresponding site in IIS
CACLS: Set directory permissions
This way FSO is available, but it will not affect others