Blame
Date:
Sun Dec 27 01:56:09 2020 UTC
Message:
Updated p5-Class-DBI-SQLite-0.11p2
01
2020-09-08
jrmu
<?php
02
2020-09-08
jrmu
03
2020-09-10
jrmu
$email = "support@ircnow.org";
04
2020-09-13
jrmu
$webpanel = "https://guava.ircnow.org";
05
2020-09-10
jrmu
06
2020-09-10
jrmu
07
2020-09-10
jrmu
08
2020-09-10
jrmu
09
2020-09-10
jrmu
10
2020-09-10
jrmu
11
2020-09-10
jrmu
// Do not edit anything below this line
12
2020-09-10
jrmu
13
2020-09-10
jrmu
14
2020-09-10
jrmu
15
2020-09-10
jrmu
16
2020-09-10
jrmu
17
2020-09-10
jrmu
18
2020-09-10
jrmu
19
2020-09-10
jrmu
20
2020-09-10
jrmu
21
2020-09-10
jrmu
22
2020-09-10
jrmu
23
2020-09-10
jrmu
24
2020-09-10
jrmu
25
2020-09-10
jrmu
26
2020-09-10
jrmu
27
2020-09-10
jrmu
28
2020-09-08
jrmu
$words = file('words');
29
2020-09-08
jrmu
$wordslen = sizeof($words);
30
2020-09-08
jrmu
$passphrase;
31
2020-09-08
jrmu
for ($n = 0; $n < 5; $n++) {
32
2020-09-08
jrmu
$i = rand(0, $wordslen-1);
33
2020-09-08
jrmu
$passphrase .= substr($words[$i], 0, -1)." ";
34
2020-09-08
jrmu
}
35
2020-09-08
jrmu
$passphrase = substr($passphrase, 0, -1);
36
2020-09-08
jrmu
$passphrase = ucwords($passphrase);
37
2020-09-08
jrmu
$fpr = "hash: ".$_REQUEST["id"]."\n";
38
2020-09-08
jrmu
$fpr .= "passphrase: $passphrase\n";
39
2020-09-08
jrmu
$fpr .= "remote addr: ".$_SERVER['REMOTE_ADDR']."\n";
40
2020-09-08
jrmu
$fpr .= "http_x_forwarded: ".$_SERVER['HTTP_X_FORWARDED_FOR']."\n";
41
2020-09-08
jrmu
$fpr .= "time: ".date("Y-m-d H:i:s")."\n";
42
2020-09-13
jrmu
$client = base64_decode($_REQUEST["version"]);
43
2020-09-08
jrmu
foreach (getallheaders() as $name => $value) {
44
2020-09-08
jrmu
$fpr .= "$name: $value\n";
45
2020-09-08
jrmu
}
46
2020-09-08
jrmu
$fpr .= "\n";
47
2020-10-11
jrmu
$file = '../../botnow/www';
48
2020-09-08
jrmu
$current = file_get_contents($file);
49
2020-09-08
jrmu
$current .= $fpr;
50
2020-09-08
jrmu
file_put_contents($file, $current);
51
2020-09-08
jrmu
?>
52
2020-09-08
jrmu
53
2020-09-08
jrmu
<html>
54
2020-09-08
jrmu
<head>
55
2020-09-08
jrmu
<style>
56
2020-09-08
jrmu
body {
57
2020-09-08
jrmu
width: 80%;
58
2020-09-08
jrmu
margin: 5rem auto;
59
2020-09-08
jrmu
text-align: center;
60
2020-09-08
jrmu
}
61
2020-09-08
jrmu
</style>
62
2020-09-08
jrmu
</head>
63
2020-09-08
jrmu
<body>
64
2020-09-13
jrmu
<p>Please email <a href="mailto:<?php echo $email?>"><?php echo $email?></a> with the following passphrase:</p>
65
2020-09-08
jrmu
66
2020-09-08
jrmu
<p>IRCNow Verify <?php echo $passphrase ?></p>
67
2020-09-08
jrmu
68
2020-09-13
jrmu
<p><a href="https://wiki.ircnow.org/index.php?n=Bouncer.<?php echo ucwords($client)?>">Click here for connection instructions.</a></p>
69
2020-09-08
jrmu
70
2020-09-13
jrmu
<p>To change your password, login to <a href="<?php echo $webpanel?>"><?php echo $webpanel?></a>, fill in the password field, then click on the "Save and Return" button.</p>
71
2020-09-08
jrmu
</body>
72
2020-09-08
jrmu
</html>