Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c056606

Browse files
committed
Merge remote-tracking branch 'origin/GUI'
2 parents 7458e67 + b084f1c commit c056606

File tree

187 files changed

+14988
-71
lines changed

Some content is hidden

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

187 files changed

+14988
-71
lines changed

background.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// mount points are defined in naclprocess.js
1010
// TODO(dt) make sure that datadirectory for tor is set to default for now
1111
chrome.app.runtime.onLaunched.addListener(function() {
12-
chrome.app.window.create('index.html', {
12+
chrome.app.window.create('gui/index.html', {
1313
'bounds': {
1414
'width': 850,
1515
'height': 650,

gui/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/node_modules/
2+
/gulpfile.js
3+
/package.json

gui/LICENSE.txt

Lines changed: 277 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,277 @@
1+
This file contains the license for Tor,
2+
a free software project to provide anonymity on the Internet.
3+
4+
It also lists the licenses for other components used by Tor.
5+
6+
For more information about Tor, see https://www.torproject.org/.
7+
8+
If you got this file as a part of a larger bundle,
9+
there may be other license terms that you should be aware of.
10+
11+
===============================================================================
12+
Tor is distributed under this license:
13+
14+
Copyright (c) 2001-2004, Roger Dingledine
15+
Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson
16+
Copyright (c) 2007-2015, The Tor Project, Inc.
17+
18+
Redistribution and use in source and binary forms, with or without
19+
modification, are permitted provided that the following conditions are
20+
met:
21+
22+
* Redistributions of source code must retain the above copyright
23+
notice, this list of conditions and the following disclaimer.
24+
25+
* Redistributions in binary form must reproduce the above
26+
copyright notice, this list of conditions and the following disclaimer
27+
in the documentation and/or other materials provided with the
28+
distribution.
29+
30+
* Neither the names of the copyright owners nor the names of its
31+
contributors may be used to endorse or promote products derived from
32+
this software without specific prior written permission.
33+
34+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
35+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
36+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
37+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
38+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
39+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
40+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
41+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
42+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
43+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
44+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
45+
===============================================================================
46+
src/ext/strlcat.c and src/ext/strlcpy.c by Todd C. Miller are licensed
47+
under the following license:
48+
49+
* Copyright (c) 1998 Todd C. Miller <[email protected]>
50+
* All rights reserved.
51+
*
52+
* Redistribution and use in source and binary forms, with or without
53+
* modification, are permitted provided that the following conditions
54+
* are met:
55+
* 1. Redistributions of source code must retain the above copyright
56+
* notice, this list of conditions and the following disclaimer.
57+
* 2. Redistributions in binary form must reproduce the above copyright
58+
* notice, this list of conditions and the following disclaimer in the
59+
* documentation and/or other materials provided with the distribution.
60+
* 3. The name of the author may not be used to endorse or promote products
61+
* derived from this software without specific prior written permission.
62+
*
63+
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
64+
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
65+
* AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
66+
* THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
67+
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
68+
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
69+
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
70+
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
71+
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
72+
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
73+
===============================================================================
74+
src/ext/tor_queue.h is licensed under the following license:
75+
76+
* Copyright (c) 1991, 1993
77+
* The Regents of the University of California. All rights reserved.
78+
*
79+
* Redistribution and use in source and binary forms, with or without
80+
* modification, are permitted provided that the following conditions
81+
* are met:
82+
* 1. Redistributions of source code must retain the above copyright
83+
* notice, this list of conditions and the following disclaimer.
84+
* 2. Redistributions in binary form must reproduce the above copyright
85+
* notice, this list of conditions and the following disclaimer in the
86+
* documentation and/or other materials provided with the distribution.
87+
* 3. Neither the name of the University nor the names of its contributors
88+
* may be used to endorse or promote products derived from this software
89+
* without specific prior written permission.
90+
*
91+
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
92+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
93+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
94+
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
95+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
96+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
97+
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
98+
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
99+
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
100+
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
101+
* SUCH DAMAGE.
102+
103+
===============================================================================
104+
src/ext/csiphash.c is licensed under the following license:
105+
106+
Copyright (c) 2013 Marek Majkowski <[email protected]>
107+
108+
Permission is hereby granted, free of charge, to any person obtaining a copy
109+
of this software and associated documentation files (the "Software"), to deal
110+
in the Software without restriction, including without limitation the rights
111+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
112+
copies of the Software, and to permit persons to whom the Software is
113+
furnished to do so, subject to the following conditions:
114+
115+
The above copyright notice and this permission notice shall be included in
116+
all copies or substantial portions of the Software.
117+
118+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
119+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
120+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
121+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
122+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
123+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
124+
THE SOFTWARE.
125+
===============================================================================
126+
Trunnel is distributed under this license:
127+
128+
Copyright 2014 The Tor Project, Inc.
129+
130+
Redistribution and use in source and binary forms, with or without
131+
modification, are permitted provided that the following conditions are
132+
met:
133+
134+
* Redistributions of source code must retain the above copyright
135+
notice, this list of conditions and the following disclaimer.
136+
137+
* Redistributions in binary form must reproduce the above
138+
copyright notice, this list of conditions and the following disclaimer
139+
in the documentation and/or other materials provided with the
140+
distribution.
141+
142+
* Neither the names of the copyright owners nor the names of its
143+
contributors may be used to endorse or promote products derived from
144+
this software without specific prior written permission.
145+
146+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
147+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
148+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
149+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
150+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
151+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
152+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
153+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
154+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
155+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
156+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
157+
158+
===============================================================================
159+
src/config/geoip is licensed under the following license:
160+
161+
OPEN DATA LICENSE (GeoLite Country and GeoLite City databases)
162+
163+
Copyright (c) 2008 MaxMind, Inc. All Rights Reserved.
164+
165+
All advertising materials and documentation mentioning features or use of
166+
this database must display the following acknowledgment:
167+
"This product includes GeoLite data created by MaxMind, available from
168+
http://maxmind.com/"
169+
170+
Redistribution and use with or without modification, are permitted provided
171+
that the following conditions are met:
172+
1. Redistributions must retain the above copyright notice, this list of
173+
conditions and the following disclaimer in the documentation and/or other
174+
materials provided with the distribution.
175+
2. All advertising materials and documentation mentioning features or use of
176+
this database must display the following acknowledgement:
177+
"This product includes GeoLite data created by MaxMind, available from
178+
http://maxmind.com/"
179+
3. "MaxMind" may not be used to endorse or promote products derived from this
180+
database without specific prior written permission.
181+
182+
THIS DATABASE IS PROVIDED BY MAXMIND, INC ``AS IS'' AND ANY
183+
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
184+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
185+
DISCLAIMED. IN NO EVENT SHALL MAXMIND BE LIABLE FOR ANY
186+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
187+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
188+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
189+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
190+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
191+
DATABASE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
192+
===============================================================================
193+
m4/pc_from_ucontext.m4 is available under the following license. Note that
194+
it is *not* built into the Tor software.
195+
196+
Copyright (c) 2005, Google Inc.
197+
All rights reserved.
198+
199+
Redistribution and use in source and binary forms, with or without
200+
modification, are permitted provided that the following conditions are
201+
met:
202+
203+
* Redistributions of source code must retain the above copyright
204+
notice, this list of conditions and the following disclaimer.
205+
* Redistributions in binary form must reproduce the above
206+
copyright notice, this list of conditions and the following disclaimer
207+
in the documentation and/or other materials provided with the
208+
distribution.
209+
* Neither the name of Google Inc. nor the names of its
210+
contributors may be used to endorse or promote products derived from
211+
this software without specific prior written permission.
212+
213+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
214+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
215+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
216+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
217+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
218+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
219+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
220+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
221+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
222+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
223+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
224+
225+
===============================================================================
226+
m4/pkg.m4 is available under the following license. Note that
227+
it is *not* built into the Tor software.
228+
229+
pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
230+
serial 1 (pkg-config-0.24)
231+
232+
Copyright © 2004 Scott James Remnant <[email protected]>.
233+
234+
This program is free software; you can redistribute it and/or modify
235+
it under the terms of the GNU General Public License as published by
236+
the Free Software Foundation; either version 2 of the License, or
237+
(at your option) any later version.
238+
239+
This program is distributed in the hope that it will be useful, but
240+
WITHOUT ANY WARRANTY; without even the implied warranty of
241+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
242+
General Public License for more details.
243+
244+
You should have received a copy of the GNU General Public License
245+
along with this program; if not, write to the Free Software
246+
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
247+
248+
As a special exception to the GNU General Public License, if you
249+
distribute this file as part of a program that contains a
250+
configuration script generated by Autoconf, you may include it under
251+
the same distribution terms that you use for the rest of that program.
252+
===============================================================================
253+
src/ext/readpassphrase.[ch] are distributed under this license:
254+
255+
Copyright (c) 2000-2002, 2007 Todd C. Miller <[email protected]>
256+
257+
Permission to use, copy, modify, and distribute this software for any
258+
purpose with or without fee is hereby granted, provided that the above
259+
copyright notice and this permission notice appear in all copies.
260+
261+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
262+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
263+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
264+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
265+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
266+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
267+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
268+
269+
Sponsored in part by the Defense Advanced Research Projects
270+
Agency (DARPA) and Air Force Research Laboratory, Air Force
271+
Materiel Command, USAF, under agreement number F39502-99-1-0512.
272+
273+
===============================================================================
274+
If you got Tor as a static binary with OpenSSL included, then you should know:
275+
"This product includes software developed by the OpenSSL Project
276+
for use in the OpenSSL Toolkit (http://www.openssl.org/)"
277+
===============================================================================

gui/about.html

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
5+
<meta name="mobile-web-app-capable" content="yes">
6+
<meta name="apple-mobile-web-app-capable" content="yes">
7+
<!-- Theme colour for android lollipop -->
8+
<meta name="theme-color" content="#eeff41">
9+
<!-- material design light theme -->
10+
<link rel="stylesheet" href="css/material.min.css" charset="utf-8">
11+
<script type="text/javascript" src="js/material.min.js"></script>
12+
<link href="css/material.light_green-lime.min.css" rel="stylesheet" />
13+
<link href="fonts/roboto.css" rel="stylesheet" />
14+
<script src="fonts/evil-icons.js"></script>
15+
<link href="fonts/evil-icons.css" rel="stylesheet" />
16+
<link href="css/theme.min.css" rel="stylesheet" />
17+
</head>
18+
<body>
19+
<div class="main-switch-container">
20+
<button id="back_button" class="mdl-button mdl-js-button mdl-button--fab mdl-button--mini-fab mdl-button--colored mdl-js-ripple-effect settings-button">
21+
<div data-icon="ei-arrow-left"></div>
22+
</button>
23+
<div class="mdl-tooltip" for="back_button">
24+
Home
25+
</div>
26+
<h5>Krotor - Help</h5>
27+
</div>
28+
<hr class="outer-hr" />
29+
<div class="main-container main-container--scroll">
30+
<div class="demo-card-square mdl-card mdl-shadow--2dp">
31+
<div class="mdl-card__title">
32+
<h2 class="mdl-card__title-text">
33+
Licenses
34+
</h2>
35+
</div>
36+
<div class="mdl-card__supporting-text">
37+
<h5><a href="http://www.getmdl.io/" target="_blank">Material Design Lite</a></h5>
38+
<h6>© Google, 2015. Licensed under an Apache-2 license.</h6>
39+
<h5><a href="http://evil-icons.io/" target="_blank">Evil Icons</a></h5>
40+
<h6>Evil Icons licensed under MIT License</h6>
41+
<h5><a href="https://www.torproject.org" target="_blank">The Tor Project</a></h5>
42+
<h6>© The Tor Project, Inc., 2015. <a href="LICENSE.txt" target="_blank">License</a></h6>
43+
</div>
44+
</div>
45+
<div class="demo-card-square mdl-card mdl-shadow--2dp">
46+
<div class="mdl-card__title">
47+
<h2 class="mdl-card__title-text">
48+
Made By
49+
</h2>
50+
</div>
51+
<div class="mdl-card__supporting-text">
52+
<h5>Developed by</h5>
53+
<a href="https://github.com/codebuff" target="_blank">
54+
<img src="img/5947267.jpg" />
55+
</a>
56+
<h5>Designed by</h5>
57+
<a href="https://github.com/puranjayjain" target="_blank">
58+
<img src="img/5458094.jpg" />
59+
</a>
60+
</div>
61+
</div>
62+
<div class="demo-card-square mdl-card mdl-shadow--2dp">
63+
<div class="mdl-card__title">
64+
<h2 class="mdl-card__title-text">
65+
About Krotor
66+
</h2>
67+
</div>
68+
<div class="mdl-card__supporting-text">
69+
Krotor v1.x.x<br />
70+
A Chrome app which creates a system wide (tor)socks proxy at port 9999 enabling access to Tor network.<br />
71+
Once the proxy is up and running(can be verified by logs in terminal) you can use any proxy extension in browser,system proxy settings etc to access tor socks proxy at 127.0.0.1:9999 (in next version this will be handled in app itself)<br />
72+
<br />
73+
On windows, system proxy settings don't work, use a proxy extension such as foxyproxy<br />
74+
<br />
75+
(the official codebase of tor is running in this app, this is port of Tor to NaCl platform on Chrome browser.)<br />
76+
Tor : https://www.torproject.org<br />
77+
<br />
78+
Krotor is produced independently from the Tor® anonymity software and carries no guarantee from The Tor Project about quality, suitability or anything else.<br />
79+
</div>
80+
</div>
81+
</div>
82+
<script src="js/about.js"></script>
83+
</body>
84+
</html>

gui/css/material.light_green-lime.min.css

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gui/css/material.min.css

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)