Add XMPP onion to register.php and 0x0 to services list

Signed-off-by: Moxie "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
Skylar "The Cobra" Widulski 2022-07-29 07:00:29 -04:00
parent 205734eab3
commit 8505d21e8c
Signed by untrusted user: cobra
GPG Key ID: 4FD8F812083FF6F9
4 changed files with 9 additions and 0 deletions

View File

@ -1,6 +1,7 @@
<ul>
<li><a href=http://verncceu2kgz54wi7r5jatgmx2mqtsh3knxhiy4m5shescuqtqfa.b32.i2p>~vern</a> - The main ~vern website</li>
<li><a href=gemini://verncceu2kgz54wi7r5jatgmx2mqtsh3knxhiy4m5shescuqtqfa.b32.i2p>~vern Gemini</a> - The ~vern gemini capsule</li>
<li><a href=http://verncc2ngpoa6subaig7xyrt3jmyrnndsixt5t4ufui5usjsogna.b32.i2p>0x0</a> - The null pointer. File hosting and URL shortening service</li>
<li><a href=netcat://verncceu2kgz54wi7r5jatgmx2mqtsh3knxhiy4m5shescuqtqfa.b32.i2p:1234>Among sus</a> - A recreation of Among Us mechanics but as a multiplayer text adventure game</li>
<!-- <li><a href=http://vernccqhizmt3bu7jkfc7hmp2vor6kyy35rxghdedk245dfgtwsq.b32.i2p>BloatFE</a> - A web client for Mastadon Network</li>
<li><a href=http://vernccl7gknhlgousdumou4dryxkm25dzx54yitr6k7kqxzfulwa.b32.i2p>CryptPad (Seperate Sign-up)</a> - Collaborative office suite that is end-to-end encrypted</li> -->

View File

@ -1,6 +1,7 @@
<ul>
<li><a href=http://vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion>~vern</a> - The main ~vern website</li>
<li><a href=gemini://vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion>~vern Gemini</a> - The ~vern gemini capsule</li>
<li><a href=http://0.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion>0x0</a> - The null pointer. File hosting and URL shortening service</li>
<li><a href=netcat://vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion:1234>Among sus</a> - A recreation of Among Us mechanics but as a multiplayer text adventure game</li>
<!-- <li><a href=http://bloat.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion>BloatFE</a> - A web client for Mastadon Network</li>
<li><a href=http://pad.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion>CryptPad (Seperate Sign-up)</a> - Collaborative office suite that is end-to-end encrypted</li> -->

View File

@ -130,6 +130,9 @@
<input type="checkbox" id="xmpp" name="xmpp" value="XMPP" checked>
<label for="xmpp">XMPP/Jabber</label><br>
<input type="checkbox" id="xmppo" name="xmppo" value="XMPP Onion" checked>
<label for="xmpp">XMPP/Jabber Onion</label><br>
<br>
<span><input type="submit" value="Submit" style="width:100px;height:40px;font-size:20px"></span>
</form><br>
@ -149,6 +152,7 @@
if (isset($_POST['git'])) $use_git = true;
if (isset($_POST['jitsi'])) $use_jitsi = true;
if (isset($_POST['xmpp'])) $use_xmpp = true;
if (isset($_POST['xmppo'])) $use_xmppo = true;
$to = "root@vern.cc";
$subject = "New registration request from $username <$email>";
$message = "Hello Administrators,\nSomeone has requested a membership. Please view the details below and decide if it is worth approving.\n\nSSH keys:\n$ssh\n\nRequested username: $username\nRequested services: Tilde";
@ -157,6 +161,7 @@
if ($use_git) $message .= ", Gitea";
if ($use_jitsi) $message .= ", Jitsi";
if ($use_xmpp) $message .= ", XMPP";
if ($use_xmppo) $message .= ", XMPP Onion";
$message .= ".\nJoin reason:\n$reason\n\n\nTo accept this request, run this command as root:\n/root/bin/accept $username\nTo deny this request, run this command as root:\n/root/bin/deny $username\n";
$contents = "#!/usr/bin/env -S bash -e\n\n# This is the registration script for $username \n# This script was automatically generated by http://" . $_SERVER['HTTP_HOST'] . htmlspecialchars($_SERVER['PHP_SELF']). "\n\n";
@ -173,6 +178,7 @@
if ($use_git) $contents .= '~/bin/mkguser ' . escapeshellarg($username) . ' ' . escapeshellarg($password0) . ' ' . escapeshellarg($email) . "\n";
if ($use_jitsi) $contents .= '~/bin/mkxuser ' . escapeshellarg($username) . ' ' . escapeshellarg($password0) . " jitsi.vern.cc\n";
if ($use_xmpp) $contents .= '~/bin/mkxuser ' . escapeshellarg($username) . ' ' . escapeshellarg($password0) . " vern.cc\n";
if ($use_xmppo) $contents .= '~/bin/mkxuser ' . escapeshellarg($username) . ' ' . escapeshellarg($password0) . " vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion\n";
$contents .= "s-nail -vr 'register@vern.cc' -c cobra@vern.cc -c neopenk@vern.cc -c aryak@vern.cc -s 'Your ~vern account has been created' -M text/plain " . escapeshellarg($email) . " < <(printf 'Hello %s,\\nYour membership request on ~vern has been accepted.\\nYou can now SSH into vern.cc using the public key(s) that you supplied to ~vern.\\nIf you signed up for Mastodon, a randomly generated password for the account will be in ~/mastodon-pass\\n\\nThank you for being a part of ~vern!' " . escapeshellarg($username) . ")\n";
$contents .= "rm -f $0\n";
$contents .= "exit\n\n\n";

View File

@ -1,6 +1,7 @@
<ul>
<li><a href=http://vern.cc>~vern</a> - The main ~vern website</li>
<li><a href=gemini://vern.cc>~vern Gemini</a> - The ~vern gemini capsule</li>
<li><a href=//0.vern.cc>0x0</a> - The null pointer. File hosting and URL shortening service</li>
<li><a href=netcat://vern.cc:1234>Among sus</a> - A recreation of Among Us mechanics but as a multiplayer text adventure game</li>
<li><a href=//bloat.vern.cc>BloatFE</a> - A web client for Mastadon Network</li>
<li><a href=//pad.vern.cc>CryptPad (Seperate Sign-up)</a> - Collaborative office suite that is end-to-end encrypted</li>