-
New User Script
From
Lab Rat@VERT/TOXIC to
All on Tue Feb 18 16:31:18 2014
Hi All,ããWhen connecting by RLogin with credentials unknown to the server it takes theãuser straight to the new user script with "Do you have a color terminal" - canãanyone tell me where this script is? I presume it's a JavaScript file? I wantãto intercept the process before it gives the 'Do you have a color terminal'ãprompt.ãã/sbbs/exec/newuser.js would have been my first port of call but this seems toãbe quite a way down the default new user process and seems to be more a partãof the guest login process.ããLab Ratããã---ã þ Synchronet þ Toxic Laboratory BBS - Birmingham, UK - toxicbbs.comã
-
From
Bill McGarrity@VERT/TEQUILAM to
Lab Rat on Tue Feb 18 15:11:00 2014
Lab Rat wrote to All <=-ãã LR> Hi All,ãã LR> When connecting by RLogin with credentials unknown to the server itã LR> takes the user straight to the new user script with "Do you have aã LR> color terminal" - can anyone tell me where this script is? I presumeã LR> it's a JavaScript file? I want to intercept the process before it givesã LR> the 'Do you have a color terminal' prompt.ãã LR> /sbbs/exec/newuser.js would have been my first port of call but thisã LR> seems to be quite a way down the default new user process and seems toã LR> be more a part of the guest login process.ããI believe you're looking for login.jsããEnjoy!ãããBillããTelnet: tequilamockingbirdonline.netãIRC: irc.tequilamockingbirdonline.net Ports: 6661-6670 SSL: +6697ãRadio: radio.tequilamockingbirdonline.net:8010/liveããã... Motorcycles are everywhere... Look twice, save a life!!ã--- MultiMail/Win32 v0.50ã þ Synchronet þ TequilaMockingbird Online - TELNET: tequilamockingbirdonline.netã
-
From
Digital Man@VERT to
Lab Rat on Tue Feb 18 15:39:30 2014
Re: New User Scriptã By: Lab Rat to All on Tue Feb 18 2014 04:31 pmãã > Hi All,ã >ã > When connecting by RLogin with credentials unknown to the server it takesã > the user straight to the new user script with "Do you have a colorã > terminal" - can anyone tell me where this script is? I presume it's aã > JavaScript file? I want to intercept the process before it gives the 'Doã > you have a color terminal' prompt.ããThere's no script in control at that point.ãã > /sbbs/exec/newuser.js would have been my first port of call but this seemsã > to be quite a way down the default new user process and seems to be more aã > part of the guest login process.ããPerhaps if you tell us what you want to do, we can help you achieve that.ãã digital manããSynchronet "Real Fact" #17:ãRob Swindell first learned to program in C by hacking on WWIV BBS software.ãNorco, CA WX: 68.8øF, 43.0% humidity, 2 mph ESE wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Lab Rat@VERT/TOXIC to
Bill McGarrity on Tue Feb 18 22:29:16 2014
Re: Re: New User Scriptã By: Bill McGarrity to Lab Rat on Tue Feb 18 2014 15:11:00ãã > I believe you're looking for login.jsããI can't see anything of the sort in login.js though.ããLab Ratããã---ã þ Synchronet þ Toxic Laboratory BBS - Birmingham, UK - toxicbbs.comã
-
From
Bill McGarrity@VERT/TEQUILAM to
Digital Man on Wed Feb 19 00:40:00 2014
Digital Man wrote to Lab Rat <=-ããã > Hi All,ã >ã > When connecting by RLogin with credentials unknown to the server it takesã > the user straight to the new user script with "Do you have a colorã > terminal" - can anyone tell me where this script is? I presume it's aã > JavaScript file? I want to intercept the process before it gives the 'Doã > you have a color terminal' prompt.ãã DM> There's no script in control at that point.ããFor my own knowledge, when New is answered on the Login, what generates theãquestions regarding Alias, Full Name, etc... ãããBillããTelnet: tequilamockingbirdonline.netãIRC: irc.tequilamockingbirdonline.net Ports: 6661-6670 SSL: +6697ãRadio: radio.tequilamockingbirdonline.net:8010/liveããã... Motorcycles are everywhere... Look twice, save a life!!ã--- MultiMail/Win32 v0.50ã þ Synchronet þ TequilaMockingbird Online - TELNET: tequilamockingbirdonline.netã
-
From
Digital Man@VERT to
Bill McGarrity on Tue Feb 18 22:30:58 2014
Re: Re: New User Scriptã By: Bill McGarrity to Digital Man on Wed Feb 19 2014 12:40 amãã > -=> Digital Man wrote to Lab Rat <=-ã >ã >ã > > Hi All,ã > >ã > > When connecting by RLogin with credentials unknown to the server itã > > takes the user straight to the new user script with "Do you have a colorã > > terminal" - can anyone tell me where this script is? I presume it's aã > > JavaScript file? I want to intercept the process before it gives the 'Doã > > you have a color terminal' prompt.ã >ã > DM> There's no script in control at that point.ã >ã > For my own knowledge, when New is answered on the Login, what generates theã > questions regarding Alias, Full Name, etc...ããsrc/sbbs3/newuser.cpp. The strings come from ctrl/text.dat.ãã digital manããSynchronet "Real Fact" #81:ãFlapuebarg unf vagreany ebg13 fhccbeg sbe fhcresvpvnyyl rapelcgvat grkg.ãNorco, CA WX: 55.8øF, 81.0% humidity, 0 mph SSE wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Lab Rat@VERT/TOXIC to
Digital Man on Wed Feb 19 10:56:15 2014
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 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 <remote host> <user> <pass> - but as far as I can tell, thisãisn't possible.ããThanks for your help with this - I'm sure I'll get there in the end...ãããLab Rat.ããã---ã þ Synchronet þ Toxic Laboratory BBS - Birmingham, UK - toxicbbs.comã
-
From
Digital Man@VERT to
Lab Rat on Wed Feb 19 14:45:17 2014
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 <remote host> <user> <pass> - 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ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Lab Rat@VERT/TOXIC to
Digital Man on Thu Mar 6 13:16:15 2014
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ããI'm afraid I just cannot get rlogin_gate to do anything. When I run it inãJavaScript, absolutely nothing happens:ãã load("sbbsdefs.js");ã ã var host="192.168.0.172";ã var name="Bbs Client";ã var pass="password";ã ã bbs.rlogin_gate(host, name, pass);ã ã console.writeln("Finished");ã console.pause();ããI don't even get to see the 'Finished' text. If I connect to the systemã192.168.0.172 from SyncTERM using RLogin and those same credentials, itãconnects just fine.ããIf I substitute the rlogin_gate with telnet_gate and use this line:ãã bbs.telnet_gate(host, TG_RLOGIN);ããThis connects fine, but of course it's passing the logged in user'sãcredentials, not the specific ones I want to pass.ããAny ideas appreciated!ãããLab Rat.ãã---ã þ Synchronet þ Toxic Laboratory BBS - Birmingham, UK - toxicbbs.comã
-
From
MCMLXXIX@VERT/MDJ to
Lab Rat on Fri Mar 7 15:13:15 2014
Re: Re: New User Scriptã By: Lab Rat to Digital Man on Thu Mar 06 2014 13:16:15ãã > var host="192.168.0.172";ã > var name="Bbs Client";ã > var pass="password";ã > ã > bbs.rlogin_gate(host, name, pass);ã > ã > console.writeln("Finished");ã > console.pause();ã > ã > I don't even get to see the 'Finished' text. If I connect to the systemã > 192.168.0.172 from SyncTERM using RLogin and those same credentials, itã > connects just fine.ããthe fact that you dont see the Finished text suggests that it is doingãsomething. I'd suggest checking the terminal server logs to see whether or notãthere's an inbound connection as a result of that call. I use bbs.rlogin_gate()ãin a similar fashion, with similar arguments, and it works for me.ãã---ã þ Synchronet þ The BRoKEN BuBBLE (bbs.thebrokenbubble.com)ã
-
From
Digital Man@VERT to
Lab Rat on Fri Mar 7 15:32:23 2014
Re: Re: New User Scriptã By: Lab Rat to Digital Man on Thu Mar 06 2014 01:16 pmãã > > 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ã >ã > I'm afraid I just cannot get rlogin_gate to do anything. When I run it inã > JavaScript, absolutely nothing happens:ã >ã > load("sbbsdefs.js");ã >ã > var host="192.168.0.172";ã > var name="Bbs Client";ã > var pass="password";ã >ã > bbs.rlogin_gate(host, name, pass);ã >ã > console.writeln("Finished");ã > console.pause();ã >ã > I don't even get to see the 'Finished' text. If I connect to the systemã > 192.168.0.172 from SyncTERM using RLogin and those same credentials, itã > connects just fine.ã >ã > If I substitute the rlogin_gate with telnet_gate and use this line:ã >ã > bbs.telnet_gate(host, TG_RLOGIN);ã >ã > This connects fine, but of course it's passing the logged in user'sã > credentials, not the specific ones I want to pass.ã >ã > Any ideas appreciated!ããI tested it and noticed that it was throwing an exception (in a Win32 debug ãbuild) due to a variable being used without being initialized. Are you building ãthe code yourself? Anyway, I made substatial changes to this over the past 1-2 ãdays and suggest you get the latest development build and use that (or get ãlatest source from CVS) - it's working fine for me.ããYou'll need to reverse the order of the 'name' and 'pass' arguments however. ãRLogin doesn't actually have a 'password' as part of the protocol, but ãSynchronet does support it if it's in the *first* string passed upon RLogin ãconnection (which correlates with the *first* argument to bbs.rlogin_gate).ãã digital manããSynchronet "Real Fact" #67:ãRobert D. Bouman, the author of SyncEdit, died in the mid to late 1990's.ãNorco, CA WX: 72.8øF, 39.0% humidity, 7 mph SE wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Nightfox@VERT/DIGDIST to
Digital Man on Sat Mar 8 15:49:44 2014
Re: Re: New User Scriptã By: Digital Man to Bill McGarrity on Tue Feb 18 2014 22:30:58ãã > DM>> There's no script in control at that point.ãã >> For my own knowledge, when New is answered on the Login, whatã >> generates the questions regarding Alias, Full Name, etc...ãã DM> src/sbbs3/newuser.cpp. The strings come from ctrl/text.dat.ããI had the same question as Lab Rat, but for a different reason.. I wasãthinking of writing a custom new user signup script (so I could have moreãcontrol over things like screen location, etc. for the new user questionãprompts) - but it sounds like there's no way to change the new user signupãprocess? I see that login.js simply calls bbs.newuser(), which starts thatãprocess..ããNightfoxãã---ã þ Synchronet þ Digital Distortion BBS - digitaldistortionbbs.comã
-
From
Lab Rat@VERT/TOXIC to
Digital Man on Sun Mar 9 23:16:54 2014
Re: Re: New User Scriptã By: Digital Man to Lab Rat on Fri Mar 07 2014 15:32:23ãã > I tested it and noticed that it was throwing an exception (in a Win32 debugã > build) due to a variable being used without being initialized. Are you buildã > the code yourself? Anyway, I made substatial changes to this over the past 1ã > days and suggest you get the latest development build and use that (or getã > latest source from CVS) - it's working fine for me.ã > ã > You'll need to reverse the order of the 'name' and 'pass' arguments however.ã > RLogin doesn't actually have a 'password' as part of the protocol, butã > Synchronet does support it if it's in the *first* string passed upon RLoginã > connection (which correlates with the *first* argument to bbs.rlogin_gate).ããI'm running in Linux using latest CVS that I compiled. I'll rebuild fromãscratch (only testing in virtual machines with everything stock until I getãit right) and see how it goes - just as soon as I've got my night shifts outãthe way... Thanks for that.ããLab Ratããã---ã þ Synchronet þ Toxic Laboratory BBS - Birmingham, UK - toxicbbs.comã
-
From
Lab Rat@VERT/TOXIC to
MCMLXXIX on Sun Mar 9 23:18:32 2014
Re: Re: New User Scriptã By: MCMLXXIX to Lab Rat on Fri Mar 07 2014 15:13:15ãã > the fact that you dont see the Finished text suggests that it is doingã > something. I'd suggest checking the terminal server logs to see whether or nã > there's an inbound connection as a result of that call. I use bbs.rlogin_gatã > in a similar fashion, with similar arguments, and it works for me.ããI was thinking that - was wondering if it was just hanging though. Will playãagain with DM's modifications and see what I can do then.ããLab Ratããã---ã þ Synchronet þ Toxic Laboratory BBS - Birmingham, UK - toxicbbs.comã
-
From
Digital Man@VERT to
Nightfox on Mon Mar 10 03:29:26 2014
Re: Re: New User Scriptã By: Nightfox to Digital Man on Sat Mar 08 2014 03:49 pmãã > Re: Re: New User Scriptã > By: Digital Man to Bill McGarrity on Tue Feb 18 2014 22:30:58ã >ã > > DM>> There's no script in control at that point.ã >ã > >> For my own knowledge, when New is answered on the Login, whatã > >> generates the questions regarding Alias, Full Name, etc...ã >ã > DM> src/sbbs3/newuser.cpp. The strings come from ctrl/text.dat.ã >ã > I had the same question as Lab Rat, but for a different reason.. I wasã > thinking of writing a custom new user signup script (so I could have moreã > control over things like screen location, etc. for the new user questionã > prompts) - but it sounds like there's no way to change the new user signupã > process? I see that login.js simply calls bbs.newuser(), which starts thatã > process..ããCorrect. Of course, you could modify login.js to *not* call bbs.newuser() for ãnew user signups, but then you'd have to reproduce everything that the internal ã(newuser.cpp) code does in JavaScript. Not an impossible task (see the web ãserver newuser.ssjs for example), but potentially problematic.ããYou can disable many of the new user questions with toggles in ãSCFG->System->New User Values, or by setting the text.dat strings to blank ãstrings (which eliminates many prompts).ãã digital manããSynchronet "Real Fact" #32:ãThe Synchronet web user interface was contributed by Robert Couture, Runemaster.ãNorco, CA WX: 60.9øF, 31.0% humidity, 0 mph ESE wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Nightfox@VERT/DIGDIST to
Digital Man on Tue Mar 11 06:45:29 2014
Re: Re: New User Scriptã By: Digital Man to Nightfox on Mon Mar 10 2014 03:29:26ãã >> I had the same question as Lab Rat, but for a different reason.. Iã >> was thinking of writing a custom new user signup script (so I couldã >> have more control over things like screen location, etc. for the newã >> user question prompts) - but it sounds like there's no way to changeã >> the new user signup process? I see that login.js simply callsã >> bbs.newuser(), which starts that process..ãã DM> Correct. Of course, you could modify login.js to *not* callã DM> bbs.newuser() for new user signups, but then you'd have to reproduceã DM> everything that the internal (newuser.cpp) code does in JavaScript. Notã DM> an impossible task (see the web server newuser.ssjs for example), butã DM> potentially problematic.ãã DM> You can disable many of the new user questions with toggles inã DM> SCFG->System->New User Values, or by setting the text.dat strings toã DM> blank strings (which eliminates many prompts).ããI see, thanks.ããNightfoxãã---ã þ Synchronet þ Digital Distortion BBS - digitaldistortionbbs.comã