├── .gitignore ├── .gitattributes ├── packages ├── Fody.3.3.3 │ ├── .signature.p7s │ ├── Fody.3.3.3.nupkg │ ├── netclassictask │ │ ├── Fody.dll │ │ ├── FodyCommon.dll │ │ ├── Mono.Cecil.dll │ │ ├── Mono.Cecil.pdb │ │ ├── FodyHelpers.dll │ │ ├── FodyIsolated.dll │ │ ├── Mono.Cecil.Mdb.dll │ │ ├── Mono.Cecil.Mdb.pdb │ │ ├── Mono.Cecil.Pdb.dll │ │ ├── Mono.Cecil.Pdb.pdb │ │ ├── Mono.Cecil.Rocks.dll │ │ └── Mono.Cecil.Rocks.pdb │ ├── netstandardtask │ │ ├── Fody.dll │ │ ├── FodyCommon.dll │ │ ├── FodyHelpers.dll │ │ ├── Mono.Cecil.dll │ │ ├── Mono.Cecil.pdb │ │ ├── FodyIsolated.dll │ │ ├── Mono.Cecil.Mdb.dll │ │ ├── Mono.Cecil.Mdb.pdb │ │ ├── Mono.Cecil.Pdb.dll │ │ ├── Mono.Cecil.Pdb.pdb │ │ ├── Mono.Cecil.Rocks.dll │ │ └── Mono.Cecil.Rocks.pdb │ └── build │ │ └── Fody.targets ├── IPNetwork.1.3.2.0 │ ├── .signature.p7s │ ├── IPNetwork.1.3.2.0.nupkg │ └── lib │ │ └── LukeSkywalker.IPNetwork.dll ├── Costura.Fody.3.2.1 │ ├── .signature.p7s │ ├── lib │ │ └── net40 │ │ │ ├── Costura.dll │ │ │ └── Costura.xml │ ├── Costura.Fody.3.2.1.nupkg │ ├── netclassicweaver │ │ ├── Costura.Fody.dll │ │ ├── Costura.Fody.pdb │ │ └── Costura.Fody.xcf │ ├── netstandardweaver │ │ ├── Costura.Fody.dll │ │ ├── Costura.Fody.pdb │ │ └── Costura.Fody.xcf │ └── build │ │ └── Costura.Fody.props └── NDesk.Options.0.2.1 │ ├── .signature.p7s │ ├── lib │ └── NDesk.Options.dll │ └── NDesk.Options.0.2.1.nupkg ├── MSSQLUDPScanner ├── FodyWeavers.xml ├── App.config ├── packages.config ├── Properties │ └── AssemblyInfo.cs ├── Program.cs ├── MSSQLUDPScanner.csproj └── FodyWeavers.xsd ├── README.md ├── MSSQLUDPScanner.sln └── LICENSE /.gitignore: -------------------------------------------------------------------------------- 1 | .vs 2 | *.user 3 | [Dd]ebug/ 4 | [Rr]elease/ 5 | [Bb]in/ 6 | [Oo]bj/ -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /packages/Fody.3.3.3/.signature.p7s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvrsh3ll/MSSQLUDPScanner/HEAD/packages/Fody.3.3.3/.signature.p7s -------------------------------------------------------------------------------- /packages/Fody.3.3.3/Fody.3.3.3.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvrsh3ll/MSSQLUDPScanner/HEAD/packages/Fody.3.3.3/Fody.3.3.3.nupkg -------------------------------------------------------------------------------- /packages/IPNetwork.1.3.2.0/.signature.p7s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvrsh3ll/MSSQLUDPScanner/HEAD/packages/IPNetwork.1.3.2.0/.signature.p7s -------------------------------------------------------------------------------- /packages/Costura.Fody.3.2.1/.signature.p7s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvrsh3ll/MSSQLUDPScanner/HEAD/packages/Costura.Fody.3.2.1/.signature.p7s -------------------------------------------------------------------------------- /packages/Fody.3.3.3/netclassictask/Fody.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvrsh3ll/MSSQLUDPScanner/HEAD/packages/Fody.3.3.3/netclassictask/Fody.dll -------------------------------------------------------------------------------- /packages/Fody.3.3.3/netstandardtask/Fody.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvrsh3ll/MSSQLUDPScanner/HEAD/packages/Fody.3.3.3/netstandardtask/Fody.dll -------------------------------------------------------------------------------- /packages/NDesk.Options.0.2.1/.signature.p7s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvrsh3ll/MSSQLUDPScanner/HEAD/packages/NDesk.Options.0.2.1/.signature.p7s -------------------------------------------------------------------------------- /packages/Costura.Fody.3.2.1/lib/net40/Costura.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvrsh3ll/MSSQLUDPScanner/HEAD/packages/Costura.Fody.3.2.1/lib/net40/Costura.dll -------------------------------------------------------------------------------- /packages/Fody.3.3.3/netclassictask/FodyCommon.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvrsh3ll/MSSQLUDPScanner/HEAD/packages/Fody.3.3.3/netclassictask/FodyCommon.dll -------------------------------------------------------------------------------- /packages/Fody.3.3.3/netclassictask/Mono.Cecil.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvrsh3ll/MSSQLUDPScanner/HEAD/packages/Fody.3.3.3/netclassictask/Mono.Cecil.dll -------------------------------------------------------------------------------- /packages/Fody.3.3.3/netclassictask/Mono.Cecil.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvrsh3ll/MSSQLUDPScanner/HEAD/packages/Fody.3.3.3/netclassictask/Mono.Cecil.pdb -------------------------------------------------------------------------------- /packages/Fody.3.3.3/netclassictask/FodyHelpers.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvrsh3ll/MSSQLUDPScanner/HEAD/packages/Fody.3.3.3/netclassictask/FodyHelpers.dll -------------------------------------------------------------------------------- /packages/Fody.3.3.3/netclassictask/FodyIsolated.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvrsh3ll/MSSQLUDPScanner/HEAD/packages/Fody.3.3.3/netclassictask/FodyIsolated.dll -------------------------------------------------------------------------------- /packages/Fody.3.3.3/netstandardtask/FodyCommon.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvrsh3ll/MSSQLUDPScanner/HEAD/packages/Fody.3.3.3/netstandardtask/FodyCommon.dll -------------------------------------------------------------------------------- /packages/Fody.3.3.3/netstandardtask/FodyHelpers.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvrsh3ll/MSSQLUDPScanner/HEAD/packages/Fody.3.3.3/netstandardtask/FodyHelpers.dll -------------------------------------------------------------------------------- /packages/Fody.3.3.3/netstandardtask/Mono.Cecil.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvrsh3ll/MSSQLUDPScanner/HEAD/packages/Fody.3.3.3/netstandardtask/Mono.Cecil.dll -------------------------------------------------------------------------------- /packages/Fody.3.3.3/netstandardtask/Mono.Cecil.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvrsh3ll/MSSQLUDPScanner/HEAD/packages/Fody.3.3.3/netstandardtask/Mono.Cecil.pdb -------------------------------------------------------------------------------- /packages/IPNetwork.1.3.2.0/IPNetwork.1.3.2.0.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvrsh3ll/MSSQLUDPScanner/HEAD/packages/IPNetwork.1.3.2.0/IPNetwork.1.3.2.0.nupkg -------------------------------------------------------------------------------- /packages/NDesk.Options.0.2.1/lib/NDesk.Options.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvrsh3ll/MSSQLUDPScanner/HEAD/packages/NDesk.Options.0.2.1/lib/NDesk.Options.dll -------------------------------------------------------------------------------- /packages/Costura.Fody.3.2.1/Costura.Fody.3.2.1.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvrsh3ll/MSSQLUDPScanner/HEAD/packages/Costura.Fody.3.2.1/Costura.Fody.3.2.1.nupkg -------------------------------------------------------------------------------- /packages/Fody.3.3.3/netclassictask/Mono.Cecil.Mdb.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvrsh3ll/MSSQLUDPScanner/HEAD/packages/Fody.3.3.3/netclassictask/Mono.Cecil.Mdb.dll -------------------------------------------------------------------------------- /packages/Fody.3.3.3/netclassictask/Mono.Cecil.Mdb.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvrsh3ll/MSSQLUDPScanner/HEAD/packages/Fody.3.3.3/netclassictask/Mono.Cecil.Mdb.pdb -------------------------------------------------------------------------------- /packages/Fody.3.3.3/netclassictask/Mono.Cecil.Pdb.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvrsh3ll/MSSQLUDPScanner/HEAD/packages/Fody.3.3.3/netclassictask/Mono.Cecil.Pdb.dll -------------------------------------------------------------------------------- /packages/Fody.3.3.3/netclassictask/Mono.Cecil.Pdb.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvrsh3ll/MSSQLUDPScanner/HEAD/packages/Fody.3.3.3/netclassictask/Mono.Cecil.Pdb.pdb -------------------------------------------------------------------------------- /packages/Fody.3.3.3/netstandardtask/FodyIsolated.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvrsh3ll/MSSQLUDPScanner/HEAD/packages/Fody.3.3.3/netstandardtask/FodyIsolated.dll -------------------------------------------------------------------------------- /packages/Fody.3.3.3/netstandardtask/Mono.Cecil.Mdb.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvrsh3ll/MSSQLUDPScanner/HEAD/packages/Fody.3.3.3/netstandardtask/Mono.Cecil.Mdb.dll -------------------------------------------------------------------------------- /packages/Fody.3.3.3/netstandardtask/Mono.Cecil.Mdb.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvrsh3ll/MSSQLUDPScanner/HEAD/packages/Fody.3.3.3/netstandardtask/Mono.Cecil.Mdb.pdb -------------------------------------------------------------------------------- /packages/Fody.3.3.3/netstandardtask/Mono.Cecil.Pdb.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvrsh3ll/MSSQLUDPScanner/HEAD/packages/Fody.3.3.3/netstandardtask/Mono.Cecil.Pdb.dll -------------------------------------------------------------------------------- /packages/Fody.3.3.3/netstandardtask/Mono.Cecil.Pdb.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvrsh3ll/MSSQLUDPScanner/HEAD/packages/Fody.3.3.3/netstandardtask/Mono.Cecil.Pdb.pdb -------------------------------------------------------------------------------- /packages/NDesk.Options.0.2.1/NDesk.Options.0.2.1.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvrsh3ll/MSSQLUDPScanner/HEAD/packages/NDesk.Options.0.2.1/NDesk.Options.0.2.1.nupkg -------------------------------------------------------------------------------- /packages/Fody.3.3.3/netclassictask/Mono.Cecil.Rocks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvrsh3ll/MSSQLUDPScanner/HEAD/packages/Fody.3.3.3/netclassictask/Mono.Cecil.Rocks.dll -------------------------------------------------------------------------------- /packages/Fody.3.3.3/netclassictask/Mono.Cecil.Rocks.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvrsh3ll/MSSQLUDPScanner/HEAD/packages/Fody.3.3.3/netclassictask/Mono.Cecil.Rocks.pdb -------------------------------------------------------------------------------- /packages/Fody.3.3.3/netstandardtask/Mono.Cecil.Rocks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvrsh3ll/MSSQLUDPScanner/HEAD/packages/Fody.3.3.3/netstandardtask/Mono.Cecil.Rocks.dll -------------------------------------------------------------------------------- /packages/Fody.3.3.3/netstandardtask/Mono.Cecil.Rocks.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvrsh3ll/MSSQLUDPScanner/HEAD/packages/Fody.3.3.3/netstandardtask/Mono.Cecil.Rocks.pdb -------------------------------------------------------------------------------- /packages/IPNetwork.1.3.2.0/lib/LukeSkywalker.IPNetwork.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvrsh3ll/MSSQLUDPScanner/HEAD/packages/IPNetwork.1.3.2.0/lib/LukeSkywalker.IPNetwork.dll -------------------------------------------------------------------------------- /packages/Costura.Fody.3.2.1/netclassicweaver/Costura.Fody.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvrsh3ll/MSSQLUDPScanner/HEAD/packages/Costura.Fody.3.2.1/netclassicweaver/Costura.Fody.dll -------------------------------------------------------------------------------- /packages/Costura.Fody.3.2.1/netclassicweaver/Costura.Fody.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvrsh3ll/MSSQLUDPScanner/HEAD/packages/Costura.Fody.3.2.1/netclassicweaver/Costura.Fody.pdb -------------------------------------------------------------------------------- /packages/Costura.Fody.3.2.1/netstandardweaver/Costura.Fody.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvrsh3ll/MSSQLUDPScanner/HEAD/packages/Costura.Fody.3.2.1/netstandardweaver/Costura.Fody.dll -------------------------------------------------------------------------------- /packages/Costura.Fody.3.2.1/netstandardweaver/Costura.Fody.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvrsh3ll/MSSQLUDPScanner/HEAD/packages/Costura.Fody.3.2.1/netstandardweaver/Costura.Fody.pdb -------------------------------------------------------------------------------- /MSSQLUDPScanner/FodyWeavers.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /MSSQLUDPScanner/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /MSSQLUDPScanner/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # MSSQLUDPScanner 2 | 3 | MSSQLUDPScanner is a c# port of NetSPI's [Get-SQLInstanceScanUDPThreaded](https://github.com/NetSPI/PowerUpSQL/blob/master/PowerUpSQL.ps1) 4 | 5 | 6 | As an example, one could execute MSSQLUDPScanner.exe through Cobalt Strike's Beacon "execute-assembly" module. 7 | 8 | 9 | #### Example usage 10 | beacon>execute-assembly /root/MSSQLUDPScanner/MSSQLUDPScanner.exe --cidr "192.168.1.0/24" -------------------------------------------------------------------------------- /packages/Costura.Fody.3.2.1/build/Costura.Fody.props: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netclassicweaver 5 | netstandardweaver 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /packages/Costura.Fody.3.2.1/lib/net40/Costura.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Costura 5 | 6 | 7 | 8 | 9 | Contains methods for interacting with the Costura system. 10 | 11 | 12 | 13 | 14 | Call this to Initialize the Costura system. 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /MSSQLUDPScanner.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.28307.168 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MSSQLUDPScanner", "MSSQLUDPScanner\MSSQLUDPScanner.csproj", "{12360864-2364-4335-9118-9705E835DE8D}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {12360864-2364-4335-9118-9705E835DE8D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {12360864-2364-4335-9118-9705E835DE8D}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {12360864-2364-4335-9118-9705E835DE8D}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {12360864-2364-4335-9118-9705E835DE8D}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {3AE35A74-9C49-4AEB-B38C-FB61A82C5160} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /MSSQLUDPScanner/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("MSSQLUDPScanner")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("MSSQLUDPScanner")] 13 | [assembly: AssemblyCopyright("Copyright © 2018")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("12360864-2364-4335-9118-9705e835de8d")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | BSD 3-Clause License 2 | 3 | Copyright (c) 2018, rvrsh3ll 4 | All rights reserved. 5 | 6 | Redistribution and use in source and binary forms, with or without 7 | modification, are permitted provided that the following conditions are met: 8 | 9 | 1. Redistributions of source code must retain the above copyright notice, this 10 | list of conditions and the following disclaimer. 11 | 12 | 2. Redistributions in binary form must reproduce the above copyright notice, 13 | this list of conditions and the following disclaimer in the documentation 14 | and/or other materials provided with the distribution. 15 | 16 | 3. Neither the name of the copyright holder nor the names of its 17 | contributors may be used to endorse or promote products derived from 18 | this software without specific prior written permission. 19 | 20 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 21 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 23 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 24 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 26 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 27 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 28 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -------------------------------------------------------------------------------- /MSSQLUDPScanner/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Text; 3 | using NDesk.Options; 4 | using LukeSkywalker.IPNetwork; 5 | using System.Threading.Tasks; 6 | using System.Net; 7 | using System.Net.Sockets; 8 | 9 | namespace MSSQLUDPScanner 10 | { 11 | class Program 12 | { 13 | static void Main(string[] args) 14 | { 15 | string cidr = null; 16 | bool showhelp = false; 17 | 18 | var opts = new OptionSet() 19 | { 20 | { "cidr=", " --cidr 192.168.1.0/24", v => cidr = v }, 21 | { "h|?|help", "Show available options", v => showhelp = v != null }, 22 | }; 23 | try 24 | { 25 | opts.Parse(args); 26 | } 27 | catch (OptionException e) 28 | { 29 | Console.WriteLine(e.Message); 30 | } 31 | if (showhelp) 32 | { 33 | Console.WriteLine("RTFM"); 34 | opts.WriteOptionDescriptions(Console.Out); 35 | Console.WriteLine("[*] Example: MSSQLUDPScanner.exe --cidr 192.168.1.0/24"); 36 | return; 37 | } 38 | 39 | // Parse CIDR 40 | IPNetwork ipn = IPNetwork.Parse(cidr); 41 | IPAddressCollection ips = IPNetwork.ListIPAddress(ipn); 42 | Parallel.ForEach(ips, ip => 43 | { 44 | try 45 | { 46 | var udpClient = new UdpClient(); 47 | IPEndPoint ep = new IPEndPoint((ip), 1434); 48 | udpClient.Connect(ep); 49 | int number = 3; 50 | byte[] sendBytes = BitConverter.GetBytes(number); 51 | udpClient.Client.ReceiveTimeout = 10000; 52 | udpClient.Client.Blocking = true; 53 | udpClient.Send(sendBytes, sendBytes.Length); 54 | IPEndPoint RemoteIpEndPoint = new IPEndPoint(IPAddress.Any, 0); 55 | Byte[] receiveBytes = udpClient.Receive(ref RemoteIpEndPoint); 56 | string returnData = Encoding.ASCII.GetString(receiveBytes); 57 | string results = returnData.ToString(); 58 | Console.WriteLine("IP: " + ip + " " + results.Replace(';', ' ') + "\r\n"); 59 | udpClient.Close(); 60 | 61 | } 62 | catch (Exception) 63 | { 64 | // Do not print errors 65 | } 66 | }); 67 | } 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /MSSQLUDPScanner/MSSQLUDPScanner.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Debug 7 | AnyCPU 8 | {12360864-2364-4335-9118-9705E835DE8D} 9 | Exe 10 | MSSQLUDPScanner 11 | MSSQLUDPScanner 12 | v4.6.1 13 | 512 14 | true 15 | true 16 | 17 | 18 | 19 | 20 | AnyCPU 21 | true 22 | full 23 | false 24 | bin\Debug\ 25 | DEBUG;TRACE 26 | prompt 27 | 4 28 | 29 | 30 | AnyCPU 31 | none 32 | true 33 | bin\Release\ 34 | TRACE 35 | prompt 36 | 4 37 | 38 | 39 | 40 | ..\packages\Costura.Fody.3.2.1\lib\net40\Costura.dll 41 | 42 | 43 | ..\packages\IPNetwork.1.3.2.0\lib\LukeSkywalker.IPNetwork.dll 44 | 45 | 46 | ..\packages\NDesk.Options.0.2.1\lib\NDesk.Options.dll 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. 70 | 71 | 72 | 73 | 74 | -------------------------------------------------------------------------------- /packages/Fody.3.3.3/build/Fody.targets: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | $(ProjectDir)FodyWeavers.xml 5 | $(MSBuildThisFileDirectory)..\ 6 | $(FodyPath)netstandardtask 7 | $(FodyPath)netclassictask 8 | $(FodyAssemblyDirectory)\Fody.dll 9 | $(MSBuildProjectFile).Fody.CopyLocal.cache 10 | $(DefaultItemExcludes);FodyWeavers.xsd 11 | true 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 31 | 32 | 52 | 53 | 56 | 57 | 58 | 59 | 60 | 61 | 65 | 66 | 70 | 71 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 89 | 90 | 97 | 98 | 99 | 100 | -------------------------------------------------------------------------------- /packages/Costura.Fody.3.2.1/netclassicweaver/Costura.Fody.xcf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks 7 | 8 | 9 | 10 | 11 | A list of assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks. 12 | 13 | 14 | 15 | 16 | A list of unmanaged 32 bit assembly names to include, delimited with line breaks. 17 | 18 | 19 | 20 | 21 | A list of unmanaged 64 bit assembly names to include, delimited with line breaks. 22 | 23 | 24 | 25 | 26 | The order of preloaded assemblies, delimited with line breaks. 27 | 28 | 29 | 30 | 31 | 32 | This will copy embedded files to disk before loading them into memory. This is helpful for some scenarios that expected an assembly to be loaded from a physical file. 33 | 34 | 35 | 36 | 37 | Controls if .pdbs for reference assemblies are also embedded. 38 | 39 | 40 | 41 | 42 | Embedded assemblies are compressed by default, and uncompressed when they are loaded. You can turn compression off with this option. 43 | 44 | 45 | 46 | 47 | As part of Costura, embedded assemblies are no longer included as part of the build. This cleanup can be turned off. 48 | 49 | 50 | 51 | 52 | Costura by default will load as part of the module initialization. This flag disables that behavior. Make sure you call CosturaUtility.Initialize() somewhere in your code. 53 | 54 | 55 | 56 | 57 | Costura will by default use assemblies with a name like 'resources.dll' as a satellite resource and prepend the output path. This flag disables that behavior. 58 | 59 | 60 | 61 | 62 | A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with | 63 | 64 | 65 | 66 | 67 | A list of assembly names to include from the default action of "embed all Copy Local references", delimited with |. 68 | 69 | 70 | 71 | 72 | A list of unmanaged 32 bit assembly names to include, delimited with |. 73 | 74 | 75 | 76 | 77 | A list of unmanaged 64 bit assembly names to include, delimited with |. 78 | 79 | 80 | 81 | 82 | The order of preloaded assemblies, delimited with |. 83 | 84 | 85 | -------------------------------------------------------------------------------- /packages/Costura.Fody.3.2.1/netstandardweaver/Costura.Fody.xcf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks 7 | 8 | 9 | 10 | 11 | A list of assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks. 12 | 13 | 14 | 15 | 16 | A list of unmanaged 32 bit assembly names to include, delimited with line breaks. 17 | 18 | 19 | 20 | 21 | A list of unmanaged 64 bit assembly names to include, delimited with line breaks. 22 | 23 | 24 | 25 | 26 | The order of preloaded assemblies, delimited with line breaks. 27 | 28 | 29 | 30 | 31 | 32 | This will copy embedded files to disk before loading them into memory. This is helpful for some scenarios that expected an assembly to be loaded from a physical file. 33 | 34 | 35 | 36 | 37 | Controls if .pdbs for reference assemblies are also embedded. 38 | 39 | 40 | 41 | 42 | Embedded assemblies are compressed by default, and uncompressed when they are loaded. You can turn compression off with this option. 43 | 44 | 45 | 46 | 47 | As part of Costura, embedded assemblies are no longer included as part of the build. This cleanup can be turned off. 48 | 49 | 50 | 51 | 52 | Costura by default will load as part of the module initialization. This flag disables that behavior. Make sure you call CosturaUtility.Initialize() somewhere in your code. 53 | 54 | 55 | 56 | 57 | Costura will by default use assemblies with a name like 'resources.dll' as a satellite resource and prepend the output path. This flag disables that behavior. 58 | 59 | 60 | 61 | 62 | A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with | 63 | 64 | 65 | 66 | 67 | A list of assembly names to include from the default action of "embed all Copy Local references", delimited with |. 68 | 69 | 70 | 71 | 72 | A list of unmanaged 32 bit assembly names to include, delimited with |. 73 | 74 | 75 | 76 | 77 | A list of unmanaged 64 bit assembly names to include, delimited with |. 78 | 79 | 80 | 81 | 82 | The order of preloaded assemblies, delimited with |. 83 | 84 | 85 | -------------------------------------------------------------------------------- /MSSQLUDPScanner/FodyWeavers.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks 13 | 14 | 15 | 16 | 17 | A list of assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks. 18 | 19 | 20 | 21 | 22 | A list of unmanaged 32 bit assembly names to include, delimited with line breaks. 23 | 24 | 25 | 26 | 27 | A list of unmanaged 64 bit assembly names to include, delimited with line breaks. 28 | 29 | 30 | 31 | 32 | The order of preloaded assemblies, delimited with line breaks. 33 | 34 | 35 | 36 | 37 | 38 | This will copy embedded files to disk before loading them into memory. This is helpful for some scenarios that expected an assembly to be loaded from a physical file. 39 | 40 | 41 | 42 | 43 | Controls if .pdbs for reference assemblies are also embedded. 44 | 45 | 46 | 47 | 48 | Embedded assemblies are compressed by default, and uncompressed when they are loaded. You can turn compression off with this option. 49 | 50 | 51 | 52 | 53 | As part of Costura, embedded assemblies are no longer included as part of the build. This cleanup can be turned off. 54 | 55 | 56 | 57 | 58 | Costura by default will load as part of the module initialization. This flag disables that behavior. Make sure you call CosturaUtility.Initialize() somewhere in your code. 59 | 60 | 61 | 62 | 63 | Costura will by default use assemblies with a name like 'resources.dll' as a satellite resource and prepend the output path. This flag disables that behavior. 64 | 65 | 66 | 67 | 68 | A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with | 69 | 70 | 71 | 72 | 73 | A list of assembly names to include from the default action of "embed all Copy Local references", delimited with |. 74 | 75 | 76 | 77 | 78 | A list of unmanaged 32 bit assembly names to include, delimited with |. 79 | 80 | 81 | 82 | 83 | A list of unmanaged 64 bit assembly names to include, delimited with |. 84 | 85 | 86 | 87 | 88 | The order of preloaded assemblies, delimited with |. 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. 97 | 98 | 99 | 100 | 101 | A comma-separated list of error codes that can be safely ignored in assembly verification. 102 | 103 | 104 | 105 | 106 | 'false' to turn off automatic generation of the XML Schema file. 107 | 108 | 109 | 110 | 111 | --------------------------------------------------------------------------------