Skip to content

Adding the Ability to Include IP Address Restrictions#23

Merged
0xbadjuju merged 3 commits into
NetSPI:masterfrom
0xbadjuju:master
Aug 21, 2018
Merged

Adding the Ability to Include IP Address Restrictions#23
0xbadjuju merged 3 commits into
NetSPI:masterfrom
0xbadjuju:master

Conversation

@0xbadjuju
Copy link
Copy Markdown
Contributor

Example:

$servers = Get-SqlInstanceDomain -IncludeIP; 
$servers | Select ComputerName, Instance, IPAddress

ComputerName                Instance                         IPAddress
------------                --------                         ------
computer1.test.local        computer1.test.local,1433        192.168.1.100
computer2.test.local        computer2.test.local,1433        192.168.1.200
computer3.test.local        computer3.test.local,1433        10.0.0.100

$logins = $servers | Get-SQLConnectionTestThreaded -IPRange 192.168.1.0/24;
$logins 

ComputerName                Instance                         Status
------------                --------                         ------
computer1.test.local        computer1.test.local,1433        Accessible
computer2.test.local        computer2.test.local,1433        Not Accessible
computer3.test.local        computer3.test.local,1433        Out of Scope

@0xbadjuju 0xbadjuju merged commit 469cb40 into NetSPI:master Aug 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant