├── dnscrypt-winservicemgr
├── app.config
├── Properties
│ ├── Settings.settings
│ ├── Settings.Designer.cs
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ └── Resources.resx
├── ServiceMgr.cs
├── AdminCheck.cs
├── Program.cs
├── NetworkListItem.cs
├── UpdateChecker.cs
├── ProviderMgr.cs
├── app.manifest
├── dnscrypt-winservicemgr.csproj
├── ProviderItem.cs
├── AppForm.resx
├── AppForm.cs
└── AppForm.Designer.cs
├── DNSCrypt Windows Service Manager Package
├── hostip.exe
├── libldns-1.dll
├── libsodium-4.dll
├── dnscrypt-proxy.exe
├── libwinpthread-1.dll
├── dnscrypt-winservicemgr.exe
├── DNSCrypt Windows Service Manager.zip
├── v0.1 DNSCrypt-proxy 1.3.3
│ ├── hostip.exe
│ ├── libsodium-4.dll
│ ├── dnscrypt-proxy.exe
│ ├── dnscrypt-winservicemgr.exe
│ ├── DNSCrypt Windows Service Manager Package.exe
│ ├── DNSCrypt Windows Service Manager Package.zip
│ └── DNSCrypt Windows Service Manager Package.SED
├── DNSCrypt Windows Service Manager (old with dnscrypt-proxy).zip
└── dnscrypt-resolvers.csv
├── copyright_notice.txt
├── .gitattributes
├── dnscrypt-winservicemgr.sln
├── license.txt
└── .gitignore
/dnscrypt-winservicemgr/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/DNSCrypt Windows Service Manager Package/hostip.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/simonclausen/dnscrypt-winservicemgr/HEAD/DNSCrypt Windows Service Manager Package/hostip.exe
--------------------------------------------------------------------------------
/DNSCrypt Windows Service Manager Package/libldns-1.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/simonclausen/dnscrypt-winservicemgr/HEAD/DNSCrypt Windows Service Manager Package/libldns-1.dll
--------------------------------------------------------------------------------
/DNSCrypt Windows Service Manager Package/libsodium-4.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/simonclausen/dnscrypt-winservicemgr/HEAD/DNSCrypt Windows Service Manager Package/libsodium-4.dll
--------------------------------------------------------------------------------
/DNSCrypt Windows Service Manager Package/dnscrypt-proxy.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/simonclausen/dnscrypt-winservicemgr/HEAD/DNSCrypt Windows Service Manager Package/dnscrypt-proxy.exe
--------------------------------------------------------------------------------
/DNSCrypt Windows Service Manager Package/libwinpthread-1.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/simonclausen/dnscrypt-winservicemgr/HEAD/DNSCrypt Windows Service Manager Package/libwinpthread-1.dll
--------------------------------------------------------------------------------
/DNSCrypt Windows Service Manager Package/dnscrypt-winservicemgr.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/simonclausen/dnscrypt-winservicemgr/HEAD/DNSCrypt Windows Service Manager Package/dnscrypt-winservicemgr.exe
--------------------------------------------------------------------------------
/DNSCrypt Windows Service Manager Package/DNSCrypt Windows Service Manager.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/simonclausen/dnscrypt-winservicemgr/HEAD/DNSCrypt Windows Service Manager Package/DNSCrypt Windows Service Manager.zip
--------------------------------------------------------------------------------
/DNSCrypt Windows Service Manager Package/v0.1 DNSCrypt-proxy 1.3.3/hostip.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/simonclausen/dnscrypt-winservicemgr/HEAD/DNSCrypt Windows Service Manager Package/v0.1 DNSCrypt-proxy 1.3.3/hostip.exe
--------------------------------------------------------------------------------
/DNSCrypt Windows Service Manager Package/v0.1 DNSCrypt-proxy 1.3.3/libsodium-4.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/simonclausen/dnscrypt-winservicemgr/HEAD/DNSCrypt Windows Service Manager Package/v0.1 DNSCrypt-proxy 1.3.3/libsodium-4.dll
--------------------------------------------------------------------------------
/DNSCrypt Windows Service Manager Package/v0.1 DNSCrypt-proxy 1.3.3/dnscrypt-proxy.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/simonclausen/dnscrypt-winservicemgr/HEAD/DNSCrypt Windows Service Manager Package/v0.1 DNSCrypt-proxy 1.3.3/dnscrypt-proxy.exe
--------------------------------------------------------------------------------
/DNSCrypt Windows Service Manager Package/v0.1 DNSCrypt-proxy 1.3.3/dnscrypt-winservicemgr.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/simonclausen/dnscrypt-winservicemgr/HEAD/DNSCrypt Windows Service Manager Package/v0.1 DNSCrypt-proxy 1.3.3/dnscrypt-winservicemgr.exe
--------------------------------------------------------------------------------
/DNSCrypt Windows Service Manager Package/DNSCrypt Windows Service Manager (old with dnscrypt-proxy).zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/simonclausen/dnscrypt-winservicemgr/HEAD/DNSCrypt Windows Service Manager Package/DNSCrypt Windows Service Manager (old with dnscrypt-proxy).zip
--------------------------------------------------------------------------------
/DNSCrypt Windows Service Manager Package/v0.1 DNSCrypt-proxy 1.3.3/DNSCrypt Windows Service Manager Package.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/simonclausen/dnscrypt-winservicemgr/HEAD/DNSCrypt Windows Service Manager Package/v0.1 DNSCrypt-proxy 1.3.3/DNSCrypt Windows Service Manager Package.exe
--------------------------------------------------------------------------------
/DNSCrypt Windows Service Manager Package/v0.1 DNSCrypt-proxy 1.3.3/DNSCrypt Windows Service Manager Package.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/simonclausen/dnscrypt-winservicemgr/HEAD/DNSCrypt Windows Service Manager Package/v0.1 DNSCrypt-proxy 1.3.3/DNSCrypt Windows Service Manager Package.zip
--------------------------------------------------------------------------------
/dnscrypt-winservicemgr/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/copyright_notice.txt:
--------------------------------------------------------------------------------
1 | DNSCrypt Windows Service Manager is based on dnscrypt-winclient,
2 | originally developed and Copyright (c) 2012 by Patrick Webster:
3 |
4 | https://github.com/Noxwizard/dnscrypt-winclient
5 |
6 | DNSCrypt Windows Service Manager includes a few elements from the
7 | original program. These are Copyright (c) 2012 Patrick Webster.
8 |
9 | The rest of DNSCrypt Windows Service Manager is developed and
10 | Copyright (c) 2014 by Simon Christian Clausen.
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
4 | # Custom for Visual Studio
5 | *.cs diff=csharp
6 | *.sln merge=union
7 | *.csproj merge=union
8 | *.vbproj merge=union
9 | *.fsproj merge=union
10 | *.dbproj merge=union
11 |
12 | # Standard to msysgit
13 | *.doc diff=astextplain
14 | *.DOC diff=astextplain
15 | *.docx diff=astextplain
16 | *.DOCX diff=astextplain
17 | *.dot diff=astextplain
18 | *.DOT diff=astextplain
19 | *.pdf diff=astextplain
20 | *.PDF diff=astextplain
21 | *.rtf diff=astextplain
22 | *.RTF diff=astextplain
23 |
--------------------------------------------------------------------------------
/dnscrypt-winservicemgr/ServiceMgr.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 | using System.ServiceProcess;
5 |
6 | namespace dnscrypt_winservicemgr
7 | {
8 | class ServiceMgr
9 | {
10 | public static void stopService(string serviceName, int timeoutMilliseconds)
11 | {
12 | ServiceController service = new ServiceController(serviceName);
13 | try
14 | {
15 | TimeSpan timeout = TimeSpan.FromMilliseconds(timeoutMilliseconds);
16 |
17 | service.Stop();
18 | service.WaitForStatus(ServiceControllerStatus.Stopped, timeout);
19 | }
20 | catch
21 | {
22 | // ...
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/dnscrypt-winservicemgr/AdminCheck.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 | using System.Security.Principal;
5 |
6 | namespace dnscrypt_winservicemgr
7 | {
8 | class AdminCheck
9 | {
10 | public static Boolean testAdmin()
11 | {
12 | bool isAdmin;
13 | try
14 | {
15 | WindowsIdentity user = WindowsIdentity.GetCurrent();
16 | WindowsPrincipal principal = new WindowsPrincipal(user);
17 | isAdmin = principal.IsInRole(WindowsBuiltInRole.Administrator);
18 | }
19 | catch (UnauthorizedAccessException ex)
20 | {
21 | isAdmin = false;
22 | }
23 | catch (Exception ex)
24 | {
25 | isAdmin = false;
26 | }
27 | return isAdmin;
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/dnscrypt-winservicemgr/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Windows.Forms;
4 |
5 | namespace dnscrypt_winservicemgr
6 | {
7 | static class Program
8 | {
9 | ///
10 | /// The main entry point for the application.
11 | ///
12 | [STAThread]
13 | static void Main()
14 | {
15 | if (AdminCheck.testAdmin())
16 | {
17 | Application.EnableVisualStyles();
18 | Application.SetCompatibleTextRenderingDefault(false);
19 | Application.Run(new ApplicationWindow());
20 | }
21 | else
22 | {
23 | MessageBox.Show("This program needs access to system settings.\nPlease restart the program as Administrator.", "Permission Error");
24 | Application.Exit();
25 | }
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/dnscrypt-winservicemgr.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 11.00
3 | # Visual Studio 2010
4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "dnscrypt-winservicemgr", "dnscrypt-winservicemgr\dnscrypt-winservicemgr.csproj", "{63D71C9D-0F1A-4518-8F56-225F1CBB28BE}"
5 | EndProject
6 | Global
7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
8 | Debug|x86 = Debug|x86
9 | Release|x86 = Release|x86
10 | EndGlobalSection
11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
12 | {63D71C9D-0F1A-4518-8F56-225F1CBB28BE}.Debug|x86.ActiveCfg = Debug|x86
13 | {63D71C9D-0F1A-4518-8F56-225F1CBB28BE}.Debug|x86.Build.0 = Debug|x86
14 | {63D71C9D-0F1A-4518-8F56-225F1CBB28BE}.Release|x86.ActiveCfg = Release|x86
15 | {63D71C9D-0F1A-4518-8F56-225F1CBB28BE}.Release|x86.Build.0 = Release|x86
16 | EndGlobalSection
17 | GlobalSection(SolutionProperties) = preSolution
18 | HideSolutionNode = FALSE
19 | EndGlobalSection
20 | EndGlobal
21 |
--------------------------------------------------------------------------------
/license.txt:
--------------------------------------------------------------------------------
1 | Copyright (c) 2014 Simon Christian Clausen
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining
4 | a copy of this software and associated documentation files (the
5 | "Software"), to deal in the Software without restriction, including
6 | without limitation the rights to use, copy, modify, merge, publish,
7 | distribute, sublicense, and/or sell copies of the Software, and to
8 | permit persons to whom the Software is furnished to do so, subject to
9 | the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be
12 | included in all copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/dnscrypt-winservicemgr/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.17929
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace dnscrypt_winservicemgr.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/DNSCrypt Windows Service Manager Package/v0.1 DNSCrypt-proxy 1.3.3/DNSCrypt Windows Service Manager Package.SED:
--------------------------------------------------------------------------------
1 | [Version]
2 | Class=IEXPRESS
3 | SEDVersion=3
4 | [Options]
5 | PackagePurpose=ExtractOnly
6 | ShowInstallProgramWindow=0
7 | HideExtractAnimation=0
8 | UseLongFileName=1
9 | InsideCompressed=0
10 | CAB_FixedSize=0
11 | CAB_ResvCodeSigning=0
12 | RebootMode=I
13 | InstallPrompt=%InstallPrompt%
14 | DisplayLicense=%DisplayLicense%
15 | FinishMessage=%FinishMessage%
16 | TargetName=%TargetName%
17 | FriendlyName=%FriendlyName%
18 | AppLaunched=%AppLaunched%
19 | PostInstallCmd=%PostInstallCmd%
20 | AdminQuietInstCmd=%AdminQuietInstCmd%
21 | UserQuietInstCmd=%UserQuietInstCmd%
22 | SourceFiles=SourceFiles
23 | [Strings]
24 | InstallPrompt=
25 | DisplayLicense=
26 | FinishMessage=
27 | TargetName=C:\Users\Vimdows\Dropbox\Projects\GitHub\dnscrypt-winservicemgr\DNSCrypt Windows Service Package\DNSCrypt Windows Service Manager Package.exe
28 | FriendlyName=DNSCrypt Windows Service Manager Package
29 | AppLaunched=
30 | PostInstallCmd=
31 | AdminQuietInstCmd=
32 | UserQuietInstCmd=
33 | FILE0="dnscrypt-proxy.exe"
34 | FILE1="dnscrypt-winservicemgr.exe"
35 | FILE2="hostip.exe"
36 | FILE3="libsodium-4.dll"
37 | [SourceFiles]
38 | SourceFiles0=C:\Users\Vimdows\Dropbox\Projects\GitHub\dnscrypt-winservicemgr\DNSCrypt Windows Service Package\
39 | [SourceFiles0]
40 | %FILE0%=
41 | %FILE1%=
42 | %FILE2%=
43 | %FILE3%=
44 |
--------------------------------------------------------------------------------
/dnscrypt-winservicemgr/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("dnscrypt-winservicemgr")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("dnscrypt-winautoinstall")]
13 | [assembly: AssemblyCopyright("Copyright © 2014 Simon Clausen")]
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("8ae4f4ba-8c16-491e-aed9-46b595e70d91")]
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("0.2.0.0")]
36 | [assembly: AssemblyFileVersion("0.2.0.0")]
37 |
--------------------------------------------------------------------------------
/dnscrypt-winservicemgr/NetworkListItem.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace dnscrypt_winservicemgr
6 | {
7 | public class NetworkListItem
8 | {
9 | private String nicName;
10 | private String nicDescription;
11 | private String id;
12 | private Boolean ipv4 = false;
13 | private Boolean ipv6 = false;
14 | private Boolean hidden = false;
15 |
16 | public NetworkListItem(String Name, String Description, String ID, Boolean IPv4, Boolean IPv6)
17 | {
18 | this.nicName = Name;
19 | this.nicDescription = Description;
20 | this.id = ID;
21 | this.ipv4 = IPv4;
22 | this.ipv6 = IPv6;
23 |
24 | if (this.shouldHide(Description))
25 | {
26 | this.hidden = true;
27 | }
28 | }
29 |
30 | public String getNicName()
31 | {
32 | return this.nicName;
33 | }
34 |
35 | public String getDescription()
36 | {
37 | return this.nicDescription;
38 | }
39 |
40 | public String getID()
41 | {
42 | return this.id;
43 | }
44 |
45 | public Boolean getIpv4()
46 | {
47 | return this.ipv4;
48 | }
49 |
50 | public Boolean getIpv6()
51 | {
52 | return this.ipv6;
53 | }
54 |
55 | public Boolean getHidden()
56 | {
57 | return this.hidden;
58 | }
59 |
60 | public override string ToString()
61 | {
62 | String message = this.nicDescription;
63 | return message;
64 | }
65 |
66 | private Boolean shouldHide(String Description)
67 | {
68 | string[] blacklist = {
69 | "Microsoft Virtual",
70 | "Hamachi Network",
71 | "VMware Virtual",
72 | "VirtualBox",
73 | "Software Loopback",
74 | "Microsoft ISATAP",
75 | "Teredo Tunneling Pseudo-Interface"
76 | };
77 |
78 | foreach (string entry in blacklist)
79 | {
80 | if (Description.Contains(entry))
81 | {
82 | return true;
83 | }
84 | }
85 | return false;
86 | }
87 | }
88 | }
89 |
--------------------------------------------------------------------------------
/dnscrypt-winservicemgr/UpdateChecker.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 | using System.Xml;
5 | using System.Windows.Forms;
6 |
7 | namespace dnscrypt_winservicemgr
8 | {
9 | class UpdateChecker
10 | {
11 | public UpdateChecker()
12 | {
13 |
14 | }
15 |
16 | public static void checkVersion()
17 | {
18 | Version newVersion = null;
19 | string url = "";
20 | XmlTextReader reader;
21 | try
22 | {
23 | string xmlURL = "http://simonclausen.dk/dnscrypt-winservicemgr/updatecheck.xml";
24 | reader = new XmlTextReader(xmlURL);
25 | reader.MoveToContent();
26 | string elementName = "";
27 | if ((reader.NodeType == XmlNodeType.Element) && (reader.Name == "dnscrypt-winservicemgr"))
28 | {
29 | while (reader.Read())
30 | {
31 | if (reader.NodeType == XmlNodeType.Element)
32 | {
33 | elementName = reader.Name;
34 | }
35 | else
36 | {
37 | if ((reader.NodeType == XmlNodeType.Text) && (reader.HasValue))
38 | {
39 | switch (elementName)
40 | {
41 | case "version":
42 | newVersion = new Version(reader.Value);
43 | break;
44 | case "url":
45 | url = reader.Value;
46 | break;
47 | }
48 | }
49 | }
50 | }
51 | }
52 | }
53 | catch (Exception)
54 | {
55 |
56 | }
57 | Version curVersion = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
58 | if (curVersion.CompareTo(newVersion) < 0)
59 | {
60 | string title = "Update Check";
61 | string question = "A new version of DNSCrypt Windows Service Manager is available.\nWould you like to download the new version?";
62 | if (DialogResult.Yes == MessageBox.Show(question, title, MessageBoxButtons.YesNo, MessageBoxIcon.Question))
63 | {
64 | System.Diagnostics.Process.Start(url);
65 | }
66 | }
67 | }
68 | }
69 | }
70 |
--------------------------------------------------------------------------------
/dnscrypt-winservicemgr/ProviderMgr.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 | using System.Windows.Forms;
5 | using Microsoft.VisualBasic.FileIO;
6 | using System.IO;
7 |
8 |
9 | namespace dnscrypt_winservicemgr
10 | {
11 | class ProviderMgr
12 | {
13 | private List providerList = new List();
14 |
15 | public ProviderMgr()
16 | {
17 | TextFieldParser parser = new TextFieldParser(@"" + Directory.GetCurrentDirectory() + "\\dnscrypt-resolvers.csv");
18 | parser.TextFieldType = FieldType.Delimited;
19 | parser.SetDelimiters(",");
20 |
21 | while (!parser.EndOfData)
22 | {
23 | ProviderItem providerItem = new ProviderItem();
24 |
25 | string[] fields = parser.ReadFields();
26 |
27 | providerItem.setName(fields[0]);
28 | providerItem.setFullName(fields[1]);
29 | providerItem.setDescription(fields[2]);
30 | providerItem.setLocation(fields[3]);
31 | providerItem.setCoordinates(fields[4]);
32 | providerItem.setURL(fields[5]);
33 | providerItem.setVersion(fields[6]);
34 | providerItem.setDNSSEC(fields[7]);
35 | providerItem.setNoLogs(fields[8]);
36 | providerItem.setNamecoin(fields[9]);
37 | providerItem.setAddress(fields[10]);
38 | providerItem.setProviderName(fields[11]);
39 | providerItem.setPublicKey(fields[12]);
40 | providerItem.setPublicKeyTXT(fields[13]);
41 | providerList.Add(providerItem);
42 | }
43 | parser.Close();
44 |
45 | // Remove first line from CVS (Name, etc, etc)
46 | providerList.RemoveAt(0);
47 | }
48 |
49 | public List getProvider(String searchFullName)
50 | {
51 | List result = new List();
52 |
53 | for(int x=0; x < providerList.Count; x++)
54 | {
55 | if (searchFullName == providerList[x].getFullName())
56 | {
57 | result.Add(providerList[x]);
58 | }
59 | }
60 | return result;
61 | }
62 |
63 | public string[] getFullNames()
64 | {
65 | List names = new List();
66 |
67 | for (int i = 0; i < providerList.Count; i++)
68 | {
69 | names.Add(providerList[i].getFullName());
70 | }
71 |
72 | string[] returnObject = names.ToArray();
73 |
74 | return returnObject;
75 | }
76 | }
77 | }
78 |
--------------------------------------------------------------------------------
/dnscrypt-winservicemgr/app.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
59 |
60 |
61 |
--------------------------------------------------------------------------------
/dnscrypt-winservicemgr/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.17929
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace dnscrypt_winservicemgr.Properties {
12 | using System;
13 |
14 |
15 | ///
16 | /// A strongly-typed resource class, for looking up localized strings, etc.
17 | ///
18 | // This class was auto-generated by the StronglyTypedResourceBuilder
19 | // class via a tool like ResGen or Visual Studio.
20 | // To add or remove a member, edit your .ResX file then rerun ResGen
21 | // with the /str option, or rebuild your VS project.
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resources() {
33 | }
34 |
35 | ///
36 | /// Returns the cached ResourceManager instance used by this class.
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("dnscrypt_winservicemgr.Properties.Resources", typeof(Resources).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// Overrides the current thread's CurrentUICulture property for all
51 | /// resource lookups using this strongly typed resource class.
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | #################
2 | ## Eclipse
3 | #################
4 |
5 | *.pydevproject
6 | .project
7 | .metadata
8 | bin/
9 | tmp/
10 | *.tmp
11 | *.bak
12 | *.swp
13 | *~.nib
14 | local.properties
15 | .classpath
16 | .settings/
17 | .loadpath
18 |
19 | # External tool builders
20 | .externalToolBuilders/
21 |
22 | # Locally stored "Eclipse launch configurations"
23 | *.launch
24 |
25 | # CDT-specific
26 | .cproject
27 |
28 | # PDT-specific
29 | .buildpath
30 |
31 |
32 | #################
33 | ## Visual Studio
34 | #################
35 |
36 | ## Ignore Visual Studio temporary files, build results, and
37 | ## files generated by popular Visual Studio add-ons.
38 |
39 | # User-specific files
40 | *.suo
41 | *.user
42 | *.sln.docstates
43 |
44 | # Build results
45 |
46 | [Dd]ebug/
47 | [Rr]elease/
48 | x64/
49 | build/
50 | [Bb]in/
51 | [Oo]bj/
52 |
53 | # MSTest test Results
54 | [Tt]est[Rr]esult*/
55 | [Bb]uild[Ll]og.*
56 |
57 | *_i.c
58 | *_p.c
59 | *.ilk
60 | *.meta
61 | *.obj
62 | *.pch
63 | *.pdb
64 | *.pgc
65 | *.pgd
66 | *.rsp
67 | *.sbr
68 | *.tlb
69 | *.tli
70 | *.tlh
71 | *.tmp
72 | *.tmp_proj
73 | *.log
74 | *.vspscc
75 | *.vssscc
76 | .builds
77 | *.pidb
78 | *.log
79 | *.scc
80 |
81 | # Visual C++ cache files
82 | ipch/
83 | *.aps
84 | *.ncb
85 | *.opensdf
86 | *.sdf
87 | *.cachefile
88 |
89 | # Visual Studio profiler
90 | *.psess
91 | *.vsp
92 | *.vspx
93 |
94 | # Guidance Automation Toolkit
95 | *.gpState
96 |
97 | # ReSharper is a .NET coding add-in
98 | _ReSharper*/
99 | *.[Rr]e[Ss]harper
100 |
101 | # TeamCity is a build add-in
102 | _TeamCity*
103 |
104 | # DotCover is a Code Coverage Tool
105 | *.dotCover
106 |
107 | # NCrunch
108 | *.ncrunch*
109 | .*crunch*.local.xml
110 |
111 | # Installshield output folder
112 | [Ee]xpress/
113 |
114 | # DocProject is a documentation generator add-in
115 | DocProject/buildhelp/
116 | DocProject/Help/*.HxT
117 | DocProject/Help/*.HxC
118 | DocProject/Help/*.hhc
119 | DocProject/Help/*.hhk
120 | DocProject/Help/*.hhp
121 | DocProject/Help/Html2
122 | DocProject/Help/html
123 |
124 | # Click-Once directory
125 | publish/
126 |
127 | # Publish Web Output
128 | *.Publish.xml
129 | *.pubxml
130 |
131 | # NuGet Packages Directory
132 | ## TODO: If you have NuGet Package Restore enabled, uncomment the next line
133 | #packages/
134 |
135 | # Windows Azure Build Output
136 | csx
137 | *.build.csdef
138 |
139 | # Windows Store app package directory
140 | AppPackages/
141 |
142 | # Others
143 | sql/
144 | *.Cache
145 | ClientBin/
146 | [Ss]tyle[Cc]op.*
147 | ~$*
148 | *~
149 | *.dbmdl
150 | *.[Pp]ublish.xml
151 | *.pfx
152 | *.publishsettings
153 |
154 | # RIA/Silverlight projects
155 | Generated_Code/
156 |
157 | # Backup & report files from converting an old project file to a newer
158 | # Visual Studio version. Backup files are not needed, because we have git ;-)
159 | _UpgradeReport_Files/
160 | Backup*/
161 | UpgradeLog*.XML
162 | UpgradeLog*.htm
163 |
164 | # SQL Server files
165 | App_Data/*.mdf
166 | App_Data/*.ldf
167 |
168 | #############
169 | ## Windows detritus
170 | #############
171 |
172 | # Windows image file caches
173 | Thumbs.db
174 | ehthumbs.db
175 |
176 | # Folder config file
177 | Desktop.ini
178 |
179 | # Recycle Bin used on file shares
180 | $RECYCLE.BIN/
181 |
182 | # Mac crap
183 | .DS_Store
184 |
185 |
186 | #############
187 | ## Python
188 | #############
189 |
190 | *.py[co]
191 |
192 | # Packages
193 | *.egg
194 | *.egg-info
195 | dist/
196 | build/
197 | eggs/
198 | parts/
199 | var/
200 | sdist/
201 | develop-eggs/
202 | .installed.cfg
203 |
204 | # Installer logs
205 | pip-log.txt
206 |
207 | # Unit test / coverage reports
208 | .coverage
209 | .tox
210 |
211 | #Translations
212 | *.mo
213 |
214 | #Mr Developer
215 | .mr.developer.cfg
216 |
--------------------------------------------------------------------------------
/dnscrypt-winservicemgr/dnscrypt-winservicemgr.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Debug
5 | x86
6 | 8.0.30703
7 | 2.0
8 | {63D71C9D-0F1A-4518-8F56-225F1CBB28BE}
9 | WinExe
10 | Properties
11 | dnscrypt_winservicemgr
12 | dnscrypt-winservicemgr
13 | v2.0
14 | 512
15 |
16 |
17 |
18 | x86
19 | true
20 | full
21 | false
22 | bin\Debug\
23 | DEBUG;TRACE
24 | prompt
25 | 4
26 |
27 |
28 | x86
29 | pdbonly
30 | true
31 | bin\Release\
32 | TRACE
33 | prompt
34 | 4
35 |
36 |
37 |
38 | app.manifest
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 | Form
54 |
55 |
56 | AppForm.cs
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 | AppForm.cs
68 |
69 |
70 | ResXFileCodeGenerator
71 | Resources.Designer.cs
72 | Designer
73 |
74 |
75 | True
76 | Resources.resx
77 | True
78 |
79 |
80 |
81 | Designer
82 |
83 |
84 | SettingsSingleFileGenerator
85 | Settings.Designer.cs
86 |
87 |
88 | True
89 | Settings.settings
90 | True
91 |
92 |
93 |
94 |
101 |
--------------------------------------------------------------------------------
/dnscrypt-winservicemgr/ProviderItem.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace dnscrypt_winservicemgr
6 | {
7 | class ProviderItem
8 | {
9 |
10 | private String name = "";
11 | private String fullName = "";
12 | private String description = "";
13 | private String location = "";
14 | private String coordinates = "";
15 | private String url = "";
16 | private String version = "";
17 | private String dnssec = "";
18 | private String nologs = "";
19 | private String namecoin = "";
20 | private String address = "";
21 | private String providerName = "";
22 | private String providerPublicKey = "";
23 | private String providerPublicKeyTxt = "";
24 | public Boolean isEmpty = true;
25 |
26 | public String getName()
27 | {
28 | return name;
29 | }
30 | public String getFullName()
31 | {
32 | return fullName;
33 | }
34 |
35 | public String getDescription()
36 | {
37 | return description;
38 | }
39 |
40 | public String getLocation()
41 | {
42 | return location;
43 | }
44 |
45 | public String getCoordinates()
46 | {
47 | return coordinates;
48 | }
49 |
50 | public String getURL()
51 | {
52 | return url;
53 | }
54 |
55 | public String getVersion()
56 | {
57 | return version;
58 | }
59 |
60 | public String getDNSSEC()
61 | {
62 | return dnssec;
63 | }
64 |
65 | public String getNoLogs()
66 | {
67 | return nologs;
68 | }
69 |
70 | public String getNamecoin()
71 | {
72 | return namecoin;
73 | }
74 |
75 | public String getAddress()
76 | {
77 | return address;
78 | }
79 |
80 | public String getProviderName()
81 | {
82 | return providerName;
83 | }
84 |
85 | public String getPublicKey()
86 | {
87 | return providerPublicKey;
88 | }
89 |
90 | public String getPublicKeyTXT()
91 | {
92 | return providerPublicKeyTxt;
93 | }
94 |
95 | public Boolean setName(String name)
96 | {
97 | this.name = name;
98 | this.isEmpty = false;
99 | return true;
100 | }
101 | public Boolean setFullName(String fullName)
102 | {
103 | this.fullName = fullName;
104 | this.isEmpty = false;
105 | return true;
106 | }
107 |
108 | public Boolean setDescription(String description)
109 | {
110 | this.description = description;
111 | this.isEmpty = false;
112 | return true;
113 | }
114 |
115 | public Boolean setLocation(String location)
116 | {
117 | this.location = location;
118 | this.isEmpty = false;
119 | return true;
120 | }
121 |
122 | public Boolean setCoordinates(String coordinates)
123 | {
124 | this.coordinates = coordinates;
125 | this.isEmpty = false;
126 | return true;
127 | }
128 |
129 | public Boolean setURL(String url)
130 | {
131 | this.url = url;
132 | this.isEmpty = false;
133 | return true;
134 | }
135 |
136 | public Boolean setVersion(String version)
137 | {
138 | this.version = version;
139 | this.isEmpty = false;
140 | return true;
141 | }
142 |
143 | public Boolean setDNSSEC(String dnssec)
144 | {
145 | this.dnssec = dnssec;
146 | this.isEmpty = false;
147 | return true;
148 | }
149 |
150 | public Boolean setNoLogs(String nologs)
151 | {
152 | this.nologs = nologs;
153 | this.isEmpty = false;
154 | return true;
155 | }
156 |
157 | public Boolean setNamecoin(String namecoin)
158 | {
159 | this.namecoin = namecoin;
160 | this.isEmpty = false;
161 | return true;
162 | }
163 |
164 | public Boolean setAddress(String address)
165 | {
166 | this.address = address;
167 | this.isEmpty = false;
168 | return true;
169 | }
170 |
171 | public Boolean setProviderName(String providerName)
172 | {
173 | this.providerName = providerName;
174 | this.isEmpty = false;
175 | return true;
176 | }
177 |
178 | public Boolean setPublicKey(String providerPublicKey)
179 | {
180 | this.providerPublicKey = providerPublicKey;
181 | this.isEmpty = false;
182 | return true;
183 | }
184 |
185 | public Boolean setPublicKeyTXT(String providerPublicKeyTxt)
186 | {
187 | this.providerPublicKeyTxt = providerPublicKeyTxt;
188 | return true;
189 | }
190 |
191 | public String toString()
192 | {
193 | return "ProviderItem: " + name + " " + address + " " + providerName + " " + providerPublicKey;
194 | }
195 | }
196 | }
197 |
--------------------------------------------------------------------------------
/dnscrypt-winservicemgr/Properties/Resources.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 | text/microsoft-resx
107 |
108 |
109 | 2.0
110 |
111 |
112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
113 |
114 |
115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
--------------------------------------------------------------------------------
/dnscrypt-winservicemgr/AppForm.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
--------------------------------------------------------------------------------
/DNSCrypt Windows Service Manager Package/dnscrypt-resolvers.csv:
--------------------------------------------------------------------------------
1 | Name,Full name,Description,Location,Coordinates,URL,Version,DNSSEC validation,No logs,Namecoin,Resolver address,Provider name,Provider public key,Provider public key TXT record
2 | cloudns-can,CloudNS Canberra,"CloudNS is an Australian based security focused DNS provider.","Canberra, AU",,https://cloudns.com.au,1.0,yes,yes,yes,113.20.6.2:443,2.dnscrypt-cert.cloudns.com.au,1971:7C1A:C550:6C09:F09B:ACB1:1AF7:C349:6425:2676:247F:B738:1C5A:243A:C1CC:89F4,
3 | cloudns-syd,CloudNS Sydney,"CloudNS is an Australian based security focused DNS provider.","Sydney, AU",,https://cloudns.com.au,1.0,yes,yes,yes,113.20.8.17:443,2.dnscrypt-cert-2.cloudns.com.au,67A4:323E:581F:79B9:BC54:825F:54FE:1025:8B4F:37EB:0D07:0BCE:4010:6195:D94F:E330,
4 | d0wn-fr-ns1,First d0wn server in France,"Server provided by Martin 'd0wn' Albus",France,,https://dns.d0wn.biz,1.0,no,yes,no,188.165.25.65:54,2.dnscrypt-cert.d0wn.biz,F64D:AECA:A8AA:E31D:3896:8A93:1D96:EB54:9D70:CE57:A439:58B0:7685:6960:044B:EA62,
5 | d0wn-fr-ns2,Second d0wn server in France,"Server provided by Martin 'd0wn' Albus",France,,https://dns.d0wn.biz,1.0,no,yes,no,37.187.0.40:54,2.dnscrypt-cert.d0wn.biz,F64D:AECA:A8AA:E31D:3896:8A93:1D96:EB54:9D70:CE57:A439:58B0:7685:6960:044B:EA62,
6 | d0wn-im-ns1,d0wn server in Isle of Man,"Server provided by Martin 'd0wn' Albus",Isle of Man,,https://dns.d0wn.biz,1.0,no,yes,no,37.235.55.197:54,2.dnscrypt-cert.d0wn.biz,F64D:AECA:A8AA:E31D:3896:8A93:1D96:EB54:9D70:CE57:A439:58B0:7685:6960:044B:EA62,
7 | d0wn-li-ns1,d0wn server in Lichtenstein,"Server provided by Martin 'd0wn' Albus",Lichtenstein,,https://dns.d0wn.biz,1.0,no,yes,no,88.82.108.30:54,2.dnscrypt-cert.d0wn.biz,F64D:AECA:A8AA:E31D:3896:8A93:1D96:EB54:9D70:CE57:A439:58B0:7685:6960:044B:EA62,
8 | d0wn-nl-ns1,First d0wn server in Netherlands,"Server provided by Martin 'd0wn' Albus",Netherlands,,https://dns.d0wn.biz,1.0,no,yes,no,95.85.9.86:54,2.dnscrypt-cert.d0wn.biz,F64D:AECA:A8AA:E31D:3896:8A93:1D96:EB54:9D70:CE57:A439:58B0:7685:6960:044B:EA62,
9 | d0wn-nl-ns2,Second d0wn server in Netherlands,"Server provided by Martin 'd0wn' Albus",Netherlands,,https://dns.d0wn.biz,1.0,no,yes,no,31.220.27.46:54,2.dnscrypt-cert.d0wn.biz,F64D:AECA:A8AA:E31D:3896:8A93:1D96:EB54:9D70:CE57:A439:58B0:7685:6960:044B:EA62,
10 | d0wn-ro-ns1,First d0wn server in Romania,"Server provided by Martin 'd0wn' Albus",Romania,,https://dns.d0wn.biz,1.0,no,yes,no,89.46.222.115:54,2.dnscrypt-cert.d0wn.biz,F64D:AECA:A8AA:E31D:3896:8A93:1D96:EB54:9D70:CE57:A439:58B0:7685:6960:044B:EA62,
11 | d0wn-ro-ns2,Second d0wn server in Romania,"Server provided by Martin 'd0wn' Albus",Romania,,https://dns.d0wn.biz,1.0,no,yes,no,89.46.222.116:54,2.dnscrypt-cert.d0wn.biz,F64D:AECA:A8AA:E31D:3896:8A93:1D96:EB54:9D70:CE57:A439:58B0:7685:6960:044B:EA62,
12 | d0wn-sg-ns1,d0wn server in Singapore,"Server provided by Martin 'd0wn' Albus",Singapore,,https://dns.d0wn.biz,1.0,no,yes,no,128.199.248.105:54,2.dnscrypt-cert.d0wn.biz,F64D:AECA:A8AA:E31D:3896:8A93:1D96:EB54:9D70:CE57:A439:58B0:7685:6960:044B:EA62,
13 | d0wn-au-ns1,d0wn server in Australia,"Server provided by Martin 'd0wn' Albus",Singapore,,https://dns.d0wn.biz,1.0,no,yes,no,103.25.56.172:54,2.dnscrypt-cert.d0wn.biz,F64D:AECA:A8AA:E31D:3896:8A93:1D96:EB54:9D70:CE57:A439:58B0:7685:6960:044B:EA62,
14 | d0wn-ch-ns1,d0wn server in Switzerland,"Server provided by Martin 'd0wn' Albus",Singapore,,https://dns.d0wn.biz,1.0,no,yes,no,176.10.127.43:54,2.dnscrypt-cert.d0wn.biz,F64D:AECA:A8AA:E31D:3896:8A93:1D96:EB54:9D70:CE57:A439:58B0:7685:6960:044B:EA62,
15 | dnscrypt.eu-dk,DNSCrypt.eu Denmark,"Free, non-logged, uncensored. Hosted by Netgroup.",Denmark,,https://dnscrypt.eu,1.0,yes,yes,no,77.66.84.233:443,2.dnscrypt-cert.resolver2.dnscrypt.eu,3748:5585:E3B9:D088:FD25:AD36:B037:01F5:520C:D648:9E9A:DD52:1457:4955:9F0A:9955,pubkey.resolver2.dnscrypt.eu
16 | dnscrypt.eu-dk-ipv6,DNSCrypt.eu Denmark over IPv6,"Free, non-logged, uncensored. Hosted by Netgroup.",Denmark,,https://dnscrypt.eu,1.0,yes,yes,no,[2001:1448:243::dc2]:443,2.dnscrypt-cert.resolver2.dnscrypt.eu,3748:5585:E3B9:D088:FD25:AD36:B037:01F5:520C:D648:9E9A:DD52:1457:4955:9F0A:9955,pubkey.resolver2.dnscrypt.eu
17 | dnscrypt.eu-nl,DNSCrypt.eu Holland,"Free, non-logged, uncensored. Hosted by RamNode.",Netherlands,,https://dnscrypt.eu,1.0,yes,yes,no,176.56.237.171:443,2.dnscrypt-cert.resolver1.dnscrypt.eu,67C0:0F2C:21C5:5481:45DD:7CB4:6A27:1AF2:EB96:9931:40A3:09B6:2B8D:1653:1185:9C66,pubkey.resolver1.dnscrypt.eu
18 | dnscrypt.eu-nl-ipv6,DNSCrypt.eu Holland over IPv6,"Free, non-logged, uncensored. Hosted by RamNode.",Netherlands,,https://dnscrypt.eu,1.0,yes,yes,no,[2a00:d880:3:1::a6c1:2e89]:443,2.dnscrypt-cert.resolver1.dnscrypt.eu,67C0:0F2C:21C5:5481:45DD:7CB4:6A27:1AF2:EB96:9931:40A3:09B6:2B8D:1653:1185:9C66,pubkey.resolver1.dnscrypt.eu
19 | okturtles,okTurtles,For a surveillance-free world. HTTPS is broken. DNSChain fixes it.,"Georgia, US","33.032501, -83.895699",http://okturtles.com/,1.0,no,yes,yes,23.226.227.93:443,2.dnscrypt-cert.okturtles.com,1D85:3953:E34F:AFD0:05F9:4C6F:D1CC:E635:D411:9904:0D48:D19A:5D35:0B6A:7C81:73CB,
20 | opendns,OpenDNS,The world’s largest internet security network,Anycast,,http://www.opendns.com,1.0,no,no,no,208.67.220.220:443,2.dnscrypt-cert.opendns.com,B735:1140:206F:225D:3E2B:D822:D7FD:691E:A1C3:3CC8:D666:8D0C:BE04:BFAB:CA43:FB79,
21 | opendns-port53,OpenDNS backward compatibility port 53,The world’s largest internet security network,Anycast,,http://www.opendns.com,1.0,no,no,no,208.67.220.220:53,2.dnscrypt-cert.opendns.com,B735:1140:206F:225D:3E2B:D822:D7FD:691E:A1C3:3CC8:D666:8D0C:BE04:BFAB:CA43:FB79,
22 | opendns-familyshield,OpenDNS with FamilyShield,Blocks web sites not suitable for children,Anycast,,http://www.opendns.com/home-internet-security/parental-controls/,1.0,no,no,no,208.67.220.123:443,2.dnscrypt-cert.opendns.com,B735:1140:206F:225D:3E2B:D822:D7FD:691E:A1C3:3CC8:D666:8D0C:BE04:BFAB:CA43:FB79,
23 | opendns-ipv6,OpenDNS over IPv6,OpenDNS IPv6 sandbox,Anycast,,http://www.opendns.com/about/innovations/ipv6/,1.0,no,no,no,[2620:0:ccc::2]:443,2.dnscrypt-cert.opendns.com,B735:1140:206F:225D:3E2B:D822:D7FD:691E:A1C3:3CC8:D666:8D0C:BE04:BFAB:CA43:FB79,
24 | opennic-ca-ns3,OpenNIC server ns3.ca,"OpenNIC server in Canada provided by NovaKing",Canada,,http://www.opennicproject.org,1.0,no,yes,no,142.4.204.111:443,2.dnscrypt-cert.ns3.ca.dns.opennic.glue,1C19:7933:1BE8:23CC:CF08:9A79:0693:7E5C:3410:2A56:AC7F:6270:E046:25B2:EDDB:04E3,
25 | opennic-ca-ns3-ipv6,OpenNIC server ns3.ca over IPv6,"OpenNIC server in Canada provided by NovaKing",Canada,,http://www.opennicproject.org,1.0,no,yes,no,[2607:5300:60:47aa:142:4:204:111]:443,2.dnscrypt-cert.ns3.ca.dns.opennic.glue,1C19:7933:1BE8:23CC:CF08:9A79:0693:7E5C:3410:2A56:AC7F:6270:E046:25B2:EDDB:04E3,
26 | opennic-ca-ns4,OpenNIC server ns4.ca,"OpenNIC server in Canada provided by NovaKing",Canada,,http://www.opennicproject.org,1.0,no,yes,no,142.4.205.47:443,2.dnscrypt-cert.ns4.ca.dns.opennic.glue,12FA:EC04:3489:B374:B973:CA7C:827F:D7FA:033F:D280:8641:F2F1:430A:E5DC:6068:42B8,
27 | opennic-ca-ns4-ipv6,OpenNIC server ns4.ca over IPv6,"OpenNIC server in Canada provided by NovaKing",Canada,,http://www.opennicproject.org,1.0,no,yes,no,[2607:5300:60:47aa:142:4:205:47]:443,2.dnscrypt-cert.ns4.ca.dns.opennic.glue,12FA:EC04:3489:B374:B973:CA7C:827F:D7FA:033F:D280:8641:F2F1:430A:E5DC:6068:42B8,
28 | opennic-jp-ns2,OpenNIC server ns2.jp,"OpenNIC server in Japan provided by Guillaume Parent",Japan,,http://www.opennicproject.org,1.0,no,yes,no,106.186.17.181:2053,2.dnscrypt-cert.ns2.jp.dns.opennic.glue,8768:C3DB:F70A:FBC6:3B64:8630:8167:2FD4:EE6F:E175:ECFD:46C9:22FC:7674:A1AC:2E2A,
29 | opennic-jp-ns3-ipv6,OpenNIC server ns3.jp over IPv6,"OpenNIC server in Japan provided by Guillaume Parent",Japan,,http://www.opennicproject.org,1.0,no,yes,no,[2400:8900::f03c:91ff:fe70:c452]:2053,2.dnscrypt-cert.ns2.jp.dns.opennic.glue,8768:C3DB:F70A:FBC6:3B64:8630:8167:2FD4:EE6F:E175:ECFD:46C9:22FC:7674:A1AC:2E2A,
30 | opennic-proxy.sh-dns1,Proxy.sh Public OpenNIC One,OpenNIC server in Netherlands provided by Proxy.sh,Netherlands,,https://proxy.sh,1.0,no,yes,no,146.185.134.104:54,2.nscrypt-cert.proxy.sh,937B:991C:E853:EDD6:FEC5:8F88:DF78:B27E:2FAA:452B:5BBB:C05F:D0B9:DC24:DC7C:D5F3,
31 | opennic-uk-ns10,OpenNIC server ns10.uk,"OpenNIC server in UK provided by NovaKing",UK,,http://www.opennicproject.org,1.0,no,yes,no,185.19.105.14:443,2.dnscrypt-cert.ns10.uk.dns.opennic.glue,B1AB:7025:1119:9AEE:E42E:1B12:F2EF:12D4:53D9:CD92:E07B:9AF4:4794:F6EB:E5A4:F725,
32 | opennic-uk-ns10-ipv6,OpenNIC server ns10.uk over IPv6,"OpenNIC server in UK provided by NovaKing",UK,,http://www.opennicproject.org,1.0,no,yes,no,[2a04:1400:1337:2000::14]:443,2.dnscrypt-cert.ns10.uk.dns.opennic.glue,B1AB:7025:1119:9AEE:E42E:1B12:F2EF:12D4:53D9:CD92:E07B:9AF4:4794:F6EB:E5A4:F725,
33 | opennic-uk-ns8,OpenNIC server ns8.uk,"OpenNIC server in UK provided by NovaKing",UK,,http://www.opennicproject.org,1.0,no,yes,no,185.19.104.45:443,2.dnscrypt-cert.ns8.uk.dns.opennic.glue,A17C:06FC:BA21:F2AC:F4CD:9374:016A:684F:4F56:564A:EB30:A422:3D9D:1580:A461:B6A6,
34 | opennic-uk-ns8-ipv6,OpenNIC server ns8.uk over IPv6,"OpenNIC server in UK provided by NovaKing",UK,,http://www.opennicproject.org,1.0,no,yes,no,[2a04:1400:1337:1534::45]:443,2.dnscrypt-cert.ns8.uk.dns.opennic.glue,A17C:06FC:BA21:F2AC:F4CD:9374:016A:684F:4F56:564A:EB30:A422:3D9D:1580:A461:B6A6,
35 | opennic-uk-ns9,OpenNIC server ns9.uk,"OpenNIC server in UK provided by NovaKing",UK,,http://www.opennicproject.org,1.0,no,yes,no,185.19.105.6:443,2.dnscrypt-cert.ns9.uk.dns.opennic.glue,E864:80D9:DFBD:9DB4:58EA:8063:292F:EC41:9126:8394:BC44:FAB8:4B6E:B104:8C3B:E0B4,
36 | opennic-uk-ns9-ipv6,OpenNIC server ns9.uk over IPv6,"OpenNIC server in UK provided by NovaKing",UK,,http://www.opennicproject.org,1.0,no,yes,no,[2a04:1400:1337:2000::6]:443,2.dnscrypt-cert.ns9.uk.dns.opennic.glue,E864:80D9:DFBD:9DB4:58EA:8063:292F:EC41:9126:8394:BC44:FAB8:4B6E:B104:8C3B:E0B4,
37 | opennic-us-ca-ns17,OpenNIC server ns17.ca.us,"OpenNIC server in California provided by Philip Southam","Fremont, CA, US",,http://www.opennicproject.org,1.0,no,yes,no,173.230.156.28:443,2.dnscrypt-cert.ns17.ca.us.dns.opennic.glue,2342:215C:409A:85A5:FB63:2A3B:42CD:5089:6BA8:551A:8BDC:2654:CF57:804F:B1B2:5019,
38 | opennic-us-ca-ns17-ipv6,OpenNIC server ns17.ca.us over IPv6,"OpenNIC server in California provided by Philip Southam","Fremont, CA, US",,http://www.opennicproject.org,1.0,no,yes,no,[2600:3c01::f03c:91ff:fe6e:1f6b]:443,2.dnscrypt-cert.ns17.ca.us.dns.opennic.glue,2342:215C:409A:85A5:FB63:2A3B:42CD:5089:6BA8:551A:8BDC:2654:CF57:804F:B1B2:5019,
39 | soltysiak,Soltysiak,Public DNSCrypt server in Poland,Poland,"52.4014619, 16.9278078",http://dc1.soltysiak.com/,1.0,yes,yes,yes,178.216.201.222:2053,2.dnscrypt-cert.soltysiak.com,25C4:E188:2915:4697:8F9C:2BBD:B6A7:AFA4:01ED:A051:0508:5D53:03E7:1928:C066:8F21,pubkey.dc1.soltysiak.com
40 |
--------------------------------------------------------------------------------
/dnscrypt-winservicemgr/AppForm.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Data;
5 | using System.Drawing;
6 | using System.Text;
7 | using System.Windows.Forms;
8 | using System.Diagnostics;
9 | using System.IO;
10 | using System.Net;
11 | using System.Net.NetworkInformation;
12 | using System.Runtime.InteropServices;
13 | using Microsoft.Win32;
14 | using System.ServiceProcess;
15 | using System.Management;
16 |
17 | namespace dnscrypt_winservicemgr
18 | {
19 | public partial class ApplicationWindow : Form
20 | {
21 | private Boolean serviceConfigured = false;
22 |
23 | // Handle the dnscrypt-proxy process
24 | private ProcessStartInfo cryptProc = null;
25 | private Process cryptHandle = null;
26 |
27 | // Load the provider manager
28 | ProviderMgr providerMgr = new ProviderMgr();
29 |
30 | // Keep track of current selected provider name
31 | private String name = "";
32 |
33 | private static readonly Random random = new Random();
34 |
35 | public ApplicationWindow()
36 | {
37 | InitializeComponent();
38 | refreshNICList(false);
39 | this.providerSelect.SelectedIndex = 0;
40 | checkStatus();
41 | UpdateChecker.checkVersion();
42 | }
43 |
44 |
45 |
46 | private void checkStatus()
47 | {
48 | // Check registry for dnscrypt service
49 | object dnsCryptReg = Registry.GetValue("HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\dnscrypt-proxy", "DisplayName", "");
50 | if (dnsCryptReg != null)
51 | {
52 | this.serviceConfigured = true;
53 | this.button.Text = "Disable";
54 | this.button.Enabled = true;
55 | this.providerSelect.Enabled = false;
56 | this.protoTCP.Enabled = false;
57 | this.protoUDP.Enabled = false;
58 | this.statusLabel.ForeColor = Color.Green;
59 | this.statusLabel.Text = "Enabled";
60 | }
61 | else
62 | {
63 | this.serviceConfigured = false;
64 | this.button.Text = "Enable";
65 | this.button.Enabled = true;
66 | this.providerSelect.Enabled = true;
67 | this.protoTCP.Enabled = true;
68 | this.protoUDP.Enabled = true;
69 | this.statusLabel.ForeColor = Color.DarkRed;
70 | this.statusLabel.Text = "Disabled";
71 | }
72 | }
73 |
74 | private void refreshNICList(Boolean showHidden)
75 | {
76 | NetworkInterface[] nics = NetworkInterface.GetAllNetworkInterfaces();
77 | foreach (NetworkInterface adapter in nics)
78 | {
79 | IPInterfaceProperties adapterProperties = adapter.GetIPProperties();
80 |
81 | NetworkListItem item = new NetworkListItem(adapter.Name, adapter.Description, adapter.Id, adapter.Supports(NetworkInterfaceComponent.IPv4), adapter.Supports(NetworkInterfaceComponent.IPv6));
82 | if (!item.getHidden() || showHidden)
83 | {
84 | List dnsList = new List();
85 |
86 | object dnsResult = Registry.GetValue("HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters\\Interfaces\\" + item.getID(), "NameServer", "");
87 | if (dnsResult != null && dnsResult.ToString().Length > 0)
88 | {
89 | dnsList = new List(((string)dnsResult).Split(new string[] { "," }, System.StringSplitOptions.None));
90 | }
91 |
92 | if (dnsList.Count != 0 && dnsList[0] == "127.0.0.1")
93 | {
94 | DNSlistbox.Items.Add(item, true);
95 | }
96 | else
97 | {
98 | DNSlistbox.Items.Add(item);
99 | }
100 | }
101 | }
102 | }
103 |
104 | private void DNSlisbox_itemcheck_statechanged(object sender, ItemCheckEventArgs e)
105 | {
106 | try
107 | {
108 | if (e.CurrentValue == CheckState.Checked)
109 | {
110 |
111 | setDNS(((NetworkListItem)DNSlistbox.Items[e.Index]).getDescription(), true);
112 | }
113 | else //Set it to loopback for DNSCrypt
114 | {
115 | setDNS(((NetworkListItem)DNSlistbox.Items[e.Index]).getDescription(), false);
116 | }
117 | }
118 | catch (Exception exception)
119 | {
120 | MessageBox.Show("There was an error editing the Network Adapter settings: " + exception.Message);
121 | }
122 | }
123 |
124 | public void setDNS(string nicDescription, bool setAuto)
125 | {
126 | ManagementClass NetworkConfig = new ManagementClass("Win32_NetworkAdapterConfiguration");
127 | ManagementObjectCollection NICcollection = NetworkConfig.GetInstances();
128 |
129 | foreach (ManagementObject NICconfig in NICcollection)
130 | {
131 | if ((bool)NICconfig["IPEnabled"])
132 | {
133 | ManagementBaseObject DNSconfig = NICconfig.GetMethodParameters("SetDNSServerSearchOrder");
134 |
135 | if (setAuto)
136 | {
137 | if (NICconfig["Description"].Equals(nicDescription))
138 | {
139 | if (DNSconfig != null)
140 | {
141 | DNSconfig["DNSServerSearchOrder"] = null;
142 | }
143 | }
144 | }
145 | else
146 | {
147 | if (NICconfig["Description"].Equals(nicDescription))
148 | {
149 | string[] dnsArray = new String[1] {"127.0.0.1"};
150 |
151 | DNSconfig["DNSServerSearchOrder"] = dnsArray;
152 | }
153 | }
154 |
155 | NICconfig.InvokeMethod( "SetDNSServerSearchOrder", DNSconfig, null);
156 | }
157 | }
158 | }
159 |
160 | private void hideAdaptersCheckbox_CheckedChanged(object sender, EventArgs e)
161 | {
162 | this.DNSlistbox.Items.Clear();
163 | this.refreshNICList(this.hideAdaptersCheckbox.Checked);
164 | }
165 |
166 | private void button_Click(object sender, EventArgs e)
167 | {
168 | // Make sure the file exists before trying to launch it
169 | if (!File.Exists(Directory.GetCurrentDirectory() + "\\dnscrypt-proxy.exe"))
170 | {
171 | MessageBox.Show("dnscrypt-proxy.exe was not found. It should be placed in the same directory as this program. If you do not have this file, you can download it from http://dnscrypt.org", "File not found");
172 | return;
173 | }
174 |
175 | this.cryptProc = new ProcessStartInfo();
176 | this.cryptProc.FileName = "dnscrypt-proxy.exe";
177 | this.cryptProc.WindowStyle = ProcessWindowStyle.Minimized;
178 |
179 | if (serviceConfigured)
180 | {
181 | // Stop running DNSCrypt service
182 | ServiceMgr serviceMgr = new ServiceMgr();
183 | ServiceMgr.stopService("dnscrypt-proxy", 1000);
184 |
185 | // Remove service (run dnscrypt-proxy --uninstall)
186 | this.cryptProc.Arguments = " --uninstall";
187 | this.statusLabel.Text = "Uninstalling";
188 |
189 | // "dnscrypt-proxy.exe --uninstall" takes care of removing everything from registry. We don't need to do anything there.
190 | }
191 | else
192 | {
193 | // Install service (run dnscrypt-proxy --install)
194 | this.cryptProc.Arguments = " -R \"" + this.name + "\" -L \"" + Directory.GetCurrentDirectory() + "\\dnscrypt-resolvers.csv\" --install";
195 | this.statusLabel.Text = "Installing";
196 |
197 | if (this.protoTCP.Checked)
198 | {
199 | Registry.SetValue("HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\dnscrypt-proxy\\Parameters", "TCPOnly", "1", RegistryValueKind.DWord);
200 | }
201 | }
202 |
203 | // Update visuals
204 | this.button.Enabled = false;
205 | this.statusLabel.ForeColor = Color.DarkOrange;
206 |
207 | // Run dnscrypt-proxy
208 | this.cryptHandle = Process.Start(this.cryptProc);
209 |
210 | // Wait for a second
211 | DateTime Tthen = DateTime.Now;
212 | do
213 | {
214 | Application.DoEvents();
215 | }
216 |
217 | while (Tthen.AddSeconds(1) > DateTime.Now);
218 |
219 | // Doublecheck that dnscrypt-proxy actually removed the service, if trying to remove the serice
220 | object dnsCryptReg = Registry.GetValue("HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\dnscrypt-proxy", "DisplayName", "");
221 | if (dnsCryptReg != null && serviceConfigured)
222 | {
223 | MessageBox.Show("It was not possible to disable the DNSCrypt system service.", "Error");
224 | }
225 |
226 | // Doublecheck that dnscrypt-proxy actually installed the service, if trying to install the serice
227 | if (dnsCryptReg == null && !serviceConfigured)
228 | {
229 | MessageBox.Show("It was not possible to enable the DNSCrypt system service. Make sure this program is running with Administrator privileges.", "Error");
230 | }
231 |
232 | // Update UI and status
233 | this.checkStatus();
234 | }
235 |
236 | private void providerSelect_SelectedIndexChanged(object sender, EventArgs e)
237 | {
238 | List providerItems = new List();
239 | providerItems = providerMgr.getProvider(providerSelect.SelectedItem.ToString());
240 |
241 | if (!providerItems[0].isEmpty)
242 | {
243 | this.name = providerItems[0].getName();
244 | }
245 | }
246 | }
247 | }
--------------------------------------------------------------------------------
/dnscrypt-winservicemgr/AppForm.Designer.cs:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms;
2 | namespace dnscrypt_winservicemgr
3 | {
4 | partial class ApplicationWindow
5 | {
6 | ///
7 | /// Required designer variable.
8 | ///
9 | private System.ComponentModel.IContainer components = null;
10 |
11 | ///
12 | /// Clean up any resources being used.
13 | ///
14 | /// true if managed resources should be disposed; otherwise, false.
15 | protected override void Dispose(bool disposing)
16 | {
17 | if (disposing && (components != null))
18 | {
19 | components.Dispose();
20 | }
21 | base.Dispose(disposing);
22 | }
23 |
24 | #region Windows Form Designer generated code
25 |
26 | ///
27 | /// Required method for Designer support - do not modify
28 | /// the contents of this method with the code editor.
29 | ///
30 | private void InitializeComponent()
31 | {
32 | this.button = new System.Windows.Forms.Button();
33 | this.providerSelect = new System.Windows.Forms.ComboBox();
34 | this.groupBox2 = new System.Windows.Forms.GroupBox();
35 | this.label1 = new System.Windows.Forms.Label();
36 | this.hideAdaptersCheckbox = new System.Windows.Forms.CheckBox();
37 | this.label2 = new System.Windows.Forms.Label();
38 | this.DNSlistbox = new System.Windows.Forms.CheckedListBox();
39 | this.protoUDP = new System.Windows.Forms.RadioButton();
40 | this.protoTCP = new System.Windows.Forms.RadioButton();
41 | this.groupBox1 = new System.Windows.Forms.GroupBox();
42 | this.label3 = new System.Windows.Forms.Label();
43 | this.statusLabel = new System.Windows.Forms.Label();
44 | this.groupBox3 = new System.Windows.Forms.GroupBox();
45 | this.groupBox2.SuspendLayout();
46 | this.groupBox1.SuspendLayout();
47 | this.groupBox3.SuspendLayout();
48 | this.SuspendLayout();
49 | //
50 | // button
51 | //
52 | this.button.Location = new System.Drawing.Point(83, 51);
53 | this.button.Name = "button";
54 | this.button.Size = new System.Drawing.Size(75, 23);
55 | this.button.TabIndex = 0;
56 | this.button.Text = "Enable";
57 | this.button.UseVisualStyleBackColor = true;
58 | this.button.Click += new System.EventHandler(this.button_Click);
59 | //
60 | // providerSelect
61 | //
62 | this.providerSelect.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
63 | this.providerSelect.FormattingEnabled = true;
64 | /*this.providerSelect.Items.AddRange(new object[] {
65 | "CloudNS (no logs, DNSSEC, AUS)",
66 | "DNSCrypt.eu (no logs, DNSSEC, EU)",
67 | "OpenDNS (Anycast)",
68 | "OpenNIC (no logs, JPN)",
69 | "OpenNIC (no logs, EU)",
70 | "Soltysiak.com (no logs, DNSSEC, EU)"});*/
71 | this.providerSelect.Items.AddRange(providerMgr.getFullNames());
72 | this.providerSelect.Location = new System.Drawing.Point(14, 19);
73 | this.providerSelect.Name = "providerSelect";
74 | this.providerSelect.Size = new System.Drawing.Size(206, 21);
75 | this.providerSelect.TabIndex = 2;
76 | this.providerSelect.SelectedIndexChanged += new System.EventHandler(this.providerSelect_SelectedIndexChanged);
77 | //
78 | // groupBox2
79 | //
80 | this.groupBox2.Controls.Add(this.providerSelect);
81 | this.groupBox2.Controls.Add(this.button);
82 | this.groupBox2.Location = new System.Drawing.Point(13, 113);
83 | this.groupBox2.Name = "groupBox2";
84 | this.groupBox2.Size = new System.Drawing.Size(234, 86);
85 | this.groupBox2.TabIndex = 3;
86 | this.groupBox2.TabStop = false;
87 | this.groupBox2.Text = "Select Provider";
88 | //
89 | // label1
90 | //
91 | this.label1.AutoSize = true;
92 | this.label1.Location = new System.Drawing.Point(93, 293);
93 | this.label1.Name = "label1";
94 | this.label1.Size = new System.Drawing.Size(215, 26);
95 | this.label1.TabIndex = 4;
96 | this.label1.Text = "DNSCrypt Windows Service Manager v0.2 \nby Simon Clausen (https://simonclausen.dk)" +
97 | "";
98 | this.label1.TextAlign = System.Drawing.ContentAlignment.TopCenter;
99 | //
100 | // hideAdaptersCheckbox
101 | //
102 | this.hideAdaptersCheckbox.AutoSize = true;
103 | this.hideAdaptersCheckbox.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
104 | this.hideAdaptersCheckbox.Location = new System.Drawing.Point(247, 90);
105 | this.hideAdaptersCheckbox.Name = "hideAdaptersCheckbox";
106 | this.hideAdaptersCheckbox.Size = new System.Drawing.Size(132, 17);
107 | this.hideAdaptersCheckbox.TabIndex = 14;
108 | this.hideAdaptersCheckbox.Text = "Show hidden adapters";
109 | this.hideAdaptersCheckbox.UseVisualStyleBackColor = true;
110 | this.hideAdaptersCheckbox.CheckedChanged += new System.EventHandler(this.hideAdaptersCheckbox_CheckedChanged);
111 | //
112 | // label2
113 | //
114 | this.label2.AutoSize = true;
115 | this.label2.Location = new System.Drawing.Point(9, 4);
116 | this.label2.Name = "label2";
117 | this.label2.Size = new System.Drawing.Size(225, 13);
118 | this.label2.TabIndex = 13;
119 | this.label2.Text = "Select network devices for use with DNSCrypt";
120 | //
121 | // DNSlistbox
122 | //
123 | this.DNSlistbox.CheckOnClick = true;
124 | this.DNSlistbox.FormattingEnabled = true;
125 | this.DNSlistbox.HorizontalScrollbar = true;
126 | this.DNSlistbox.Location = new System.Drawing.Point(12, 22);
127 | this.DNSlistbox.Name = "DNSlistbox";
128 | this.DNSlistbox.Size = new System.Drawing.Size(366, 64);
129 | this.DNSlistbox.TabIndex = 12;
130 | this.DNSlistbox.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.DNSlisbox_itemcheck_statechanged);
131 | //
132 | // protoUDP
133 | //
134 | this.protoUDP.AutoSize = true;
135 | this.protoUDP.Checked = true;
136 | this.protoUDP.Location = new System.Drawing.Point(14, 14);
137 | this.protoUDP.Name = "protoUDP";
138 | this.protoUDP.Size = new System.Drawing.Size(48, 17);
139 | this.protoUDP.TabIndex = 12;
140 | this.protoUDP.TabStop = true;
141 | this.protoUDP.Text = "UDP";
142 | this.protoUDP.UseVisualStyleBackColor = true;
143 | //
144 | // protoTCP
145 | //
146 | this.protoTCP.AutoSize = true;
147 | this.protoTCP.Location = new System.Drawing.Point(70, 14);
148 | this.protoTCP.Name = "protoTCP";
149 | this.protoTCP.Size = new System.Drawing.Size(46, 17);
150 | this.protoTCP.TabIndex = 13;
151 | this.protoTCP.Text = "TCP";
152 | this.protoTCP.UseVisualStyleBackColor = true;
153 | //
154 | // groupBox1
155 | //
156 | this.groupBox1.Controls.Add(this.protoTCP);
157 | this.groupBox1.Controls.Add(this.protoUDP);
158 | this.groupBox1.Location = new System.Drawing.Point(257, 113);
159 | this.groupBox1.Name = "groupBox1";
160 | this.groupBox1.Size = new System.Drawing.Size(122, 40);
161 | this.groupBox1.TabIndex = 1;
162 | this.groupBox1.TabStop = false;
163 | this.groupBox1.Text = "Protocol";
164 | //
165 | // label3
166 | //
167 | this.label3.AutoSize = true;
168 | this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
169 | this.label3.Location = new System.Drawing.Point(42, 238);
170 | this.label3.Name = "label3";
171 | this.label3.Size = new System.Drawing.Size(207, 25);
172 | this.label3.TabIndex = 15;
173 | this.label3.Text = "DNSCrypt Service is";
174 | //
175 | // statusLabel
176 | //
177 | this.statusLabel.AutoSize = true;
178 | this.statusLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
179 | this.statusLabel.ForeColor = System.Drawing.Color.Green;
180 | this.statusLabel.Location = new System.Drawing.Point(235, 33);
181 | this.statusLabel.Name = "statusLabel";
182 | this.statusLabel.Size = new System.Drawing.Size(91, 25);
183 | this.statusLabel.TabIndex = 16;
184 | this.statusLabel.Text = "Enabled";
185 | //
186 | // groupBox3
187 | //
188 | this.groupBox3.Controls.Add(this.statusLabel);
189 | this.groupBox3.Location = new System.Drawing.Point(13, 205);
190 | this.groupBox3.Name = "groupBox3";
191 | this.groupBox3.Size = new System.Drawing.Size(366, 84);
192 | this.groupBox3.TabIndex = 17;
193 | this.groupBox3.TabStop = false;
194 | this.groupBox3.Text = "Status";
195 | //
196 | // ApplicationWindow
197 | //
198 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
199 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
200 | this.ClientSize = new System.Drawing.Size(394, 326);
201 | this.Controls.Add(this.label3);
202 | this.Controls.Add(this.hideAdaptersCheckbox);
203 | this.Controls.Add(this.label2);
204 | this.Controls.Add(this.DNSlistbox);
205 | this.Controls.Add(this.label1);
206 | this.Controls.Add(this.groupBox1);
207 | this.Controls.Add(this.groupBox2);
208 | this.Controls.Add(this.groupBox3);
209 | this.Name = "ApplicationWindow";
210 | this.Text = "DNSCrypt Windows Service Manager";
211 | this.groupBox2.ResumeLayout(false);
212 | this.groupBox1.ResumeLayout(false);
213 | this.groupBox1.PerformLayout();
214 | this.groupBox3.ResumeLayout(false);
215 | this.groupBox3.PerformLayout();
216 | this.ResumeLayout(false);
217 | this.PerformLayout();
218 |
219 | }
220 |
221 | #endregion
222 |
223 | private System.Windows.Forms.Button button;
224 | private System.Windows.Forms.ComboBox providerSelect;
225 | private System.Windows.Forms.GroupBox groupBox2;
226 | private System.Windows.Forms.Label label1;
227 | private System.Windows.Forms.CheckBox hideAdaptersCheckbox;
228 | private System.Windows.Forms.Label label2;
229 | private System.Windows.Forms.CheckedListBox DNSlistbox;
230 | private System.Windows.Forms.RadioButton protoUDP;
231 | private System.Windows.Forms.RadioButton protoTCP;
232 | private System.Windows.Forms.GroupBox groupBox1;
233 | private System.Windows.Forms.Label label3;
234 | private System.Windows.Forms.Label statusLabel;
235 | private System.Windows.Forms.GroupBox groupBox3;
236 | }
237 | }
238 |
239 |
--------------------------------------------------------------------------------