Permalink
Browse files

v 1.0.1.0

v 1.0.1.0
+ Add hosts manager
+ Add enable windows defender feature
* Fix PcaSvc error
  • Loading branch information...
Nummer committed Apr 27, 2018
1 parent e64dc3d commit 71daf5cf35138cf5bf50e1367496c9c210760f10
@@ -5,6 +5,8 @@ VisualStudioVersion = 15.0.26730.16
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DWS", "DWS\DWS.csproj", "{01D37BC2-DFF5-4374-A1A9-C22CF300CBC7}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "updater", "updater\updater.csproj", "{DDD8A332-553E-4191-BA4A-AC6F72F4AD37}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -15,6 +17,10 @@ Global
{01D37BC2-DFF5-4374-A1A9-C22CF300CBC7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{01D37BC2-DFF5-4374-A1A9-C22CF300CBC7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{01D37BC2-DFF5-4374-A1A9-C22CF300CBC7}.Release|Any CPU.Build.0 = Release|Any CPU
{DDD8A332-553E-4191-BA4A-AC6F72F4AD37}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DDD8A332-553E-4191-BA4A-AC6F72F4AD37}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DDD8A332-553E-4191-BA4A-AC6F72F4AD37}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DDD8A332-553E-4191-BA4A-AC6F72F4AD37}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -65,6 +65,10 @@
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</ApplicationDefinition>
<Page Include="ToolsWindow\HostsManager.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="MainWindow.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
@@ -74,6 +78,9 @@
<SubType>Code</SubType>
</Compile>
<Compile Include="DWSResources.cs" />
<Compile Include="ToolsWindow\HostsManager.xaml.cs">
<DependentUpon>HostsManager.xaml</DependentUpon>
</Compile>
<Compile Include="lib\DWSFunctions.cs" />
<Compile Include="lib\HostsEditor.cs" />
<Compile Include="lib\Paths.cs" />
@@ -112,6 +119,8 @@
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<None Include="Resources\windowsdefender_disable.reg" />
<None Include="Resources\windowsdefender_enable.reg" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
@@ -200,7 +200,6 @@ public static class DwsResources
"XboxNetApiSvc", // Xbox Live Networking Service
"OneSyncSvc", // Sync Host Service
"AeLookupSvc", // Application Experience Service
"PcaSvc", // Program Compatibility Assistant
"WinHttpAutoProxySvc", // WinHTTP Web Proxy Auto-Discovery
"UPNPHOST", // Universal Plug & Play Host
"ERSVC", // Error Reporting Service
@@ -27,11 +27,34 @@
</TabItem>
<TabItem Header="Tools">
<Grid>
<Button Content="Disable Windows Update" Margin="10,10,606,489" Click="ButtonDisableWindowsUpdate_Click"/>
<Button Content="Enable Windows Update" Margin="10,45,606,454" Click="ButtonEnableWindowsUpdate_Click"/>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="50*" />
<ColumnDefinition Width="1*" />
<ColumnDefinition Width="50*" />
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0">
<Button Content="Disable Windows Update" Margin="0,10,0,0" Height="30" Click="ButtonDisableWindowsUpdate_Click"/>
<Button Content="Enable Windows Update" Margin="0,10,0,0" Height="30" Click="ButtonEnableWindowsUpdate_Click"/>
</StackPanel>
<StackPanel Grid.Column="2">
<Button Content="Enable Windows Defender" Margin="0,10,0,0" Height="30" Click="EnableWindowsDefenderClick"/>
</StackPanel>
</Grid>
</TabItem>
<TabItem Header="Plugins">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="50*" />
<ColumnDefinition Width="1*" />
<ColumnDefinition Width="50*" />
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0">
<Button Content="Hosts manager" Margin="0,10,0,0" Height="30" Click="OpenHostsManager"/>
</StackPanel>
<StackPanel Grid.Column="2">
</StackPanel>
</Grid>
</TabItem>
<TabItem Header="Plugins" IsEnabled="False"/>
<TabItem Header="Settings">
<Grid Margin="10,0,10,0">
<Grid.ColumnDefinitions>
@@ -176,6 +176,10 @@ public MainWindow()
AboutInfo.Text =
"Destroy Windows Spying (DWS) - a free utility that prevents tracking of your activity in Windows 10 and enhances the security and privacy settings of the operating system from Microsoft.\r\n\r\n\r\n" +
"\tChangelog:\r\n" +
"\t\t\tv 1.0.1.0 Hosts manager and fixes" +
"\t\t\t+ Add hosts manager" +
"\t\t\t+ Add enable windows defender feature" +
"\t\t\t* Fix PcaSvc error" +
"\t\t1.0 First release!";
new Thread(AutoUpdate).Start(); // auto update
@@ -230,6 +234,7 @@ private void AutoUpdate()
catch (Exception e)
{
Logger.Log("Error check updates.", Logger.LogType.ERROR);
Logger.Log($"Exception {e}", Logger.LogType.DEBUG);
}
}
@@ -413,45 +418,8 @@ private void MainDWSButton_Click(object sender, RoutedEventArgs e)
{
try
{
WindowsUtil.SetRegValueHklm(@"SOFTWARE\Policies\Microsoft\Windows Defender",
"DisableAntiSpyware", "1",
RegistryValueKind.DWord);
WindowsUtil.SetRegValueHklm(@"SOFTWARE\Microsoft\Windows Defender",
"DisableAntiSpyware", "1",
RegistryValueKind.DWord);
WindowsUtil.SetRegValueHklm(@"SOFTWARE\Microsoft\Windows Defender",
"DisableRoutinelyTakingAction", "1",
RegistryValueKind.DWord);
WindowsUtil.SetRegValueHklm(@"SOFTWARE\Microsoft\Windows Defender",
"ProductStatus", "0",
RegistryValueKind.DWord);
WindowsUtil.SetRegValueHklm(@"SOFTWARE\Microsoft\Windows Defender\Real-Time Protection",
"DisableAntiSpywareRealtimeProtection", "1",
RegistryValueKind.DWord);
WindowsUtil.SetRegValueHklm(@"SOFTWARE\Microsoft\Windows Defender\Real-Time Protection",
"DisableRealtimeMonitoring", "1",
RegistryValueKind.DWord);
WindowsUtil.SetRegValueHklm(@"SOFTWARE\Microsoft\Windows Defender\Scan",
"AutomaticallyCleanAfterScan", "0",
RegistryValueKind.DWord);
WindowsUtil.SetRegValueHklm(@"SOFTWARE\Microsoft\Windows Defender\Scan",
"ScheduleDay", "8",
RegistryValueKind.DWord);
WindowsUtil.SetRegValueHklm(@"SOFTWARE\Microsoft\Windows Defender\UX Configuration",
"AllowNonAdminFunctionality", "0",
RegistryValueKind.DWord);
WindowsUtil.SetRegValueHklm(@"SOFTWARE\Microsoft\Windows Defender\UX Configuration",
"DisablePrivacyMode", "1",
RegistryValueKind.DWord);
WindowsUtil.SetRegValueHklm(@"SOFTWARE\Policies\Microsoft\Windows Defender\Spynet",
"SpyNetReporting", "0",
RegistryValueKind.DWord);
WindowsUtil.SetRegValueHklm(@"SOFTWARE\Policies\Microsoft\Windows Defender\Spynet",
"SubmitSamplesConsent", "2",
RegistryValueKind.DWord);
WindowsUtil.SetRegValueHklm(@"SOFTWARE\Policies\Microsoft\MRT",
"DontReportInfectionInformation", "1",
RegistryValueKind.DWord);
// REG FILE IMPORT
WindowsUtil.ProcStartargs("regedit.exe", $"/s \"{WindowsUtil.ExtractResourceToTemp(Encoding.ASCII.GetBytes(Properties.Resources.windowsdefender_disable), "windowsdefender_disable.reg")}\"");
Logger.Log("Disable Windows Defender complete.", Logger.LogType.SUCCESS);
WindowsUtil.SetRegValueHklm(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer",
"SmartScreenEnabled", "Off",
@@ -501,5 +469,21 @@ private void ButtonEnableWindowsUpdate_Click(object sender, RoutedEventArgs e)
WindowsUtil.RunCmd("/c sc config wuauserv start=auto");
Logger.Log("Windows update enabled.", Logger.LogType.INFO);
}
private void EnableWindowsDefenderClick(object sender, RoutedEventArgs e)
{
// REG FILE IMPORT
WindowsUtil.ProcStartargs("regedit.exe", $"/s \"{WindowsUtil.ExtractResourceToTemp(Encoding.ASCII.GetBytes(Properties.Resources.windowsdefender_enable), "windowsdefender_enable.reg")}\"");
Logger.Log("Enable Windows Defender complete.", Logger.LogType.SUCCESS);
}
private void OpenHostsManager(object sender, RoutedEventArgs e)
{
var hostsManagerWindow = new HostsManager();
this.Hide();
hostsManagerWindow.ShowDialog();
this.Show();
}
}
}
@@ -51,5 +51,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("1.0.1.0")]
[assembly: AssemblyFileVersion("1.0.1.0")]

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -121,4 +121,10 @@
<data name="white_500" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\white_500.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="windowsdefender_disable" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\windowsdefender_disable.reg;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
</data>
<data name="windowsdefender_enable" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\windowsdefender_enable.reg;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
</data>
</root>
@@ -0,0 +1,33 @@
Windows Registry Editor Version 5.00
[HKEY_LOCALMACHINE\SOFTWARE\Microsoft\Windows Defender]
"ProductStatus"=dword:00000000
"ManagedDefenderProductType"=dword:00000000
"DisableAntiVirus"=dword:00000001
"DisableAntiSpyware"=dword:00000001
"DisableRoutinelyTakingAction"=dword:00000001
"OneTimeSqmDataSent"=dword:00000001
[HKEY_LOCALMACHINE\SOFTWARE\Microsoft\Windows Defender\Real-Time Protection]
"DisableAntiSpywareRealtimeProtection"=dword:00000001
"DisableRealtimeMonitoring"=dword:00000001
"DpaDisabled"=dword:00000001
[HKEY_LOCALMACHINE\SOFTWARE\Microsoft\Windows Defender\Scan]
"AutomaticallyCleanAfterScan"=dword:00000000
"ScheduleDay"=dword:00000008
[HKEY_LOCALMACHINE\SOFTWARE\Microsoft\Windows Defender\UX Configuration]
"AllowNonAdminFunctionality"=dword:00000000
"DisablePrivacyMode"=dword:00000001
[HKEY_LOCALMACHINE\SOFTWARE\Policies\Microsoft\MRT]
"DontReportInfectionInformation"=dword:00000001
[HKEY_LOCALMACHINE\SOFTWARE\Policies\Microsoft\Windows Defender]
"DisableAntiVirus"=dword:00000001
"DisableAntiSpyware"=dword:00000001
[HKEY_LOCALMACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet]
"SpyNetReporting"=dword:00000000
"SubmitSamplesConsent"=dword:00000002
@@ -0,0 +1,37 @@
Windows Registry Editor Version 5.00
[HKEY_LOCALMACHINE\SOFTWARE\Microsoft\Windows Defender]
"ProductStatus"=dword:00000000
"ManagedDefenderProductType"=dword:00000000
"DisableAntiVirus"=dword:00000000
"DisableAntiSpyware"=dword:00000000
"DisableRoutinelyTakingAction"=dword:00000000
"OneTimeSqmDataSent"=dword:00000001
[HKEY_LOCALMACHINE\SOFTWARE\Microsoft\Windows Defender\Real-Time Protection]
"DisableAntiSpywareRealtimeProtection"=dword:00000000
"DisableRealtimeMonitoring"=dword:00000000
"DpaDisabled"=dword:00000000
[HKEY_LOCALMACHINE\SOFTWARE\Microsoft\Windows Defender\Scan]
"AutomaticallyCleanAfterScan"=dword:00000001
"ScheduleDay"=dword:00000007
[HKEY_LOCALMACHINE\SOFTWARE\Microsoft\Windows Defender\Spynet]
"SpyNetReporting"=dword:00000000
"SubmitSamplesConsent"=dword:00000000
[HKEY_LOCALMACHINE\SOFTWARE\Microsoft\Windows Defender\UX Configuration]
"AllowNonAdminFunctionality"=dword:00000000
"DisablePrivacyMode"=dword:00000001
[HKEY_LOCALMACHINE\SOFTWARE\Policies\Microsoft\MRT]
"DontReportInfectionInformation"=dword:00000000
[HKEY_LOCALMACHINE\SOFTWARE\Policies\Microsoft\Windows Defender]
"DisableAntiVirus"=-
"DisableAntiSpyware"=-
[HKEY_LOCALMACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet]
"SpyNetReporting"=-
"SubmitSamplesConsent"=-
@@ -0,0 +1,36 @@
<Window x:Class="DWS.HostsManager"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:DWS"
mc:Ignorable="d"
Title="Hosts manager" Height="450" Width="400" WindowStyle="None" ResizeMode="NoResize" Background="#181724" Foreground="White">
<WindowChrome.WindowChrome>
<WindowChrome CaptionHeight="35"></WindowChrome>
</WindowChrome.WindowChrome>
<Grid>
<Grid VerticalAlignment="Top" Background="#080714">
<StackPanel Height="35" WindowChrome.IsHitTestVisibleInChrome="True" VerticalAlignment="Center" HorizontalAlignment="Left" Orientation="Horizontal">
<Label Content="Hosts manager" Foreground="White" FontSize="18"/>
</StackPanel>
<StackPanel Height="35" WindowChrome.IsHitTestVisibleInChrome="True" VerticalAlignment="Center" HorizontalAlignment="Right" Orientation="Horizontal">
<Button Width="25" Content="x" Name="CloseButton" FontSize="15" Margin="2,5,5,5" Height="25"/>
</StackPanel>
</Grid>
<Grid>
<ScrollViewer VerticalScrollBarVisibility="Auto" Margin="0,39,0,53">
<StackPanel>
<DataGrid AutoGenerateColumns="False" HorizontalAlignment="Left" Name="DataGridHosts" VerticalAlignment="Top">
<DataGrid.Columns >
<DataGridTextColumn Header="Ip adress" Width="0.5*" Binding="{Binding Path=IP}"/>
<DataGridTextColumn Header="Hostname" Width="0.5*" Binding="{Binding Path=HOST}"/>
</DataGrid.Columns>
</DataGrid>
</StackPanel>
</ScrollViewer>
<Button Content="Apply" Margin="305,410,10,10" Height="30" Click="ButtonApply_Click"/>
<Button Content="Reload" Margin="203,410,108,10" Height="30" Click="ButtonReloadHosts_Click"/>
</Grid>
</Grid>
</Window>
Oops, something went wrong.

0 comments on commit 71daf5c

Please sign in to comment.