change initial shared key to "minisrv!"

This commit is contained in:
zefie
2025-07-24 12:24:04 -04:00
parent dfd5132e85
commit 5bbaa63e98
4 changed files with 6 additions and 12 deletions

View File

@@ -11,7 +11,7 @@ var irc_nick = session_data.getSessionData("subscriber_irc_nick") || session_dat
data = `<html>
<head>
<title>
Chat Home (Testing)
Chat Home
</title>
</head>
<body bgcolor="#101C1E" text="#A2ACB5" link="#CFC382" vlink="#E1EOE3" fontsize="medium" vspace=0 hspace=0>
@@ -109,12 +109,12 @@ Chat Home (Testing)
<table>
<tr>
<td abswidth="120">Server:</td>
<td><input width="240" bgcolor=262626 text=D6D6D6 cursor=cc9933 font=proportional type="text" name="host" value="${request_headers.query.host || "irc.libera.chat"}"></td>
<td><input width="240" bgcolor=262626 text=D6D6D6 cursor=cc9933 font=proportional type="text" name="host" value="${request_headers.query.host || (minisrv_config.config.irc.enabled) ? minisrv_config.config.service_ip : "irc.libera.chat"}"></td>
</tr>
<tr>
<td>Port:</td>
<td><input width="240" bgcolor=262626 text=D6D6D6 cursor=cc9933 font=proportional type="text" name="port" value="${request_headers.query.port || 6667}"></td>
<td><input width="240" bgcolor=262626 text=D6D6D6 cursor=cc9933 font=proportional type="text" name="port" value="${request_headers.query.port || (minisrv_config.config.irc.enabled) ? minisrv_config.config.irc.port : 6667}"></td>
</tr>
<tr>

View File

@@ -14,12 +14,6 @@ var WTVShared = require("./WTVShared.js")['WTVShared'];
*/
class WTVSec {
// Initial Shared Key, in Base64 Format
// You can change this but it doesn't mean much for security. Just make sure its static. 8 bytes base64 encoded.
// If you intend to link multiple minisrv's together, they must all share the same Initial Shared Key.
initial_shared_key_b64 = "CC5rWmRUE0o=";
initial_shared_key = null;
current_shared_key = null;
challenge_key = null;

View File

@@ -121,7 +121,7 @@
"password": "MySeqRetKey1" // change this in user_config.json
},
"keys": {
"initial_shared_key": "CC5rWmRUE0o=", // Used for the initial RC4 rolling key. Changing this is untested and unsupported.
"initial_shared_key": "bWluaXNydiE=", // Used for the initial RC4 rolling key. Changing this is untested and unsupported.
"user_data_key": "PNa$WN7gz}!T=t6X7^=|Ii##CEB~p\\EP" // Currently used to cipher user passwords in configs. Changing this while there are registered accounts will make it impossible to decrypt existing account passwords
},
"passwords": {

View File

@@ -274,7 +274,7 @@ parser.on('packet', (packet) => {
const srcPort = packet.data.readUInt16BE(tcpHeaderBase);
const dstPort = packet.data.readUInt16BE(tcpHeaderBase + 2);
if (srcIP != serverIP && dstIP !== serverIP) {
if (srcIP !== serverIP && dstIP !== serverIP) {
return;
}
@@ -290,7 +290,7 @@ parser.on('packet', (packet) => {
} else {
isClientToServer = dstIP === serverIP;
}
console.log(`[INFO] New connection detected: ${currentKey} (Client to Server: ${isClientToServer})`);
connections.set(currentKey, new ConnectionState());
connections.set(oppositeKey, new ConnectionState());
connections.get(currentKey).isClient = isClientToServer;