Commit Graph

83 Commits

Author SHA1 Message Date
Bryan Ashby 4881c2123a First pass formatting with Prettier
* Added .prettierrc.json
* Added .prettierignore
* Formatted
2022-06-05 14:04:25 -06:00
Bryan Ashby dd6a0553d8
Some additional cleanup 2022-04-26 12:36:31 -06:00
Bryan Ashby 8283971b53
Update variable to disable SSH keep-alive checks which break NetRunner :( 2022-04-08 16:41:22 -06:00
Bryan Ashby 9019479bfd
Initial update, some quirks to work out with NetRunner mostly 2022-04-06 10:01:21 -06:00
Bryan Ashby e0ecf37869
FIX: Certain telnet clients make the BBS crashes. #369
userVars -> uservars to match telnet-socket impl.
2021-10-22 10:29:47 -06:00
Bryan Ashby c30b52c9d8
fix: ensure we have vars before attempting to fetch from them 2021-03-27 00:04:07 -06:00
Bryan Ashby 9e9dc9af89
A lot of code tidy up 2020-06-15 19:08:55 -06:00
Bryan Ashby 74078939cc
DO should be a DONT for echo 2020-05-31 14:54:33 -06:00
Bryan Ashby 29ef0935c3
Don't send back don't in respond to wont new_environ 2020-05-31 11:49:32 -06:00
Bryan Ashby 438a3161d0
Fix up remoteAddress for WebSocket connections 2020-05-27 21:31:51 -06:00
Bryan Ashby 2234a71705
Working much nicer 2020-05-22 12:55:52 -06:00
Bryan Ashby eeba609560
This is broken WIP. Goign to refactor, but on the road... 2020-05-22 11:41:59 -06:00
Bryan Ashby 2a93de9487
Yet more ANSI-BBS related updates 2020-05-21 21:22:15 -06:00
Bryan Ashby 1e6c577cd3
More ANSI-BBS compliant... still some to go 2020-05-21 19:16:40 -06:00
Bryan Ashby 65d68f33dc
Allow passthrough 2020-05-20 20:23:09 -06:00
Bryan Ashby e85ba322ce
WebSockets work with new telnet server 2020-05-18 19:19:30 -06:00
Bryan Ashby 6d307ec06b
Clean up a bit. Still more to do... 2020-05-18 18:41:23 -06:00
Bryan Ashby a1ac6dfc67 Shim in dataHandler for toggling from elsewhere 2020-05-18 00:33:14 -06:00
Bryan Ashby e517e31b94 Working fairly well 2020-05-17 22:35:03 -06:00
Bryan Ashby 1018485e8e WIP 2020-05-17 21:36:48 -06:00
Bryan Ashby 75787b6107
Start work on new telnet server 2020-05-17 20:22:16 -06:00
Bryan Ashby cd3b8d5e76
Low hanging fruit: Don't re-create binary parsers constantly 2019-12-05 20:48:13 -07:00
Bryan Ashby 3eed388e33
BBSLink + WebSockets does not update key press monitor 2019-07-11 22:49:15 -06:00
Bryan Ashby e960e2800d
Merge branch '0.0.10-alpha' of ssh://numinibsd/git/base/enigma-bbs into security-updates 2019-05-06 20:49:16 -06:00
Bryan Ashby 50426d0e60
Listen 'address' for WebSockets 2019-04-09 20:25:37 -06:00
Bryan Ashby 37ea1e3a30
Listen 'address' for SSH 2019-04-09 20:25:27 -06:00
Bryan Ashby 8114a1e3f2
Listen 'address' for Telnet 2019-04-09 20:25:14 -06:00
Bryan Ashby 0ed507cd7b
Initial real 2FA/OTP work 2019-04-09 20:07:19 -06:00
Bryan Ashby 23779c3abe
Use authInfo obj vs weird params. auth factor 1: factor 2 for 2FA, etc. 2019-02-22 22:51:12 -07:00
Bryan Ashby 57938e761e
+ Implement SSH PubKey authentication
* Security related items to config/security dir
2019-02-20 23:55:09 -07:00
Bryan Ashby 8ba80426e3 Better disconnect - should resolve issues with SSH 2019-02-02 10:20:22 -07:00
Bryan Ashby f15629682c Fix outstanding SSH bug seen with NetRunner and SyncTERM with ugly hack: Disable keep-alives 2019-01-29 20:36:45 -07:00
Bryan Ashby 6408e40604 Fix minor typo 2019-01-13 19:10:54 -07:00
Bryan Ashby b23cdd20bf Listen to 'env' events 2019-01-02 19:52:15 -07:00
Bryan Ashby 4fb7c4bf53 Some minor cleanup 2018-12-31 11:33:14 -07:00
Bryan Ashby 3864d957c9 * Servers now use async listen() 2018-12-27 02:46:16 -07:00
Bryan Ashby 9d1815682d * ServerModule's createServer() is now async
* Re-write of NNTP Message-ID <> internal message UUIDs
2018-12-27 02:19:26 -07:00
Bryan Ashby ee93035bb8 * Disconnect clients that attempt to login with banned usernames for Telnet as well
* Slow disconnects to thwart brute force attacks - these names won't exist anyway,
  but we want the attacking client to not DoS us
2018-12-25 00:18:04 -07:00
Bryan Ashby 06a1925288 Check bad usernames @ login 2018-12-24 15:32:38 -07:00
Bryan Ashby 73e8b0454e Wrap ctx.reject() and catch throws 2018-12-24 15:14:37 -07:00
Bryan Ashby a3ba57b0b8 Fix schedule issue 2018-12-14 23:21:33 -07:00
Bryan Ashby df2bf4477e SECURITY UPDATE
* Handle failed login attempts via Telnet
* New lockout features for >= N failed attempts
* New auto-unlock over email feature
* New auto-unlock after N minutes feature
* Code cleanup in users
* Add user_property.js - start using consts for user properties. Clean up over time.
* Update email docs
2018-11-22 23:07:37 -07:00
Bryan Ashby 9fd819d608 Resolve TODO RE using EnigError for bad login attempts 2018-11-21 19:43:50 -07:00
Bryan Ashby 74b03fe846 Fix exception when no SSH stuff is configured 2018-11-12 22:05:36 -07:00
Bryan Ashby 25560cb47a SyncTERM SSH support
+ Enabled all ssh2-streams supported KEX, ciphers, etc. for now. Will communicate with Deuce about this.
2018-11-04 19:29:51 -07:00
Bryan Ashby 3f34f77fcd Implement fake pipe() for WebSocket (doors/etc.) 2018-07-08 11:23:56 -06:00
Bryan Ashby 1d8be6b014 Pardon the noise. More tab to space conversion! 2018-06-22 21:26:46 -06:00
Bryan Ashby e9787cee3e ENiGMA 1/2 WILL USE SPACES FROM THIS POINT ON VS TABS
* Really just to make GitHub formatting happy. Arg.
2018-06-21 23:15:04 -06:00
Bryan Ashby 1fe46894d3 More Hot-Reload related changes
* Config.get(): Returns the latest config
* Update code all over the place to use Config.get() vs Config.conf (which will be deprecated)
2018-06-20 19:57:06 -06:00
Bryan Ashby 2f09f3e995 Fix a couple rare bugs around SSH sessions 2018-06-14 20:00:01 -06:00