Skip to content

Commit ed1d52d

Browse files
authored
Document rmm_nrpt_block.ps1 in README
Add details for rmm_nrpt_block.ps1 script usage and functionality.
1 parent a27749e commit ed1d52d

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ PowerShell-Scripts/
1616
│ └── SetAdaptorMetricWired_Highest.ps1
1717
│ └── Check-ModularDS.ps1
1818
│ └── crt_enum.ps1
19+
│ └── rmm_nrpt_block.ps1
1920
2021
## ── 📂 ├── Azure Active Directory/
2122
│ └── get_az_token.ps1
@@ -631,3 +632,11 @@ https://modulards.com/a-note-on-the-recent-modular-ds-security-update/
631632

632633
Performs automated subdomain discovery and service enumeration by ingesting a CSV file and extracting domain names specifically from the Asset Name column, then querying the certificate transparency database at crt.sh using its JSON endpoint (https://crt.sh/?q=<domain>&output=json) with a 30-second timeout and up to 3 retries per domain to ensure reliability against transient failures. For each input domain, it parses all returned certificate entries, extracts and normalizes unique domain names (including handling wildcard certificates and multi-value fields), and identifies newly discovered subdomains. It then sequentially tests network reachability via TCP connection attempts (3-second timeout) on ports 80 (HTTP), 443 (HTTPS), 22 (SSH), and 3389 (RDP), and, when web services are available, performs HTTP(S) requests to retrieve page titles for basic fingerprinting.
633634

635+
---
636+
### `rmm_nrpt_block.ps1`
637+
638+
Add local Windows NRPT-based RMM domain block script generated from the LOLRMM domain list.
639+
NRPTUsage: run PowerShell as Administrator, then execute .\rmm_nrpt_block.ps1 to create local RMMBlockTest NRPT rules.NRPT (Name Resolution Policy Table) lets Windows apply DNS resolution rules for domain namespaces/suffixes before normal DNS lookup, making it better suited than a hosts file for wildcard-style domains like *.teamviewer.com or *.anydesk.com.
640+
Removal: run .\rmm_nrpt_block.ps1 -Remove to delete only the NRPT rules created by this script.
641+
Chosen over hosts file because hosts only supports exact hostnames, while NRPT supports broader namespace/suffix blocking for local testing.
642+

0 commit comments

Comments
 (0)