We are aware of a potentially service impacting issue. Learn more

تنظیمات امنیتی برای ASP Print



1- دسترسی فایل wshom.ocx در آدرس windows\system32 تغییر نماید.
این فایل وظیفه اجرای دستورات shell را در اسکریپتها به عهده دارد.

دسترسی های پیش فرض:
Administrator Group > full control
PowerUser Group > read and exec
System user > full control
Users Group > read and exec

دسترسی ها پس از تغییرات:
Administrator Group > full control

PowerUser Group > read and exec

System user > full control


2- تنظیم دسترسی بر FileSystemObject و یا به اختصار FSO
FSO امکان دسترسی به پوشه ها ، فایلها ، درایو ها و از این دست را بعهده دارد.
برای تنظیم دسترسی ها در registry به یکی از ۲ آدرس زیر رفته :
HKEY_CLASSES_ROOT\Scripting.FileSystemObject
HKEY_LOCAL_MACHINE\Software\Classes\Scripting.FileSystemObject
هر دو آدرس به یک مکان اشاره دارد.بر روی آدرس کلیک راست کرده و گزینه Permission را انتخاب می کنیم.
دسترسی های پیش فرض:
Administrator Group > full control
PowerUsers Group> query value , set value , create subkey , enumerate subkey , notify , delete , read control
System > full control
CreateOwner > full control
Users > read
دسترسی گروه users گرفته شود.

بوسیله محتویات زیر که در یک فایل asp ذخیره شود میتوان صحت تنظیمات را بررسی نمود.

<%@Language=VBScript %>

<%

Set oScript = Server.CreateObject("WSCRIPT.network")

Set oFileSys = Server.CreateObject("Scripting.FileSystemObject")

Set objFSO = CreateObject("Scripting.FileSystemObject")

Set WShShell = Server.CreateObject("WScript.Shell")

WShShell.Run "cmd /c dir", 0, True

%>

Was this answer helpful?

  • 0
« Back