百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
D

defendnot

> 编程语言
开源

一个更有趣的方法来禁用 Windows Defender(通过 WSC API)。

3.6K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

一个更有趣的方法来禁用 Windows Defender(通过 WSC API)。

defendnot

An even funnier way to disable windows defender.

[!CAUTION] Permitted Use Notice:

Using this tool to facilitate malware distribution, or any illegal activity is strictly prohibited.

Users assume all legal responsibility for how they use this tool and any consequences thereof. You must comply with all applicable laws when using this tool.

By downloading, installing, or using this tool, you acknowledge that you agree to these terms.

Installation

[!WARNING] You may need to temporarily disable realtime and tamper protection before proceeding, otherwise defender will block defendnot binaries from running.

On newer Windows 11 builds you may also have to turn off Smart App Control.

  • Real-time protection: windowsdefender://threatsettings/
  • Smart App Control: windowsdefender://appbrowser/

One-liner

Open the powershell as administrator and execute any of these:

# Example 1: Basic installation
irm https://dnot.sh/ | iex

# Example 2: With custom AV name and firewall
& ([ScriptBlock]::Create((irm https://dnot.sh/))) --name "Custom AV name" --firewall

# Example 3: Without allocating console
& ([ScriptBlock]::Create((irm https://dnot.sh/))) --silent

# Example 4: Run once, without allocating console
& ([ScriptBlock]::Create((irm https://dnot.sh/))) --silent --disable-autorun

# Example 5: Uninstall
& ([ScriptBlock]::Create((irm https://dnot.sh/))) --disable

Manual

Download the latest release, extract it somewhere and launch defendnot-loader.

Usage

…

Stripping Defender out further (optional)

defendnot only registers a fake AV through WSC, but if you want to strip more Defender stuff out, run the optional extra-strip.bat as admin after defendnot is active. It disables a bunch more Defender policies in registry: real-time monitoring, behavior monitoring, cloud reporting, signature updates, etc.

It's a separate script because the keys are finicky and undoing them on --disable would mean saving every value first somewhere and writing all of them back, which is waaay more bookkeeping than I feel like implementing.

Limitations

  • Needs to stay on disk:
    To keep the AV registration after reboot, defendnot adds itself to autorun.

Writeup

How I ruined my vacation by reverse engineering WSC

Special thanks

  • mrbruh for poking me to research this topic
  • pindos for providing their machine for WSC service debugging

License

Apache-2.0

GitHub Issues· 3 开放

在 GitHub 查看全部
  • #61

    seems defender will restore itself by windows update

    更新于 2026年8月24日
  • #34

    Prepend version to release archive names

    enhancement更新于 2025年10月10日

核心特点

  • •Needs to stay on disk:
  • •mrbruh for poking me to research this topic
  • •pindos for providing their machine for WSC service debugging

> 标签

C++

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言