Skip to content

Commit 508e108

Browse files
authored
Improve README formatting and add NRPT verification
Formatted PowerShell command usage for better readability and added a verification command for NRPT rules.
1 parent dbe0697 commit 508e108

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

README.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -644,25 +644,33 @@ Performs automated subdomain discovery and service enumeration by ingesting a CS
644644
### `rmm_nrpt_block.ps1`
645645

646646
Add local Windows NRPT-based RMM domain block script generated from the LOLRMM domain list.
647-
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.
648-
Removal: run .\rmm_nrpt_block.ps1 -Remove to delete only the NRPT rules created by this script.
647+
NRPTUsage: run PowerShell as Administrator, then execute
648+
`.\rmm_nrpt_block.ps1`
649+
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.
650+
Removal: run
651+
`.\rmm_nrpt_block.ps1 -Remove`
652+
to delete only the NRPT rules created by this script.
653+
649654
Chosen over hosts file because hosts only supports exact hostnames, while NRPT supports broader namespace/suffix blocking for local testing.
655+
To verify rule run:
656+
`Get-DnsClientNrptRule | Where-Object Comment -eq 'RMMBlockTest'`
650657

651658
---
652659
### `lookup.ps1`
653660

654661
Download KEV JSON
655-
Invoke-WebRequest -Uri "https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json" -OutFile kev.json
662+
`Invoke-WebRequest -Uri "https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json" -OutFile kev.json`
656663

657664
Download EPSS CSV
658-
Invoke-WebRequest -Uri "https://epss.cyentia.com/epss_scores-current.csv.gz" -OutFile epss.gz
665+
`Invoke-WebRequest -Uri "https://epss.cyentia.com/epss_scores-current.csv.gz" -OutFile epss.gz`
659666

660667
Populate table with your CVEs
668+
```powershell
661669
[PSCustomObject]@{
662670
Asset = "foo - Edge Browser"
663671
CVE = "CVE-2026-7902"
664672
},
665-
673+
```
666674
Run lookup.ps1
667675

668676
## ── 📂 Section: MSADPT ──

0 commit comments

Comments
 (0)