Giter VIP home page Giter VIP logo

defender-control's Introduction

Defender Control

Open source windows defender disabler.
Now you can disable windows defender permanently!
Tested from Windows 10 20H2.

What is this project?

We all know that disabling windefender is very difficult since microsoft is constantly enforcing changes.
The first solution is to install an anti-virus - but thats not the point if we are trying to disable it!
The next easiest solution is to use freeware thats already available on the internet - but none of them are native & open source...
I like open source, so I made a safe to use open source defender control.

On windows updates / Windows 11

Sometimes windows decides to update and turn itself back on.
A common issue is that defender control sometimes doesn't want to disable tamper protection again.
Please try turning off tamper protection manually then running disable-defender.exe again before posting an issue.

Tamper

What does it do?

  1. It gains TrustedInstaller permissions
  2. It will disable windefender services + smartscreen
  3. It will disable anti-tamper protection
  4. It will disable all relevant registries + wmi settings

Is it safe?

Yes it is safe, feel free to review the code in the repository yourself.
Anti-virus & other programs might flag this as malicious since it disables defender - but feel free to compile it using visual studio.

Compiling

Open the project using visual studio 2022 preview.
Set the build to Release and x64.
Change the build type you want in settings.hpp.
Compile.

Demo

Demo

Release

You can find the first release over at the releases on the right.
Or alternatively click here.

Windows 11

Works for earlier versions of Windows 11. Correct registries have not been added yet for the latest version. Update, Trusted Installer no longer has effect on the current live versions of Windows 11. Use with caution.

defender-control's People

Contributors

qtkite avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

defender-control's Issues

why i cant build program

what should i do to build the program ?
Capture

c++ librarys working

just want edit small stuff like Disable Windows Defender Printf

This App Can’t Run on your PC

I installed the current version of windows 11 (iso straight from the microsoft website) and did the normal procedures to disable some Windows Defender options to be able to open the program, but when i open the program i get this message "This App Can't Run on your PC" and I've tried everything I could find on google to fix this but to no sucess, what's the problem?

Remove prompts and run it silently?

Hi, I just started out in github im wondering if you can add a feature so we can run them in silent without the prompts?
maybe add start arguments as "-s" to run it silently?
or have it run in cmd as like "disable-defender.exe -silent"

Feature Request: command line option for batch mode (don't wait for key press)

Nice tool! Exactly what I was looking for. Thanks!

I like to disable defender in my backup batch script and enable it after backup is finished. Would be nice if the windows of defender-control is not waiting for a key press. With a command line option like -b for batch mode or a complete silent mode -s without a window?

Both (-disable/-enable) in one .exe via command line would be great too, so I only have to set exceptions for one file.

disable Security Center too

Security Center(wscsvc) should be modified to demand start or disabled, or windefend will restore previous status.

I am not able to open windows security after enabling using this in windows 11

I am not able to open security settings ,it just won't open after After disabling defender and then after enabling defender and restarting it wont open.
#please help with any fixes!
Screenshot (11)

Screenshot (10)

Screenshot (9)

Now i can't even disable defender as it shows it is a virus
and neither can i open windows security so as to disable virus scanning etc

link release statically

if you try to download & execute current github release you'd get an error because vcruntime is not on the system

How to enable defender-control again

after disabling my defender-control i cant reset my computer anymore or download anything from the microsoft store any idea on how i can enable windows defender again

says access denied when writing registry values.

Looks like TrustedInstaller cannot stop the windefend service anymore. It now says that it fails to stop the service and that it cannot write
to TamperProtection, DisableRealTimeMonitoring, etc.

Imggui files badly configured

I am trying to compile your code in visual studio 2022 but it says that imgui.h file and other .h files related to imgui files are not there.
As I explored the repository, I figured they are in the imgui folder. But even if they are here, it still says it cannot find them when compiling. Can you help with that?

I dont know if this is an issue, just checking in

3
I had turned off tamper protection prior to compiling. After compiling the code, I checked in windows security, and it showed the exact dialogue that was shown in your demo. "You have no active antivirus protector", but after rebooting my PC, it shows the message that is in my uploaded image. Should that be happening?

Also, right after compiling in visual studio, I got a dialogue in the command prompt "failed to write to disable real time protection, failed to write to disable antispyware, windows defender has been disabled, press any key to continue" right after those command lines, I pressed a key and then when I look in windows security, I see "you have no active antivirus provider." Once again, after rebooting I see the message shown in my uploaded image. Did i do something wrong? is there a way to revert these changes and run the source code again?

Windows slows down after install especially TiWorker win11 canary Version 10.0.25330.1000

Thank you for your work!

Just tried it on Version 10.0.25330.1000 64bit windows 11 on a 10 core cpu

Windows seems to really slow down and struggle running tasks in the background.

Especially installing anything with TiWorker seems to take forever and not finished (i was trying to install the latest sdk for dotnet version 6. After running "enable-defender", without rebooting everything seems fine.

Happy to troubleshoot/debug

failed to write to TamperProtection

User: Administrator
output:

failed to write to TamperProtection
Windows defender is currently ACTIVE
Failed to write to DisableAntiSpywareFailed to write to DisableRealTimeMonitoring
Disabled windows defender!
Press any key to continue . . .

OS info:
Screenshot 2022-03-25 165256

Single program to disable & enable defender.

Please, in the next version, release a single program that can either enable or disable defender. That is, if defender is active the program displays a message and asks if the user wants to disable it. And, if defender is disabled the program displays a message and asks the user if he wants to enable it.
Thanks for a nice program.

PS : A silent version would be nice too - basically toggle the state of defender.

Failed to write to DisableAntiSpywareFailed to write to DisableRealTimeMonitoring

It worked well on Windows 10, but it does not seem to work on Window 11. When I run it on Window 11, the output is:

failed to write to TamperProtection
Windows defender is currently ACTIVE
Failed to write to DisableAntiSpywareFailed to write to DisableRealTimeMonitoring
Disabled windows defender!
Press any key to continue . . .

It says that it has disabled Defender, but the MsMpEng/CP are still running. and real-time projection is still on.

image

and next time I run defender-control, it still says the same output as above that includes "Windows defender is currently ACTIVE". I have rebooted the computer, but it was the same.

Cannot compile defender control

Everytime I try to compile it with visual studio 2022 it says: error imgui.h and other header files not found. all these files seems to be in the imgui directory but it still wont compile. Are you sure the solution is not broken or something?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.