blob: 7f3eecf8ae7ee61c5b6ef5f20cc58deb1f81709c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
<?php
/*
* Written by Alex Landau <alex.landau@xorcom.com>
* Copyright (C) 2008 Xorcom
*
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
*/
?>
<title>Xorcom RapidTunneling</title>
<style>
.clsErrors
{
background: pink;
border: 1px solid red;
padding: 5px;
text-align: center;
}
</style>
<?php
$error = "";
if (isset($_REQUEST["submit"]))
{
// Not a true while due to the break at the end. A handy way to use goto...
while (true) {
if (!is_uploaded_file($_FILES["filename"]["tmp_name"])) {
$error = "Bad file uploaded: " . $_FILES['filename']['name'];
break;
}
# FIXME: insecure temporary file /tmp/ra.log
system("sudo -H rapid-tunneling ".
$_FILES["filename"]["tmp_name"]." >/tmp/ra.log 2>&1", $ret);
if ($ret != 0)
$error = "Invalid or corrupt file. Please try again.";
break;
}
}
if ($error != "") {
?>
<div class="clsErrors"><?php echo $error ?></div>
<?php
}
?>
<img src="Xorcom_logo2.jpg">
<br>
Click Browse and select the file 'remote-access.tar.gz' that you received from the Technical Support Service.<br>
Then click the "Connect" button to initiate the <b>RapidTunneling™</b> secure communication.<br><br>
<form id=form action="" method=post enctype="multipart/form-data">
<input type=file name=filename><br><br>
<input class="splbutton" type=submit name=submit value="Connect">
</form>
<p>
<iframe src="checkra.php" width=500 height=100 frameborder=0 scrolling=no></iframe>
<br>
<img src="XPP_logo_watermark.gif">
|