Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C# 

Regedit and cmd

how to disable regedit and cmd using c# ?
Find the associated registry keys, look at the Microsoft GPO files, they will have what keys, I'm not providing, think of it as an exercise for the reader.
[Image: 3.gif]
There's multiple ways, best one is to edit the policy using the GPO api - https : //docs . microsoft . com/en-us/windows/win32/api/_policy/

You could also use WMI ProcessTrace component to check which processes are launching and then terminate them.

Here's a .NET wrapper for GPO manipulations - https : //github . com/FSecureLABS/SharpGPOAbuse


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by eras269Feb 8, 2022 01:12 PM 0 104 Feb 8, 2022 01:12 PM
Last Post: eras269
[.NET] by 00xByteDec 2, 2021 05:15 AM 1 140 Dec 2, 2021 05:15 AM
Last Post: gghitman
[C#] by zxPhantomBladeFeb 20, 2021 02:06 PM 3 240 Feb 20, 2021 02:06 PM
Last Post: __Digital__