change initial shared key to "minisrv!"
This commit is contained in:
@@ -11,7 +11,7 @@ var irc_nick = session_data.getSessionData("subscriber_irc_nick") || session_dat
|
|||||||
data = `<html>
|
data = `<html>
|
||||||
<head>
|
<head>
|
||||||
<title>
|
<title>
|
||||||
Chat Home (Testing)
|
Chat Home
|
||||||
</title>
|
</title>
|
||||||
</head>
|
</head>
|
||||||
<body bgcolor="#101C1E" text="#A2ACB5" link="#CFC382" vlink="#E1EOE3" fontsize="medium" vspace=0 hspace=0>
|
<body bgcolor="#101C1E" text="#A2ACB5" link="#CFC382" vlink="#E1EOE3" fontsize="medium" vspace=0 hspace=0>
|
||||||
@@ -109,12 +109,12 @@ Chat Home (Testing)
|
|||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td abswidth="120">Server:</td>
|
<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>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>Port:</td>
|
<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>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
@@ -14,12 +14,6 @@ var WTVShared = require("./WTVShared.js")['WTVShared'];
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
class WTVSec {
|
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;
|
initial_shared_key = null;
|
||||||
current_shared_key = null;
|
current_shared_key = null;
|
||||||
challenge_key = null;
|
challenge_key = null;
|
||||||
|
|||||||
@@ -121,7 +121,7 @@
|
|||||||
"password": "MySeqRetKey1" // change this in user_config.json
|
"password": "MySeqRetKey1" // change this in user_config.json
|
||||||
},
|
},
|
||||||
"keys": {
|
"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
|
"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": {
|
"passwords": {
|
||||||
|
|||||||
@@ -274,7 +274,7 @@ parser.on('packet', (packet) => {
|
|||||||
const srcPort = packet.data.readUInt16BE(tcpHeaderBase);
|
const srcPort = packet.data.readUInt16BE(tcpHeaderBase);
|
||||||
const dstPort = packet.data.readUInt16BE(tcpHeaderBase + 2);
|
const dstPort = packet.data.readUInt16BE(tcpHeaderBase + 2);
|
||||||
|
|
||||||
if (srcIP != serverIP && dstIP !== serverIP) {
|
if (srcIP !== serverIP && dstIP !== serverIP) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -290,7 +290,7 @@ parser.on('packet', (packet) => {
|
|||||||
} else {
|
} else {
|
||||||
isClientToServer = dstIP === serverIP;
|
isClientToServer = dstIP === serverIP;
|
||||||
}
|
}
|
||||||
|
console.log(`[INFO] New connection detected: ${currentKey} (Client to Server: ${isClientToServer})`);
|
||||||
connections.set(currentKey, new ConnectionState());
|
connections.set(currentKey, new ConnectionState());
|
||||||
connections.set(oppositeKey, new ConnectionState());
|
connections.set(oppositeKey, new ConnectionState());
|
||||||
connections.get(currentKey).isClient = isClientToServer;
|
connections.get(currentKey).isClient = isClientToServer;
|
||||||
|
|||||||
Reference in New Issue
Block a user