Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IIS: How to disable Data Execution Prevention in Windows Server 2008?

I've been trying to disable DEP on my windows 2008 dev box and have not succeeded.

I've tried: System Properties->Performance Options->Data Execution Prevention->Turn on DEP for essential Windows programs and services only

(still happens)

System Properties->Performance Options->Data Execution Prevention->Turn on DEP for all programs and services except those I select

in this case, i tried to choose both inetinfo.exe and w3wp.exe in the c:\windows\system32\inetsrv\ folder, and when selected, I receive this error:

"You can not set DEP attributes on 64-bit executables".

I'm sure that there is some memory leak somewhere - but that is a separate problem. I'm happy to live with it for a while in my development environment (in fact that is where I need to let it go so I can see it)

Any help would be appreciated!

Thx, Doug

like image 614
Doug Avatar asked Jul 30 '09 20:07

Doug


People also ask

How do I turn off DEP Data Execution Prevention?

Click the Data Execution Prevention tab, and then click Turn on DEP for all programs and services except those I select. 5. To turn off DEP for an individual program, select the check box next to the program that you want to turn off DEP for, and then click OK.

Is there a need to turn on Data Execution Prevention setting explain why?

If you turn off Data Execution Prevention (DEP) for a specific program, it might become vulnerable to attack. A successful attack could then spread to other programs on your computer, to your contacts, and could damage your personal files.


2 Answers

The GUI does not show the 4 modes of DEP operation.

You need to do it at boot time:Boot Parameters to Configure DEP and PAE

However, more info on the error message:

System DEP configuration settings apply only for 32-bit applications and processes when running on 32-bit or 64-bit versions of Windows. On 64-bit versions of Windows, if hardware-enforced DEP is available it is always applied to 64-bit processes and kernel memory spaces and there are no system configuration settings to disable it.

like image 51
gbn Avatar answered Sep 29 '22 23:09

gbn


Here is how to disable DEP at the command prompt:

BCDEDIT /set {current} nx AlwaysOff
like image 26
Brian C. Avatar answered Sep 30 '22 00:09

Brian C.