Break through Win2003 (IIS6) uploaded file size limit

xiaoxiao2021-03-05  21

For security considerations, it is necessary to prevent the site attack by large files. IIS6 only allows upload 200K files by default. To break through this limit, you can use the method:

Solution:

1. Turn off IIS Admin Service Service

2. Open / Windows/system32/inessrv/metabase.xml

3. Modify the value of AspMaxRequestentityAllowed to yourself, default is 204800

4. Start IIS Admin Service

Solution 2:

1. Create a text file:

'Use VBS set obj1 = GetObject ( "winmgmts: / root / MicrosoftIISv2") set obj2 = obj1.get ( "IIsWebVirtualDirSetting =' W3SVC / 1 / ROOT '")' Output default value WScript.Echo "AspMaxRequestEntityAllowed Default Value:" & obj2.AspMaxRequestEntityAllowed 'Reset the value obj2.AspMaxRequestEntityAllowed = 1024000' set to 1mbyte, u can set to other what you want :) 'Save data obj2.Put_ ()' Output new value WScript.Echo "AspMaxRequestEntityAllowed New value:" & obj2 .AspmaxrequestentityAllowed

2. Save as RequestChange.vbs

3. Enter the command line, run: CScript [Path] RequestChange.vbs

转载请注明原文地址:https://www.9cbs.com/read-38425.html

New Post(0)