Skip to content
Snippets Groups Projects
Commit 2e0a3e8b authored by mcmlxxix's avatar mcmlxxix
Browse files

strengthened the stiffness of security. got firm on hardening. erected a new...

strengthened the stiffness of security. got firm on hardening. erected a new parameter for the ident command. wood.
parent a0541f45
No related branches found
No related tags found
No related merge requests found
...@@ -36,8 +36,7 @@ load("json-sock.js"); ...@@ -36,8 +36,7 @@ load("json-sock.js");
- JSONClient.receive(); - JSONClient.receive();
- JSONClient.wait(); - JSONClient.wait();
optional arguments: if these are not supplied, arguments:
the client will connect to the default server (bbs.thebrokenbubble.com)
- argv[0] = serverAddr; - argv[0] = serverAddr;
- argv[1] = serverPort; - argv[1] = serverPort;
...@@ -273,10 +272,9 @@ function JSONClient(serverAddr,serverPort) { ...@@ -273,10 +272,9 @@ function JSONClient(serverAddr,serverPort) {
} }
/* identify this client as a bbs user */ /* identify this client as a bbs user */
this.ident=function(username,pw) { this.ident=function(scope,username,pw) {
pw = md5_calc(pw.toUpperCase(),true); pw = md5_calc(pw.toUpperCase(),true);
this.send("ADMIN","CMD",{ this.send(scope,"IDENT",{
oper:"IDENT",
username:username, username:username,
pw:pw pw:pw
}); });
...@@ -303,16 +301,3 @@ function JSONClient(serverAddr,serverPort) { ...@@ -303,16 +301,3 @@ function JSONClient(serverAddr,serverPort) {
this.connect(); this.connect();
log(LOG_INFO,"JSON client initialized (v" + this.VERSION + ")"); log(LOG_INFO,"JSON client initialized (v" + this.VERSION + ")");
}; };
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment