-
Notifications
You must be signed in to change notification settings - Fork 0
/
configfile.html
69 lines (60 loc) · 2.17 KB
/
configfile.html
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
<?
header("Content-Type: text/plain");
session_start();
$uid = $_REQUEST['u'];
$sessionkey = $_REQUEST['s'];
//$devicephonenumberfield = $_REQUEST['devicephonenumberfield'];
//$hosturlfield = $_REQUEST['hosturlfield'];
$dbname = "cloudify";
$dbhostname="db02.transactionalweb.net";
$dblogin = "cloudify";
$dbpassword="cloudify";
if( !($dbLink = mysql_connect($dbhostname, $dblogin, $dbpassword))) {
print("Failed phase1 to connect to server!\n");
print("Request Aborted!\n");
exit();
}
if( ! mysql_select_db($dbname, $dbLink) ) {
print("Failed phase2 to connect to database on server!<BR>\n");
print("Request Aborted!\n");
exit();
}
$q1 = "SELECT * from users where ";
$q1 .= " uid='" . $uid . "' AND ";
$q1 .= " sessionkey='" . $sessionkey . "' limit 1; ";
$dbr1 = mysql_query($q1);
$row1 = mysql_fetch_object($dbr1);
//print "<PRE>";
//print $q1;
//print_r($row1);
//print "</PRE>";
print "[deviceDetect]\n";
print "vid=1111\n";
print "pid=2222\n";
print "auditor=mini.py\n";
print "\n";
print "[resourceRequest]\n";
print "addr=bewest.io\n";
print "port=80\n";
print "page=audit.php\n";
print "userid=" . $row1->uid . "\n";;
print "key=" . $sessionkey . "\n";
print "\n";
print "[serialToNet]\n";
print "audit=medevice://" . $row1->userid . "@bewest.io:9001/insulaudit\n";
print "addr=bewest.io\n";
print "port=9001\n";
print "\n";
print "[registration]\n";
print "addr=bewest.io\n";
print "dataurl=https://transactionalweb.com/cloud/auditdata.htm?key=" . trim($sessionkey) . "&u=" . trim($row1->uid) . "\n";
//print "postpubkeyhere=https://transactionalweb.com/cloud/postpubkey.html?s=" . $sessionkey . "&u=" . $uid . "\n";
//print "pubkey=" . $row1->pubkey . "\n";
print "pollinginterval=300\n";
print "[email protected]:ehwest/medicalrecords.git" . "\n";
$nowtime = time();
$q = " UPDATE users set polltime='" . $nowtime . "' WHERE ";
$q .= " uid='" . $uid . "' AND ";
$q .= " sessionkey='" . $sessionkey . "' LIMIT 1;";
$dbr = mysql_query($q);
?>