Subj : New User Script To : Lab Rat From : Digital Man Date : Wed Feb 19 2014 02:45 pm Re: New User Script By: Lab Rat to Digital Man on Wed Feb 19 2014 10:56 am > Re: New User Script > By: Digital Man to Lab Rat on Tue Feb 18 2014 15:39:30 > > > Perhaps if you tell us what you want to do, we can help you achieve > > that. > > > > digital man > > OK, this is what I am trying to do - wasn't deliberately being cagey, just > didn't want to bore you with the details! > > I want to capture the username of the unknown user passed by RLogin as a > string but not use it to log in to the system. I then want to log in using > the remote system's IP address as the username which is already in the user > database and disregard the RLogin password completely. That way, anyone > connecting by RLogin from a remote BBS is automatically logged in as the > same user (the remote system's IP) and then their actual username is just > floating around as a string which I will then use later on. > > I can get this working fine by telnet, but I want the user to be > automatically logged in and therefore need RLogin. From what I can tell, > RLogin with an unknown username doesn't seem to touch login.js - I have put > many strategically placed > > console.print(str); > console.pause(); > > in login.js any using RLogin, it doesn't pause once, let alone show the > username with a known or unknown user. The RLogin "negotiation" (such that it is) is implemented in the C/C++ source code and not controllable via JavaScript. > The only alternative that I can think of that would work for me is if there > would be some way of passing a different username and password to that of > the logged in user from a remote board using RLogin - i.e. create an > external program: *rlogin - but as far as I can > tell, this isn't possible. Yeah, that would be a better approach. If you're using the current development build (v3.16), then you can pass the username and password to the JavaScript bbs.rlogin_gate method (as the 2nd and 3rd arguments). Like this: bbs.rlogin_gate(host, name, pass); If you use that instead of bbs.telnet_gate() in the remote systems's rlogin.js, that'll allow you to pass whatever name/pass combination you wish via RLogin. digital man Synchronet "Real Fact" #72: SyncTERM (created by Deuce) contains portions of Synchronet and SEXYZ code. Norco, CA WX: 65.2øF, 57.0% humidity, 13 mph ESE wind, 0.00 inches rain/24hrs .