Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitHubGitHub/crisprss/magicnetdefs
ExploitationNetwork SecurityPenetration TestingAuthenticationRed TeamingAdversarial Attack
GitHubcrisprss/magicnetdefs

magicNetdefs

Similar to Petitpotam, the netdfs service is enabled in Windows Server and AD environments, and the abused RPC method allows privileged processes to access malicious pipes for exploitation

View Repository
49554 years agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

magicNetdfs

Reference

https://github.com/Wh04m1001/DFSCoerce

Usage

Further updates are being considered; for now this only verifies the exploitability of the RPC method. Specific exploitation of the SYSTEM token is planned for later.

Description

Utilizes the MS-DFSNM protocol https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-dfsnm/95a506a8-cae6-4c42-b19d-9c1ed1223979

It provides the RPC method NetrDfsRemoveStdRoot, which can perform UNC spoofing to make privileged processes access a custom pipe:

Limitation

The limitations mainly lie in two aspects. First, this service only targets Windows Server or domain environments:

Second, the token privileges of dfssvc.exe are very limited:

Later, we plan to consider abusing SeRestorePrivilege or SeBackupPrivilege to perform some sensitive operations.

Download Tool