The-Viper-One / PsMapExec

A PowerShell tool that takes strong inspiration from CrackMapExec / NetExec
https://viperone.gitbook.io/pentest-everything/psmapexec
BSD 2-Clause "Simplified" License
785 stars 92 forks source link

Update PsMapExec.ps1 #8

Closed Miiden closed 4 months ago

Miiden commented 4 months ago

Added more robust regex's for the Get-IPRange function. CIDR regex allows for users to enter from /16 to /32 but will notify users if the range is too big or small to allow users to adjust the range. Will give invalid format error if outside of those ranges.

Changed the $imax calculation to ensure that last useable IP in range is being scanned. it is currently dropping the last useable IP :)