diff --git a/DNS Clarity.ps1 b/DNS Clarity.ps1 new file mode 100644 index 0000000..6cc14a0 --- /dev/null +++ b/DNS Clarity.ps1 @@ -0,0 +1,1383 @@ +<# +DNS Clarity Version 1.0 +Written by Jon Cohen 02/2020 +Copyright (c) DNSFilter. All rights reserved. +#> + +$Global:syncHash = [hashtable]::Synchronized(@{}) +$newRunspace =[runspacefactory]::CreateRunspace() +$newRunspace.ApartmentState = "STA" +$newRunspace.ThreadOptions = "ReuseThread" +$newRunspace.Open() +$newRunspace.SessionStateProxy.SetVariable("syncHash",$syncHash) +$iss = [initialsessionstate]::Create() +$iss.ApartmentState = 'STA' +$iss.ThreadOptions = 'ReuseThread' +$iss.LanguageMode = 'FullLanguage' +$customRSPool = [System.Management.Automation.Runspaces.RunspaceFactory]::CreateRunspacePool(1,4,$iss,$host) +$customRSPool.Open() +$ps = [powershell]::Create() +$ps.RunspacePool = $customRSPool +# Load WPF assembly if necessary +[void][System.Reflection.Assembly]::LoadWithPartialName('presentationframework') + +$psCmd = [PowerShell]::Create().AddScript({ + [xml]$script:xaml = ' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +