红蓝攻防
点击放大


<!--
*** Thanks for checking out the Best-README-Template. If you have a suggestion
*** that would make this better, please fork the repo and create a pull request
*** or simply open an issue with the tag "enhancement".
*** Thanks again! Now go create something AMAZING! :D
***
***
***
*** To avoid retyping too much info. Do a search and replace for the following:
*** Template provided by
Copyright (c) 2018 Othneil Drew
-->
<!-- PROJECT SHIELDS -->
<!--
*** I'm using markdown "reference style" links for readability.
*** Reference links are enclosed in brackets [ ] instead of parentheses ( ).
*** See the bottom of this document for the declaration of the reference
*** for contributors-url, forks-url, etc. This is an optional, concise syntax you may use.
***
-->
[![Contributors][contributors-shield]][contributors-url]
[![Forks][forks-shield]][forks-url]
[![Stargazers][stars-shield]][stars-url]
[![Issues][issues-shield]][issues-url]
[![MIT License][license-shield]][license-url]
<h3 align="center">deserter</h3>
<p align="center">
A <i>targeted</i> DNS cache poisoner.
<br />
<br />
<a href=" Bug</a>
·
<a href=" Feature</a>
</p>
</p>
<!-- TABLE OF CONTENTS -->
<details open="open">
<summary>Table of Contents</summary>
<ol>
<li>
<a href="#about-the-project">About The Project</a>
<ul>
<li><a href=#highlights>Highlights</a></li>
</ul>
</li>
<li>
<a href="#getting-started">Getting Started</a>
<ul>
<li><a href=#prerequisites>Prerequisites</a></li>
<li><a href="#installation">Installation</a></li>
<li><a href="#Installation with support for multiple queries in a single request">Installation with support for multiple queries in a single request</a></li>
</ul>
</li>
<li><a href="#usage">Usage</a></li>
<li><a href="#roadmap">Roadmap</a></li>
<li><a href="#contributing">Contributing</a></li>
<li><a href="#license">License</a></li>
<li><a href="#contact">Contact</a></li>
</ol>
</details>
<!-- ABOUT THE PROJECT -->
<!---[![Product Name Screen Shot][product-screenshot]]()-->
deserter is a *targeted* DNS cache poisoner. It is capable of DNS cache poisoning *without* bruteforcing the target ID and source port - instead, it sniffs out DNS probes and uses the information inside to craft poisoned responses and send them back to the target.
In the absence of DNS security mechanisms, deserter has a near 100% success rate of poisoning the target's cache when the router has to forward the DNS query to an external DNS server (the router doesn't have an entry for the domain in its own cache).
deserter doesn't flood the network with any type of packet - it only e a single response per query received.deserter is fast which is required when racing against packets coming from the legitimate name server.deserter supports DNS/MDNS queries of type A/AAAA as well as DNS over IPv6, all while being extremely simple to use.<!-- GETTING STARTED -->
To get a local copy up and running follow these simple steps.
In order for the tool to work, the attacker needs to be on the same network as the . Sometimes, *arp spoofing* may also be required - usually on physical connections through Ethernet.
1. Clone the repo with its submodules
2. Install libpcap
3. Change into deserter/scripts
4. Change the permissions for the scripts and run it
Run the installation script:
This will configure and build the binary in the deserter/build directory.
You can use the scripts configure.sh and build.sh to manually configure and build the cmake project.
<!-- USAGE EXAMPLES -->
The tool requires sudo permissions to be run.
You can run deserter with --help to get information about all of the a options.

deserter should use and the IPv4 address which to use for poisoning queries:
#### Specifying targets to poison
The -t/--targets options can be used to provide a comma-separated list, without whitespace, of IPv4/IPv6 addresses whose queries to poison. By default, deserter will poison all queries it sees. Furthermore, you can prepend ~ to any IP addresses you want to *exclude* from the target list, such that their queries are left unaltered.
#### Specifying domains to poison
The -d/--domains options can be used to provide comma-separated list, without whitespace, of the domains which to poison when they are found in a query. By default, deserter will poison all domains.


<!-- ROADMAP -->
<!-- CONTRIBUTING -->
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
1. Fork the Project
2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
3. Commit your Changes (git commit -m 'Add some AmazingFeature')
4. Push to the Branch (git push origin feature/AmazingFeature)
5. Open a Pull Request
<!-- LICENSE -->
Distributed under the MIT License. See LICENSE for more information.
<!-- CONTACT -->
Project Link:
<!-- ACKNOWLEDGEMENTS -->
<!-- MARKDOWN LINKS & IMAGES -->
<!-- -->
[contributors-shield]:
[contributors-url]:
[forks-shield]:
[forks-url]:
[stars-shield]:
[stars-url]:
[issues-shield]:
[issues-url]:
[license-shield]:
[license-url]:
开发语言:C++
Star 数:126
该项目属于红蓝攻防方向的开源资源,代码结构清晰,适合安全研究人员学习参考。项目围绕A targeted DNS cache poisoner展开,提供了可运行的实现,对理解相关安全机制、工具原理与攻防技术具有较高的研究价值。
从技术实现角度看,此类项目的核心在于对底层原理的深入理解与工程化落地。开发者在研究过程中可以结合官方文档与社区讨论,梳理项目的初始化流程、核心模块职责与数据流转,逐步掌握其中的技术细节与设计思路。
1. 下载源码压缩包,解压到本地环境。
2. 根据项目类型准备对应的运行环境与依赖。
3. 按照 README 中的步骤完成配置与部署。
4. 在隔离的测试环境中运行验证,避免影响生产系统。
本资源来源于开源社区,仅供安全研究、技术学习与合法授权范围内的攻防演练使用,请勿用于任何非法或侵害他人权益的用途。使用本项目产生的一切后果由使用者自行承担。
| 资源标题 | deserter - A targeted DNS cache poisoner |
| 所属分类 | 红蓝攻防 |
| 发布作者 | admin |
| 发布时间 | 2026-10-06 00:51:43 |
| 下载权限 | 免费下载 |
| 附件数量 | 2 个下载链接 |
| 浏览次数 | 362 |
| 讨论数量 | 0 |
| 主题状态 | 正常讨论中 |