Skip to content
This repository was archived by the owner on Jun 29, 2023. It is now read-only.

Commit 89923e7

Browse files
Merge pull request #1 from InvisibleManVPN/invisibleman
Invisible Man VPN version 1.0
2 parents d2124a7 + d78c15a commit 89923e7

111 files changed

Lines changed: 34513 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Invisible Man.sln

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 2013
4+
VisualStudioVersion = 12.0.21005.1
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Invisible Man", "Invisible Man\Invisible Man.csproj", "{9407E02E-58DE-4454-B43A-DC789977CA13}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Debug|x64 = Debug|x64
12+
Debug|x86 = Debug|x86
13+
Release|Any CPU = Release|Any CPU
14+
Release|x64 = Release|x64
15+
Release|x86 = Release|x86
16+
EndGlobalSection
17+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
18+
{9407E02E-58DE-4454-B43A-DC789977CA13}.Debug|Any CPU.ActiveCfg = Release|Any CPU
19+
{9407E02E-58DE-4454-B43A-DC789977CA13}.Debug|Any CPU.Build.0 = Release|Any CPU
20+
{9407E02E-58DE-4454-B43A-DC789977CA13}.Debug|x64.ActiveCfg = Debug|x64
21+
{9407E02E-58DE-4454-B43A-DC789977CA13}.Debug|x64.Build.0 = Debug|x64
22+
{9407E02E-58DE-4454-B43A-DC789977CA13}.Debug|x86.ActiveCfg = Release|x86
23+
{9407E02E-58DE-4454-B43A-DC789977CA13}.Debug|x86.Build.0 = Release|x86
24+
{9407E02E-58DE-4454-B43A-DC789977CA13}.Release|Any CPU.ActiveCfg = Release|Any CPU
25+
{9407E02E-58DE-4454-B43A-DC789977CA13}.Release|Any CPU.Build.0 = Release|Any CPU
26+
{9407E02E-58DE-4454-B43A-DC789977CA13}.Release|x64.ActiveCfg = Release|x64
27+
{9407E02E-58DE-4454-B43A-DC789977CA13}.Release|x64.Build.0 = Release|x64
28+
{9407E02E-58DE-4454-B43A-DC789977CA13}.Release|x86.ActiveCfg = Release|x86
29+
{9407E02E-58DE-4454-B43A-DC789977CA13}.Release|x86.Build.0 = Release|x86
30+
EndGlobalSection
31+
GlobalSection(SolutionProperties) = preSolution
32+
HideSolutionNode = FALSE
33+
EndGlobalSection
34+
EndGlobal

Invisible Man/AboutWindow.xaml

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
<Window
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
xmlns:Controls="clr-namespace:Invisible_Man.UserControls"
5+
xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing" x:Class="Invisible_Man.AboutWindow"
6+
Title="Invisible Man - About" Height="450" Width="350" WindowStartupLocation="CenterOwner" ResizeMode="NoResize" Icon="IcoInvisibleMan.ico" ShowInTaskbar="False">
7+
<Window.Resources>
8+
<Storyboard x:Key="AnimStartup">
9+
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="grid">
10+
<EasingDoubleKeyFrame KeyTime="0" Value="-79"/>
11+
<EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="0">
12+
<EasingDoubleKeyFrame.EasingFunction>
13+
<PowerEase EasingMode="EaseOut"/>
14+
</EasingDoubleKeyFrame.EasingFunction>
15+
</EasingDoubleKeyFrame>
16+
</DoubleAnimationUsingKeyFrames>
17+
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="grid">
18+
<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
19+
<EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="1">
20+
<EasingDoubleKeyFrame.EasingFunction>
21+
<PowerEase EasingMode="EaseOut"/>
22+
</EasingDoubleKeyFrame.EasingFunction>
23+
</EasingDoubleKeyFrame>
24+
</DoubleAnimationUsingKeyFrames>
25+
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="StackPanelAbout">
26+
<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
27+
<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0"/>
28+
<EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="1">
29+
<EasingDoubleKeyFrame.EasingFunction>
30+
<BackEase EasingMode="EaseOut"/>
31+
</EasingDoubleKeyFrame.EasingFunction>
32+
</EasingDoubleKeyFrame>
33+
</DoubleAnimationUsingKeyFrames>
34+
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="StackPanelAbout">
35+
<EasingDoubleKeyFrame KeyTime="0" Value="-50"/>
36+
<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="-50"/>
37+
<EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="0">
38+
<EasingDoubleKeyFrame.EasingFunction>
39+
<BackEase EasingMode="EaseOut"/>
40+
</EasingDoubleKeyFrame.EasingFunction>
41+
</EasingDoubleKeyFrame>
42+
</DoubleAnimationUsingKeyFrames>
43+
</Storyboard>
44+
</Window.Resources>
45+
<Window.Background>
46+
<StaticResource ResourceKey="BackgroundGrayVeryLight"/>
47+
</Window.Background>
48+
<Window.Triggers>
49+
<EventTrigger RoutedEvent="FrameworkElement.Loaded">
50+
<BeginStoryboard Storyboard="{StaticResource AnimStartup}"/>
51+
</EventTrigger>
52+
</Window.Triggers>
53+
<Grid>
54+
<Grid.RowDefinitions>
55+
<RowDefinition Height="80"/>
56+
<RowDefinition Height="*"/>
57+
</Grid.RowDefinitions>
58+
<ScrollViewer x:Name="scrollViewer" Grid.Row="1" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Disabled" RenderTransformOrigin="0.5,0.5">
59+
<ScrollViewer.RenderTransform>
60+
<TransformGroup>
61+
<ScaleTransform/>
62+
<SkewTransform/>
63+
<RotateTransform/>
64+
<TranslateTransform/>
65+
</TransformGroup>
66+
</ScrollViewer.RenderTransform>
67+
<StackPanel x:Name="StackPanelAbout" Orientation="Vertical" RenderTransformOrigin="0.5,0.5">
68+
<StackPanel.RenderTransform>
69+
<TransformGroup>
70+
<ScaleTransform/>
71+
<SkewTransform/>
72+
<RotateTransform/>
73+
<TranslateTransform/>
74+
</TransformGroup>
75+
</StackPanel.RenderTransform>
76+
77+
<TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Padding="30 20 20 0" TextWrapping="Wrap" FontFamily="{StaticResource SegoeUI}" FontWeight="Light" LineHeight="25" FontSize="15" Foreground="Black">
78+
<Span FontWeight="Normal">Invisible Man</Span> is an open source, censorship and circumvention tool to give access to the open Internet and past censors.
79+
</TextBlock>
80+
81+
<TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Padding="30 10 20 0" TextWrapping="Wrap" FontFamily="{StaticResource SegoeUI}" FontWeight="Light" LineHeight="25" FontSize="15" Foreground="Black">
82+
Please visit the website to download a new version or to get help and information.
83+
</TextBlock>
84+
<TextBlock Name="TextBlockSite" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0 10 0 0" Padding="0" TextWrapping="Wrap" FontFamily="{StaticResource SegoeUI}" FontWeight="Normal" FontSize="15" Foreground="{StaticResource BackgroundBlueDark}" Cursor="Hand" PreviewMouseDown="TextBlockSite_PreviewMouseDown">
85+
https://invisiblemanvpn.github.io
86+
</TextBlock>
87+
<TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Padding="30 15 30 0" TextWrapping="Wrap" FontFamily="{StaticResource SegoeUI}" FontWeight="Light" LineHeight="25" FontSize="15" Foreground="Black">
88+
If the website is inaccessible, you can get a new version of Invisible Man by sending an email to us.
89+
</TextBlock>
90+
<TextBlock Name="TextBlockEmail" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0 10 0 0" Padding="0" TextWrapping="Wrap" FontFamily="{StaticResource SegoeUI}" FontWeight="Normal" FontSize="15" Foreground="{StaticResource BackgroundBlueDark}" Cursor="Hand" PreviewMouseDown="TextBlockEmail_PreviewMouseDown">
91+
invisiblemanvpn@gmail.com
92+
</TextBlock>
93+
</StackPanel>
94+
</ScrollViewer>
95+
<Grid x:Name="grid" Grid.Row="0" Background="{StaticResource BackgroundWhite}" RenderTransformOrigin="0.5,0.5">
96+
<Grid.RenderTransform>
97+
<TransformGroup>
98+
<ScaleTransform/>
99+
<SkewTransform/>
100+
<RotateTransform/>
101+
<TranslateTransform/>
102+
</TransformGroup>
103+
</Grid.RenderTransform>
104+
<Grid.Effect>
105+
<DropShadowEffect Direction="270" Opacity="0.3" ShadowDepth="2"/>
106+
</Grid.Effect>
107+
<Grid.ColumnDefinitions>
108+
<ColumnDefinition Width="75"/>
109+
<ColumnDefinition Width="*"/>
110+
</Grid.ColumnDefinitions>
111+
112+
113+
<Viewbox Width="60" Height="60" HorizontalAlignment="Right" Grid.Column="0">
114+
<Canvas Width="24" Height="24">
115+
<Path Data="M13.5,4A1.5,1.5 0 0,0 12,5.5A1.5,1.5 0 0,0 13.5,7A1.5,1.5 0 0,0 15,5.5A1.5,1.5 0 0,0 13.5,4M13.14,8.77C11.95,8.87 8.7,11.46 8.7,11.46C8.5,11.61 8.56,11.6 8.72,11.88C8.88,12.15 8.86,12.17 9.05,12.04C9.25,11.91 9.58,11.7 10.13,11.36C12.25,10 10.47,13.14 9.56,18.43C9.2,21.05 11.56,19.7 12.17,19.3C12.77,18.91 14.38,17.8 14.54,17.69C14.76,17.54 14.6,17.42 14.43,17.17C14.31,17 14.19,17.12 14.19,17.12C13.54,17.55 12.35,18.45 12.19,17.88C12,17.31 13.22,13.4 13.89,10.71C14,10.07 14.3,8.67 13.14,8.77Z" Fill="{StaticResource BackgroundBlueNormal}" />
116+
</Canvas>
117+
</Viewbox>
118+
<Grid Grid.Column="1">
119+
<Grid.RowDefinitions>
120+
<RowDefinition Height="42"/>
121+
<RowDefinition Height="*"/>
122+
</Grid.RowDefinitions>
123+
<Label Grid.Row="0" Padding="0" Margin="10 0 0 0" VerticalAlignment="Bottom" Content="ABOUT" FontFamily="{StaticResource SegoeUI}" FontWeight="Light" FontSize="20" Foreground="Black"/>
124+
<Label Grid.Row="1" Padding="0" Margin="10 0 0 0" HorizontalAlignment="Left" VerticalAlignment="Top" Content="Take back your freedom" FontFamily="{StaticResource SegoeUI}" FontWeight="Light" FontSize="14" Foreground="Black"/>
125+
</Grid>
126+
</Grid>
127+
</Grid>
128+
</Window>

Invisible Man/AboutWindow.xaml.cs

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
using System.Windows;
7+
using System.Windows.Controls;
8+
using System.Windows.Data;
9+
using System.Windows.Documents;
10+
using System.Windows.Input;
11+
using System.Windows.Media;
12+
using System.Windows.Media.Imaging;
13+
using System.Windows.Shapes;
14+
15+
using System.Diagnostics;
16+
17+
namespace Invisible_Man
18+
{
19+
/// <summary>
20+
/// Interaction logic for AboutWindow.xaml
21+
/// </summary>
22+
public partial class AboutWindow : Window
23+
{
24+
public AboutWindow()
25+
{
26+
InitializeComponent();
27+
}
28+
29+
private void TextBlockSite_PreviewMouseDown(object sender, MouseButtonEventArgs e)
30+
{
31+
// Open the Invisible Man web page
32+
Process.Start("https://invisiblemanvpn.github.io");
33+
}
34+
35+
private void TextBlockEmail_PreviewMouseDown(object sender, MouseButtonEventArgs e)
36+
{
37+
// Send email to Invisible Man
38+
Process.Start("mailto:invisiblemanvpn@gmail.com");
39+
}
40+
}
41+
}

Invisible Man/App.config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
5+
</startup>
6+
</configuration>

Invisible Man/App.xaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<Application x:Class="Invisible_Man.App"
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
StartupUri="MainWindow.xaml">
5+
<Application.Resources>
6+
<ResourceDictionary>
7+
<ResourceDictionary.MergedDictionaries>
8+
<ResourceDictionary Source="Styles/Colors.xaml"/>
9+
<ResourceDictionary Source="Styles/ButtonGreen.xaml"/>
10+
<ResourceDictionary Source="Styles/ButtonRed.xaml"/>
11+
<ResourceDictionary Source="Styles/ButtonGray.xaml"/>
12+
<ResourceDictionary Source="Styles/ButtonCircleRed.xaml"/>
13+
</ResourceDictionary.MergedDictionaries>
14+
15+
<FontFamily x:Key="SegoeUI">pack://application:,,,/Styles/Fonts/#SegoeUI</FontFamily>
16+
</ResourceDictionary>
17+
</Application.Resources>
18+
</Application>

Invisible Man/App.xaml.cs

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Configuration;
4+
using System.Data;
5+
using System.Linq;
6+
using System.Threading.Tasks;
7+
using System.Windows;
8+
9+
using System.Threading;
10+
11+
namespace Invisible_Man
12+
{
13+
/// <summary>
14+
/// Interaction logic for App.xaml
15+
/// </summary>
16+
public partial class App : Application
17+
{
18+
private static Mutex mutex;
19+
20+
protected override void OnStartup(StartupEventArgs e)
21+
{
22+
// Restrict the application to just one instance
23+
const string appName = "Invisible Man";
24+
bool runWindow;
25+
mutex = new Mutex(true, appName, out runWindow);
26+
27+
if(!runWindow)
28+
{
29+
// Application is already running
30+
Application.Current.Shutdown();
31+
}
32+
33+
base.OnStartup(e);
34+
}
35+
}
36+
}

Invisible Man/IcoInvisibleMan.ico

303 KB
Binary file not shown.
486 Bytes
Loading
168 Bytes
Loading
175 Bytes
Loading

0 commit comments

Comments
 (0)