mirror of
https://github.com/D-Modem/bbs.git
synced 2026-11-28 17:38:04 -08:00
Point repository references at the D-Modem organisation
The repositories moved from Neo-Desktop to the D-Modem GitHub organisation: D-Modem-RE is now D-Modem/D-Modem, pico-serial is D-Modem/hardware, modemmenu (PBX-Modem) is D-Modem/menu, bbs-sec is D-Modem/bbs and go3270-sec is D-Modem/go3270. Update links, module paths, submodule URLs and source-location strings to match. Copyright notices still name Neo-Desktop. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B82eRUwD2JJ5d6fgHmpVTw
This commit is contained in:
192 files changed
+543
-543
No files matched your search
@@ -1,8 +1,8 @@
|
||||
PREFIX ?= /usr/local
|
||||
GO ?= go
|
||||
# go3270 is replaced by the Neo-Desktop/go3270-sec fork (go.mod): fetch it
|
||||
# go3270 is replaced by the D-Modem/go3270 fork (go.mod): fetch it
|
||||
# from GitHub directly, not through the public proxy and checksum database
|
||||
export GOPRIVATE ?= github.com/Neo-Desktop/*
|
||||
export GOPRIVATE ?= github.com/D-Modem/*
|
||||
|
||||
all: bbs
|
||||
|
||||
@@ -26,7 +26,7 @@ doors-image:
|
||||
# regenerates internal/api/pb from proto/bbs.proto (needs protoc and
|
||||
# protoc-gen-go; the generated code is committed)
|
||||
proto:
|
||||
protoc --go_out=. --go_opt=module=github.com/Neo-Desktop/bbs-sec proto/bbs.proto
|
||||
protoc --go_out=. --go_opt=module=github.com/D-Modem/bbs proto/bbs.proto
|
||||
|
||||
# regenerates internal/phone's tables from a checkout of Google's
|
||||
# libphonenumber (git clone --depth 1 https://github.com/google/libphonenumber)
|
||||
|
||||
@@ -5,8 +5,8 @@ of terminal: a TN3270 client (x3270, c3270, wc3270, Vista, PCOMM) gets
|
||||
full 3270 screens with PF keys, through
|
||||
[go3270](https://github.com/racingmars/go3270); any other telnet client
|
||||
gets a text BBS with ANSI color where the terminal has it. Modem callers
|
||||
come in through the D-Modem suite: [app_dmodem](https://github.com/Neo-Desktop/D-Modem-RE)
|
||||
straight from Asterisk, or [modemmenu](https://github.com/Neo-Desktop/PBX-Modem)
|
||||
come in through the D-Modem suite: [app_dmodem](https://github.com/D-Modem/D-Modem)
|
||||
straight from Asterisk, or [modemmenu](https://github.com/D-Modem/menu)
|
||||
after its login.
|
||||
|
||||
```
|
||||
@@ -57,42 +57,42 @@ What there is:
|
||||
reply by mail; areas only the sysop posts in; authors and the sysop
|
||||
delete messages
|
||||
- private mail: inbox, read, reply, delete
|
||||
- [SSH](https://github.com/Neo-Desktop/bbs-sec/wiki/SSH): logging in by password or key, the text BBS encrypted
|
||||
- [Commodore 64s and RIPscrip terminals](https://github.com/Neo-Desktop/bbs-sec/wiki/PETSCII-and-RIP): PETSCII at 40 columns; menus as RIP buttons
|
||||
- [VT terminals identified](https://github.com/Neo-Desktop/bbs-sec/wiki/Terminal-Identification) (answerback, DA1, DA2, XTVERSION, VT52): DEC line drawing and Latin-1, bold on monochrome VTs, VT52 escapes
|
||||
- [SSH](https://github.com/D-Modem/bbs/wiki/SSH): logging in by password or key, the text BBS encrypted
|
||||
- [Commodore 64s and RIPscrip terminals](https://github.com/D-Modem/bbs/wiki/PETSCII-and-RIP): PETSCII at 40 columns; menus as RIP buttons
|
||||
- [VT terminals identified](https://github.com/D-Modem/bbs/wiki/Terminal-Identification) (answerback, DA1, DA2, XTVERSION, VT52): DEC line drawing and Latin-1, bold on monochrome VTs, VT52 escapes
|
||||
- who's online (and how each caller came: ssh, telnet, tn3270, rlogin, modem
|
||||
with its rate), the user list, system info
|
||||
- the last callers (*L*), feedback to the sysop (*K*, which any caller may
|
||||
send), the user list with each user's details and a line about themselves
|
||||
- your profile: where you call from, a line about yourself, expert menus
|
||||
(the prompt alone, `?` for the rest), your password, SSH keys, ANSI and UTF-8
|
||||
- [file areas](https://github.com/Neo-Desktop/bbs-sec/wiki/Files-and-FTP): files listed with their size, uploader, downloads and
|
||||
- [file areas](https://github.com/D-Modem/bbs/wiki/Files-and-FTP): files listed with their size, uploader, downloads and
|
||||
SHA-256, moved by XMODEM, YMODEM, ZMODEM or Kermit on the text BBS, by
|
||||
IND$FILE on a 3270, or by FTP (FTPS); deleted by their uploader or the
|
||||
sysop
|
||||
- [newsgroups](https://github.com/Neo-Desktop/bbs-sec/wiki/Newsgroups-and-NNTP): message areas given a newsgroup name are served by NNTP to
|
||||
- [newsgroups](https://github.com/D-Modem/bbs/wiki/Newsgroups-and-NNTP): message areas given a newsgroup name are served by NNTP to
|
||||
newsreaders and exchanged with other news servers (INN and the like)
|
||||
- [offline mail](https://github.com/Neo-Desktop/bbs-sec/wiki/Offline-Mail): QWK packets of new messages and mail, REP
|
||||
- [offline mail](https://github.com/D-Modem/bbs/wiki/Offline-Mail): QWK packets of new messages and mail, REP
|
||||
replies brought back (by a transfer protocol, IND$FILE, FTP or the API); QWK networks as a hub or a node
|
||||
- [FidoNet](https://github.com/Neo-Desktop/bbs-sec/wiki/FidoNet) (or any FTN network): message areas that are echoes, netmail
|
||||
- [FidoNet](https://github.com/D-Modem/bbs/wiki/FidoNet) (or any FTN network): message areas that are echoes, netmail
|
||||
as private mail, file echoes (TIC), AreaFix and FileFix, nodelists, and a
|
||||
binkp mailer to exchange ZIP, ARC, ARJ or LHA bundles with links
|
||||
- [IRC](https://github.com/Neo-Desktop/bbs-sec/wiki/IRC): the chat rooms as IRC channels, built on parts of
|
||||
- [IRC](https://github.com/D-Modem/bbs/wiki/IRC): the chat rooms as IRC channels, built on parts of
|
||||
[ergo](https://github.com/ergochat/ergo); logins by SASL or the server password, TLS
|
||||
- [MRC](https://github.com/Neo-Desktop/bbs-sec/wiki/MRC): Multi Relay Chat, the BBSes' chat network, its rooms as chat rooms here
|
||||
- [doors](https://github.com/Neo-Desktop/bbs-sec/wiki/Doors): DOS door games in dosemu2 (in Docker), with a FOSSIL on COM1
|
||||
- [MRC](https://github.com/D-Modem/bbs/wiki/MRC): Multi Relay Chat, the BBSes' chat network, its rooms as chat rooms here
|
||||
- [doors](https://github.com/D-Modem/bbs/wiki/Doors): DOS door games in dosemu2 (in Docker), with a FOSSIL on COM1
|
||||
and the usual drop files, or any Linux program, for text callers; doors
|
||||
elsewhere by telnet or RLogin, and the door networks BBSLink and DoorParty
|
||||
- [chat](https://github.com/Neo-Desktop/bbs-sec/wiki/Chat-and-Paging): rooms, messages to a node, paging the sysop
|
||||
- [finger and gopher](https://github.com/Neo-Desktop/bbs-sec/wiki/Finger-and-Gopher): who is on, and chosen areas in gopherspace
|
||||
- [a web forum](https://github.com/Neo-Desktop/bbs-sec/wiki/Web-Forum): the message areas as a bulletin board in the browser, in the manner of Invision Power Board 3, or of IPB 5, 4, 2 or 1, Ikonboard, vBulletin 6 back to 2 or Lite, XenForo 2.3 back to 1, MyBB 1.8 back to 1.2, PunBB 1.4 and 1.2, FluxBB 1.5, YaBB 2.5 back to 1, Simple Machines Forum 3.0 back to 1, or phpBB 3.3 back to 1 (themes)
|
||||
- [image boards](https://github.com/Neo-Desktop/bbs-sec/wiki/Image-Boards): anonymous boards of images and replies at /chan/, in the manner of kusaba x and 4chan: bumping, sage, tripcodes (2channel's, and secure ones), greentext and >>quotes, a catalog, oekaki boards to draw on with stroke replay, staff's bans and reports, Yotsuba, Yotsuba B, Futaba, Burichan, Photon and Tomorrow styles, and 4chan's JSON; on the terminals too, with the pictures in sixel, kitty's or iTerm2's graphics, or coloured blocks, and on 3270s in vector graphics (PCOMM, in its 16 colours), programmed symbols (HostExplorer, Quick3270) or graphic escape's blocks (x3270)
|
||||
- [a web terminal](https://github.com/Neo-Desktop/bbs-sec/wiki/HTTP-API#the-web-terminal): the BBS in a browser (xterm.js, built in)
|
||||
- [an HTTP API](https://github.com/Neo-Desktop/bbs-sec/wiki/HTTP-API): REST, server-sent events, and WebSockets (JSON or protobuf) where web clients chat with terminal callers; Prometheus metrics
|
||||
- [customization](https://github.com/Neo-Desktop/bbs-sec/wiki/Customization): ANSI art and 3270 screens, menus of the sysop's, @-codes, the prompts' words
|
||||
- [access levels](https://github.com/Neo-Desktop/bbs-sec/wiki/Access-Levels): levels and flags, areas, doors and menus that require them, time and download limits a day, new users validated by the sysop
|
||||
- [chat](https://github.com/D-Modem/bbs/wiki/Chat-and-Paging): rooms, messages to a node, paging the sysop
|
||||
- [finger and gopher](https://github.com/D-Modem/bbs/wiki/Finger-and-Gopher): who is on, and chosen areas in gopherspace
|
||||
- [a web forum](https://github.com/D-Modem/bbs/wiki/Web-Forum): the message areas as a bulletin board in the browser, in the manner of Invision Power Board 3, or of IPB 5, 4, 2 or 1, Ikonboard, vBulletin 6 back to 2 or Lite, XenForo 2.3 back to 1, MyBB 1.8 back to 1.2, PunBB 1.4 and 1.2, FluxBB 1.5, YaBB 2.5 back to 1, Simple Machines Forum 3.0 back to 1, or phpBB 3.3 back to 1 (themes)
|
||||
- [image boards](https://github.com/D-Modem/bbs/wiki/Image-Boards): anonymous boards of images and replies at /chan/, in the manner of kusaba x and 4chan: bumping, sage, tripcodes (2channel's, and secure ones), greentext and >>quotes, a catalog, oekaki boards to draw on with stroke replay, staff's bans and reports, Yotsuba, Yotsuba B, Futaba, Burichan, Photon and Tomorrow styles, and 4chan's JSON; on the terminals too, with the pictures in sixel, kitty's or iTerm2's graphics, or coloured blocks, and on 3270s in vector graphics (PCOMM, in its 16 colours), programmed symbols (HostExplorer, Quick3270) or graphic escape's blocks (x3270)
|
||||
- [a web terminal](https://github.com/D-Modem/bbs/wiki/HTTP-API#the-web-terminal): the BBS in a browser (xterm.js, built in)
|
||||
- [an HTTP API](https://github.com/D-Modem/bbs/wiki/HTTP-API): REST, server-sent events, and WebSockets (JSON or protobuf) where web clients chat with terminal callers; Prometheus metrics
|
||||
- [customization](https://github.com/D-Modem/bbs/wiki/Customization): ANSI art and 3270 screens, menus of the sysop's, @-codes, the prompts' words
|
||||
- [access levels](https://github.com/D-Modem/bbs/wiki/Access-Levels): levels and flags, areas, doors and menus that require them, time and download limits a day, new users validated by the sysop
|
||||
- new users sign themselves up (or not: `new_users = no`)
|
||||
- [SQLite, PostgreSQL, MySQL or MariaDB](https://github.com/Neo-Desktop/bbs-sec/wiki/Databases), and `bbs db copy` between them
|
||||
- [SQLite, PostgreSQL, MySQL or MariaDB](https://github.com/D-Modem/bbs/wiki/Databases), and `bbs db copy` between them
|
||||
|
||||
## Quick start
|
||||
|
||||
@@ -109,44 +109,44 @@ bbs -config /etc/bbs/bbs.conf serve
|
||||
|
||||
[bbs.conf.sample](bbs.conf.sample) has every option, and
|
||||
[bbs.service.sample](bbs.service.sample) runs it under systemd. go3270 is
|
||||
replaced by the private [go3270-sec](https://github.com/Neo-Desktop/go3270-sec)
|
||||
fork: see [Building](https://github.com/Neo-Desktop/bbs-sec/wiki/Building).
|
||||
replaced by the private [go3270-sec](https://github.com/D-Modem/go3270)
|
||||
fork: see [Building](https://github.com/D-Modem/bbs/wiki/Building).
|
||||
|
||||
## Documentation
|
||||
|
||||
The documentation is in the [wiki](https://github.com/Neo-Desktop/bbs-sec/wiki/):
|
||||
The documentation is in the [wiki](https://github.com/D-Modem/bbs/wiki/):
|
||||
|
||||
| | |
|
||||
|---|---|
|
||||
| [Building](https://github.com/Neo-Desktop/bbs-sec/wiki/Building) | Go, the go3270-sec fork, make |
|
||||
| [Running](https://github.com/Neo-Desktop/bbs-sec/wiki/Running) | first start, systemd, the defaults |
|
||||
| [Administration](https://github.com/Neo-Desktop/bbs-sec/wiki/Administration) | the bbs command: users, areas, files, mail exchange |
|
||||
| [Databases](https://github.com/Neo-Desktop/bbs-sec/wiki/Databases) | SQLite, PostgreSQL, MySQL, MariaDB; moving between them |
|
||||
| [Backups](https://github.com/Neo-Desktop/bbs-sec/wiki/Backups) | the configuration, database and files, daily or now; putting one back |
|
||||
| [Configuration](https://github.com/Neo-Desktop/bbs-sec/wiki/Configuration) | bbs.conf: its sections, listeners; the configuration screens, reloading |
|
||||
| [Access levels](https://github.com/Neo-Desktop/bbs-sec/wiki/Access-Levels) | levels, flags, what areas, doors and menus require, daily limits, validation |
|
||||
| [Customization](https://github.com/Neo-Desktop/bbs-sec/wiki/Customization) | screens (ANSI art, 3270), menus, prompts |
|
||||
| [SSH](https://github.com/Neo-Desktop/bbs-sec/wiki/SSH) | the SSH listener, keys, host keys |
|
||||
| [Modem callers](https://github.com/Neo-Desktop/bbs-sec/wiki/Modem-Callers) | app_dmodem and modemmenu |
|
||||
| [TN3270](https://github.com/Neo-Desktop/bbs-sec/wiki/TN3270) | 3270 terminals, PF keys, 3270 graphics |
|
||||
| [Sixel graphics](https://github.com/Neo-Desktop/bbs-sec/wiki/Sixel-Graphics) | the logo on sixel terminals |
|
||||
| [PETSCII and RIP](https://github.com/Neo-Desktop/bbs-sec/wiki/PETSCII-and-RIP) | Commodore 64s and 128s; RIPscrip graphics and buttons |
|
||||
| [Terminal identification](https://github.com/Neo-Desktop/bbs-sec/wiki/Terminal-Identification) | VT terminals asked what they are: DEC graphics, monochrome, VT52 |
|
||||
| [Files and FTP](https://github.com/Neo-Desktop/bbs-sec/wiki/Files-and-FTP) | file areas, the FTP (FTPS) server |
|
||||
| [File transfers](https://github.com/Neo-Desktop/bbs-sec/wiki/File-Transfers) | X/Y/ZMODEM, Kermit, IND$FILE |
|
||||
| [Doors](https://github.com/Neo-Desktop/bbs-sec/wiki/Doors) | DOS doors in dosemu2 (Docker), Linux doors |
|
||||
| [Newsgroups and NNTP](https://github.com/Neo-Desktop/bbs-sec/wiki/Newsgroups-and-NNTP) | the NNTP server, news peers |
|
||||
| [FidoNet](https://github.com/Neo-Desktop/bbs-sec/wiki/FidoNet) | echomail, netmail, binkp, file echoes, AreaFix, nodelists |
|
||||
| [IRC](https://github.com/Neo-Desktop/bbs-sec/wiki/IRC) | the IRC server: the chat rooms as channels |
|
||||
| [MRC](https://github.com/Neo-Desktop/bbs-sec/wiki/MRC) | Multi Relay Chat: chat rooms shared with other BBSes |
|
||||
| [Offline mail](https://github.com/Neo-Desktop/bbs-sec/wiki/Offline-Mail) | QWK packets, REP replies, QWK networks |
|
||||
| [Chat and paging](https://github.com/Neo-Desktop/bbs-sec/wiki/Chat-and-Paging) | chat rooms, node messages, paging the sysop |
|
||||
| [Finger and gopher](https://github.com/Neo-Desktop/bbs-sec/wiki/Finger-and-Gopher) | who is on, and the BBS in gopherspace |
|
||||
| [Web forum](https://github.com/Neo-Desktop/bbs-sec/wiki/Web-Forum) | the message areas as a web forum |
|
||||
| [Image boards](https://github.com/Neo-Desktop/bbs-sec/wiki/Image-Boards) | anonymous image boards, as kusaba x and 4chan |
|
||||
| [HTTP API](https://github.com/Neo-Desktop/bbs-sec/wiki/HTTP-API) | REST, events, WebSockets in JSON and protobuf, tokens, metrics |
|
||||
| [Security](https://github.com/Neo-Desktop/bbs-sec/wiki/Security) | what is guarded, and how |
|
||||
| [Development](https://github.com/Neo-Desktop/bbs-sec/wiki/Development) | the source's layout, the tests |
|
||||
| [Building](https://github.com/D-Modem/bbs/wiki/Building) | Go, the go3270-sec fork, make |
|
||||
| [Running](https://github.com/D-Modem/bbs/wiki/Running) | first start, systemd, the defaults |
|
||||
| [Administration](https://github.com/D-Modem/bbs/wiki/Administration) | the bbs command: users, areas, files, mail exchange |
|
||||
| [Databases](https://github.com/D-Modem/bbs/wiki/Databases) | SQLite, PostgreSQL, MySQL, MariaDB; moving between them |
|
||||
| [Backups](https://github.com/D-Modem/bbs/wiki/Backups) | the configuration, database and files, daily or now; putting one back |
|
||||
| [Configuration](https://github.com/D-Modem/bbs/wiki/Configuration) | bbs.conf: its sections, listeners; the configuration screens, reloading |
|
||||
| [Access levels](https://github.com/D-Modem/bbs/wiki/Access-Levels) | levels, flags, what areas, doors and menus require, daily limits, validation |
|
||||
| [Customization](https://github.com/D-Modem/bbs/wiki/Customization) | screens (ANSI art, 3270), menus, prompts |
|
||||
| [SSH](https://github.com/D-Modem/bbs/wiki/SSH) | the SSH listener, keys, host keys |
|
||||
| [Modem callers](https://github.com/D-Modem/bbs/wiki/Modem-Callers) | app_dmodem and modemmenu |
|
||||
| [TN3270](https://github.com/D-Modem/bbs/wiki/TN3270) | 3270 terminals, PF keys, 3270 graphics |
|
||||
| [Sixel graphics](https://github.com/D-Modem/bbs/wiki/Sixel-Graphics) | the logo on sixel terminals |
|
||||
| [PETSCII and RIP](https://github.com/D-Modem/bbs/wiki/PETSCII-and-RIP) | Commodore 64s and 128s; RIPscrip graphics and buttons |
|
||||
| [Terminal identification](https://github.com/D-Modem/bbs/wiki/Terminal-Identification) | VT terminals asked what they are: DEC graphics, monochrome, VT52 |
|
||||
| [Files and FTP](https://github.com/D-Modem/bbs/wiki/Files-and-FTP) | file areas, the FTP (FTPS) server |
|
||||
| [File transfers](https://github.com/D-Modem/bbs/wiki/File-Transfers) | X/Y/ZMODEM, Kermit, IND$FILE |
|
||||
| [Doors](https://github.com/D-Modem/bbs/wiki/Doors) | DOS doors in dosemu2 (Docker), Linux doors |
|
||||
| [Newsgroups and NNTP](https://github.com/D-Modem/bbs/wiki/Newsgroups-and-NNTP) | the NNTP server, news peers |
|
||||
| [FidoNet](https://github.com/D-Modem/bbs/wiki/FidoNet) | echomail, netmail, binkp, file echoes, AreaFix, nodelists |
|
||||
| [IRC](https://github.com/D-Modem/bbs/wiki/IRC) | the IRC server: the chat rooms as channels |
|
||||
| [MRC](https://github.com/D-Modem/bbs/wiki/MRC) | Multi Relay Chat: chat rooms shared with other BBSes |
|
||||
| [Offline mail](https://github.com/D-Modem/bbs/wiki/Offline-Mail) | QWK packets, REP replies, QWK networks |
|
||||
| [Chat and paging](https://github.com/D-Modem/bbs/wiki/Chat-and-Paging) | chat rooms, node messages, paging the sysop |
|
||||
| [Finger and gopher](https://github.com/D-Modem/bbs/wiki/Finger-and-Gopher) | who is on, and the BBS in gopherspace |
|
||||
| [Web forum](https://github.com/D-Modem/bbs/wiki/Web-Forum) | the message areas as a web forum |
|
||||
| [Image boards](https://github.com/D-Modem/bbs/wiki/Image-Boards) | anonymous image boards, as kusaba x and 4chan |
|
||||
| [HTTP API](https://github.com/D-Modem/bbs/wiki/HTTP-API) | REST, events, WebSockets in JSON and protobuf, tokens, metrics |
|
||||
| [Security](https://github.com/D-Modem/bbs/wiki/Security) | what is guarded, and how |
|
||||
| [Development](https://github.com/D-Modem/bbs/wiki/Development) | the source's layout, the tests |
|
||||
|
||||
Its pages are kept in [`docs/wiki`](docs/wiki): edit them there (the
|
||||
[Wiki](.github/workflows/wiki.yml) workflow publishes them, or
|
||||
|
||||
+3
-3
@@ -5,9 +5,9 @@ import (
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/backup"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/bbs"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/server"
|
||||
"github.com/D-Modem/bbs/internal/backup"
|
||||
"github.com/D-Modem/bbs/internal/bbs"
|
||||
"github.com/D-Modem/bbs/internal/server"
|
||||
)
|
||||
|
||||
// backupCmd makes a backup, lists them, or puts one back.
|
||||
|
||||
+4
-4
@@ -10,10 +10,10 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/bbs"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/imageboard"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/server"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/bbs"
|
||||
"github.com/D-Modem/bbs/internal/imageboard"
|
||||
"github.com/D-Modem/bbs/internal/server"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// chanCmd runs the image boards' commands: boards and bans.
|
||||
|
||||
+7
-7
@@ -12,13 +12,13 @@ import (
|
||||
|
||||
"golang.org/x/term"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/backup"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/bbs"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/confedit"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/confui"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/server"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/textui"
|
||||
"github.com/D-Modem/bbs/internal/backup"
|
||||
"github.com/D-Modem/bbs/internal/bbs"
|
||||
"github.com/D-Modem/bbs/internal/confedit"
|
||||
"github.com/D-Modem/bbs/internal/confui"
|
||||
"github.com/D-Modem/bbs/internal/server"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/textui"
|
||||
)
|
||||
|
||||
// configCmd edits the configuration file: the screens (on this
|
||||
|
||||
+20
-20
@@ -57,26 +57,26 @@ import (
|
||||
|
||||
"golang.org/x/term"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/api"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/bbs"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/events"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/fido"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/files"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/finger"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/ftn"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/ftp"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/gopher"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/imageboard"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/ircd"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/menuauth"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/mrc"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/news"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/nntp"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/qwknet"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/script"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/server"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/sockets"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/api"
|
||||
"github.com/D-Modem/bbs/internal/bbs"
|
||||
"github.com/D-Modem/bbs/internal/events"
|
||||
"github.com/D-Modem/bbs/internal/fido"
|
||||
"github.com/D-Modem/bbs/internal/files"
|
||||
"github.com/D-Modem/bbs/internal/finger"
|
||||
"github.com/D-Modem/bbs/internal/ftn"
|
||||
"github.com/D-Modem/bbs/internal/ftp"
|
||||
"github.com/D-Modem/bbs/internal/gopher"
|
||||
"github.com/D-Modem/bbs/internal/imageboard"
|
||||
"github.com/D-Modem/bbs/internal/ircd"
|
||||
"github.com/D-Modem/bbs/internal/menuauth"
|
||||
"github.com/D-Modem/bbs/internal/mrc"
|
||||
"github.com/D-Modem/bbs/internal/news"
|
||||
"github.com/D-Modem/bbs/internal/nntp"
|
||||
"github.com/D-Modem/bbs/internal/qwknet"
|
||||
"github.com/D-Modem/bbs/internal/script"
|
||||
"github.com/D-Modem/bbs/internal/server"
|
||||
"github.com/D-Modem/bbs/internal/sockets"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// usage prints the commands and exits 2.
|
||||
|
||||
@@ -9,12 +9,12 @@ make install # /usr/local/bin/bbs, and /etc/bbs/bbs.conf if there is none
|
||||
There is no cgo: SQLite is [modernc.org/sqlite](https://modernc.org/sqlite); PostgreSQL is [pgx](https://github.com/jackc/pgx), MySQL [go-sql-driver](https://github.com/go-sql-driver/mysql), all built in.
|
||||
|
||||
go3270 is replaced (in `go.mod`) by the
|
||||
[go3270-sec](https://github.com/Neo-Desktop/go3270-sec) fork, which adds
|
||||
[go3270-sec](https://github.com/D-Modem/go3270) fork, which adds
|
||||
the query replies and graphics. While that repository is private, Go
|
||||
needs to fetch it from GitHub itself, with your credentials:
|
||||
|
||||
```
|
||||
export GOPRIVATE=github.com/Neo-Desktop/* # the Makefile sets this
|
||||
export GOPRIVATE=github.com/D-Modem/* # the Makefile sets this
|
||||
git config --global url."git@github.com:".insteadOf "https://github.com/" # or a token
|
||||
```
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[bbs.conf.sample](https://github.com/Neo-Desktop/bbs-sec/blob/HEAD/bbs.conf.sample) has every option. `[general]` is the
|
||||
[bbs.conf.sample](https://github.com/D-Modem/bbs/blob/HEAD/bbs.conf.sample) has every option. `[general]` is the
|
||||
system (name, database, log, banner, message of the day, timeouts, limits);
|
||||
each `[listen NAME]` is a port or unix socket:
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ These are shown by themselves:
|
||||
| `goodbye` | at a logoff | the `goodbye` line |
|
||||
|
||||
Others are shown by menus: `screen = NAME` on a menu, or a `screen:NAME`
|
||||
item. [screens.sample](https://github.com/Neo-Desktop/bbs-sec/tree/HEAD/screens.sample)
|
||||
item. [screens.sample](https://github.com/D-Modem/bbs/tree/HEAD/screens.sample)
|
||||
has a set to start from.
|
||||
|
||||
### @-codes
|
||||
|
||||
+1
-1
@@ -109,4 +109,4 @@ How each gets in:
|
||||
isn't checked: `bbs check` warns, and each call logs the key's
|
||||
fingerprint to put there.
|
||||
|
||||
**See also:** [Security](Security), [Future work](https://github.com/Neo-Desktop/bbs-sec/blob/HEAD/TODO.md)
|
||||
**See also:** [Security](Security), [Future work](https://github.com/D-Modem/bbs/blob/HEAD/TODO.md)
|
||||
@@ -5,7 +5,7 @@ there.
|
||||
|
||||
Their usual ports are below 1024: run the BBS with
|
||||
`AmbientCapabilities=CAP_NET_BIND_SERVICE` (see
|
||||
[bbs.service.sample](https://github.com/Neo-Desktop/bbs-sec/blob/HEAD/bbs.service.sample)),
|
||||
[bbs.service.sample](https://github.com/D-Modem/bbs/blob/HEAD/bbs.service.sample)),
|
||||
or give another port.
|
||||
|
||||
## Finger
|
||||
|
||||
@@ -173,7 +173,7 @@ seconds to keep it open.
|
||||
## WebSockets
|
||||
|
||||
Two endpoints speak the same protocol, `bbs.v1`, defined in
|
||||
[`proto/bbs.proto`](https://github.com/Neo-Desktop/bbs-sec/blob/HEAD/proto/bbs.proto):
|
||||
[`proto/bbs.proto`](https://github.com/D-Modem/bbs/blob/HEAD/proto/bbs.proto):
|
||||
|
||||
| endpoint | subprotocol | frames |
|
||||
|---|---|---|
|
||||
|
||||
+3
-3
@@ -3,8 +3,8 @@ of terminal: a TN3270 client (x3270, c3270, wc3270, Vista, PCOMM) gets
|
||||
full 3270 screens with PF keys, through
|
||||
[go3270](https://github.com/racingmars/go3270); any other telnet client
|
||||
gets a text BBS with ANSI color where the terminal has it. Modem callers
|
||||
come in through the D-Modem suite: [app_dmodem](https://github.com/Neo-Desktop/D-Modem-RE)
|
||||
straight from Asterisk, or [modemmenu](https://github.com/Neo-Desktop/PBX-Modem)
|
||||
come in through the D-Modem suite: [app_dmodem](https://github.com/D-Modem/D-Modem)
|
||||
straight from Asterisk, or [modemmenu](https://github.com/D-Modem/menu)
|
||||
after its login.
|
||||
|
||||
```
|
||||
@@ -127,4 +127,4 @@ What there is:
|
||||
| [Security](Security) | what is guarded, and how |
|
||||
| [Development](Development) | the source's layout, the tests |
|
||||
|
||||
Future work is in [TODO.md](https://github.com/Neo-Desktop/bbs-sec/blob/HEAD/TODO.md).
|
||||
Future work is in [TODO.md](https://github.com/D-Modem/bbs/blob/HEAD/TODO.md).
|
||||
@@ -6,7 +6,7 @@ bbs -config /etc/bbs/bbs.conf user add sysop -sysop
|
||||
bbs -config /etc/bbs/bbs.conf serve
|
||||
```
|
||||
|
||||
[bbs.service.sample](https://github.com/Neo-Desktop/bbs-sec/blob/HEAD/bbs.service.sample) runs it under systemd as its own
|
||||
[bbs.service.sample](https://github.com/D-Modem/bbs/blob/HEAD/bbs.service.sample) runs it under systemd as its own
|
||||
user, with the database in `/var/lib/bbs` and sockets in `/run/bbs`;
|
||||
`systemctl reload bbs` puts what may change while callers are on in force
|
||||
([Configuration](Configuration#changing-it-while-callers-are-on)).
|
||||
|
||||
+1
-1
@@ -82,7 +82,7 @@ PCOMM sends its graphics query replies (the Segment reply that says it
|
||||
has vector graphics, its colours) only when asked for them by name: the
|
||||
BBS asks with a Query List for whatever its Summary reply lists that did
|
||||
not come with the first Query. `cmd/gfxtest` in
|
||||
[go3270-sec](https://github.com/Neo-Desktop/go3270-sec) is a 3270 server
|
||||
[go3270-sec](https://github.com/D-Modem/go3270) is a 3270 server
|
||||
for trying vector graphics on an emulator, every record both ways logged.
|
||||
|
||||
Option T of the 3270 main menu, *Your terminal*, shows what the terminal
|
||||
|
||||
@@ -1 +1 @@
|
||||
These pages live in the repository's [`docs/wiki`](https://github.com/Neo-Desktop/bbs-sec/tree/HEAD/docs/wiki): change them there, not here.
|
||||
These pages live in the repository's [`docs/wiki`](https://github.com/D-Modem/bbs/tree/HEAD/docs/wiki): change them there, not here.
|
||||
@@ -7,7 +7,7 @@
|
||||
#
|
||||
# docs/wiki/publish.sh
|
||||
#
|
||||
# with push access to Neo-Desktop/bbs-sec (SSH or HTTPS credentials).
|
||||
# with push access to D-Modem/bbs (SSH or HTTPS credentials).
|
||||
set -eu
|
||||
|
||||
here=$(cd "$(dirname "$0")" && pwd)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
module github.com/Neo-Desktop/bbs-sec
|
||||
module github.com/D-Modem/bbs
|
||||
|
||||
go 1.24.0
|
||||
|
||||
@@ -48,4 +48,4 @@ require (
|
||||
modernc.org/token v1.1.0 // indirect
|
||||
)
|
||||
|
||||
replace github.com/racingmars/go3270 => github.com/Neo-Desktop/go3270-sec v0.9.14-0.20261018223830-6c7224eb64db
|
||||
replace github.com/racingmars/go3270 => github.com/D-Modem/go3270 v0.9.14-0.20261018223830-6c7224eb64db
|
||||
@@ -1,9 +1,9 @@
|
||||
filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA=
|
||||
filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4=
|
||||
github.com/D-Modem/go3270 v0.9.14-0.20261018223830-6c7224eb64db h1:jo0n8Y5hAZ6JKoyTsoBz6Fr+iNqxfwHXGzOCAM3F2go=
|
||||
github.com/D-Modem/go3270 v0.9.14-0.20261018223830-6c7224eb64db/go.mod h1:JCzKbsCGdevsd+2iLMRw3Cd+Wk7vmBeGlnfHmeJEcsU=
|
||||
github.com/Masterminds/semver/v3 v3.2.1 h1:RN9w6+7QoMeJVGyfmbcgs28Br8cvmnucEXnY0rYXWg0=
|
||||
github.com/Masterminds/semver/v3 v3.2.1/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ=
|
||||
github.com/Neo-Desktop/go3270-sec v0.9.14-0.20261018223830-6c7224eb64db h1:CjI39aIVZ6ZXcC3LvYvjznIzXEKfD5R9vs4SeW2SQkU=
|
||||
github.com/Neo-Desktop/go3270-sec v0.9.14-0.20261018223830-6c7224eb64db/go.mod h1:JCzKbsCGdevsd+2iLMRw3Cd+Wk7vmBeGlnfHmeJEcsU=
|
||||
github.com/coder/websocket v1.8.13 h1:f3QZdXy7uGVz+4uCJy2nTZyM0yTBj8yANEHhqlXZ9FE=
|
||||
github.com/coder/websocket v1.8.13/go.mod h1:LNVeNrXQZfe5qhS9ALED3uA+l5pPqvwXg3CKoDBB2gs=
|
||||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
|
||||
+8
-8
@@ -19,14 +19,14 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/bbs"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/fido"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/forum"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/imageboard"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/nntp"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/qwknet"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/sockets"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/bbs"
|
||||
"github.com/D-Modem/bbs/internal/fido"
|
||||
"github.com/D-Modem/bbs/internal/forum"
|
||||
"github.com/D-Modem/bbs/internal/imageboard"
|
||||
"github.com/D-Modem/bbs/internal/nntp"
|
||||
"github.com/D-Modem/bbs/internal/qwknet"
|
||||
"github.com/D-Modem/bbs/internal/sockets"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// Scopes a token may have.
|
||||
|
||||
@@ -24,13 +24,13 @@ import (
|
||||
"google.golang.org/protobuf/encoding/protojson"
|
||||
"google.golang.org/protobuf/proto"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/api/pb"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/bbs"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/events"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/files"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/guard"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/qwk"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/api/pb"
|
||||
"github.com/D-Modem/bbs/internal/bbs"
|
||||
"github.com/D-Modem/bbs/internal/events"
|
||||
"github.com/D-Modem/bbs/internal/files"
|
||||
"github.com/D-Modem/bbs/internal/guard"
|
||||
"github.com/D-Modem/bbs/internal/qwk"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
type site struct {
|
||||
|
||||
@@ -5,9 +5,9 @@ import (
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/forum"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/imageboard"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/forum"
|
||||
"github.com/D-Modem/bbs/internal/imageboard"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// The web forum's logins are the API's sessions: a browser's cookie holds
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/sockets"
|
||||
"github.com/D-Modem/bbs/internal/sockets"
|
||||
)
|
||||
|
||||
// metrics writes the Prometheus text format.
|
||||
|
||||
@@ -1655,7 +1655,7 @@ const file_proto_bbs_proto_rawDesc = "" +
|
||||
"\x04name\x18\x01 \x01(\tR\x04name\x12\x14\n" +
|
||||
"\x05users\x18\x02 \x03(\tR\x05users\".\n" +
|
||||
"\bRoomList\x12\"\n" +
|
||||
"\x05rooms\x18\x01 \x03(\v2\f.bbs.v1.RoomR\x05roomsB0Z.github.com/Neo-Desktop/bbs-sec/internal/api/pbb\x06proto3"
|
||||
"\x05rooms\x18\x01 \x03(\v2\f.bbs.v1.RoomR\x05roomsB(Z&github.com/D-Modem/bbs/internal/api/pbb\x06proto3"
|
||||
|
||||
var (
|
||||
file_proto_bbs_proto_rawDescOnce sync.Once
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/guard"
|
||||
"github.com/D-Modem/bbs/internal/guard"
|
||||
)
|
||||
|
||||
// TestClientIP: a trusted proxy's request is for the last hop before the
|
||||
|
||||
@@ -11,13 +11,13 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/bbs"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/events"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/files"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/ftn"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/news"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/qwk"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/bbs"
|
||||
"github.com/D-Modem/bbs/internal/events"
|
||||
"github.com/D-Modem/bbs/internal/files"
|
||||
"github.com/D-Modem/bbs/internal/ftn"
|
||||
"github.com/D-Modem/bbs/internal/news"
|
||||
"github.com/D-Modem/bbs/internal/qwk"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// routes is the API's endpoints, by method and path, each with the scope
|
||||
|
||||
@@ -14,8 +14,8 @@ import (
|
||||
"google.golang.org/protobuf/proto"
|
||||
"google.golang.org/protobuf/types/known/timestamppb"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/api/pb"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/bbs"
|
||||
"github.com/D-Modem/bbs/internal/api/pb"
|
||||
"github.com/D-Modem/bbs/internal/bbs"
|
||||
)
|
||||
|
||||
// Subprotocols of the WebSocket endpoints.
|
||||
|
||||
+6
-6
@@ -12,12 +12,12 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/bbs"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/door"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/screens"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/script"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/view"
|
||||
"github.com/D-Modem/bbs/internal/bbs"
|
||||
"github.com/D-Modem/bbs/internal/door"
|
||||
"github.com/D-Modem/bbs/internal/screens"
|
||||
"github.com/D-Modem/bbs/internal/script"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/view"
|
||||
)
|
||||
|
||||
// ErrLogoff: the caller logged off.
|
||||
|
||||
@@ -10,15 +10,15 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/bbs"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/door"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/events"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/files"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/ftn"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/guard"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/qwk"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/view"
|
||||
"github.com/D-Modem/bbs/internal/bbs"
|
||||
"github.com/D-Modem/bbs/internal/door"
|
||||
"github.com/D-Modem/bbs/internal/events"
|
||||
"github.com/D-Modem/bbs/internal/files"
|
||||
"github.com/D-Modem/bbs/internal/ftn"
|
||||
"github.com/D-Modem/bbs/internal/guard"
|
||||
"github.com/D-Modem/bbs/internal/qwk"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/view"
|
||||
)
|
||||
|
||||
// fake is a front end that answers from a script, in order, and keeps
|
||||
|
||||
@@ -8,9 +8,9 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/bbs"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/view"
|
||||
"github.com/D-Modem/bbs/internal/bbs"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/view"
|
||||
)
|
||||
|
||||
// The image boards (internal/imageboard's, at /chan/ on the web), on the
|
||||
|
||||
@@ -8,9 +8,9 @@ import (
|
||||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/imageboard"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/view"
|
||||
"github.com/D-Modem/bbs/internal/imageboard"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/view"
|
||||
)
|
||||
|
||||
// TestImageBoards: on a terminal, a thread started with an image sent by
|
||||
|
||||
@@ -8,10 +8,10 @@ import (
|
||||
"unicode"
|
||||
"unicode/utf8"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/bbs"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/files"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/view"
|
||||
"github.com/D-Modem/bbs/internal/bbs"
|
||||
"github.com/D-Modem/bbs/internal/files"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/view"
|
||||
)
|
||||
|
||||
// fileAreasFor are the file areas the caller downloads from or uploads to.
|
||||
|
||||
@@ -7,9 +7,9 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/bbs"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/view"
|
||||
"github.com/D-Modem/bbs/internal/bbs"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/view"
|
||||
)
|
||||
|
||||
// areas: the list of message areas
|
||||
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/qwk"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/view"
|
||||
"github.com/D-Modem/bbs/internal/qwk"
|
||||
"github.com/D-Modem/bbs/internal/view"
|
||||
)
|
||||
|
||||
// offline: QWK offline mail, the caller's new messages and mail in a
|
||||
|
||||
@@ -7,9 +7,9 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/bbs"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/view"
|
||||
"github.com/D-Modem/bbs/internal/bbs"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/view"
|
||||
)
|
||||
|
||||
// who: who's online, and a line to one of them
|
||||
|
||||
@@ -5,9 +5,9 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/bbs"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/view"
|
||||
"github.com/D-Modem/bbs/internal/bbs"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/view"
|
||||
)
|
||||
|
||||
// The new scan's areas, messages to the caller, and finding messages.
|
||||
|
||||
@@ -9,10 +9,10 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/bbs"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/confui"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/events"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/view"
|
||||
"github.com/D-Modem/bbs/internal/bbs"
|
||||
"github.com/D-Modem/bbs/internal/confui"
|
||||
"github.com/D-Modem/bbs/internal/events"
|
||||
"github.com/D-Modem/bbs/internal/view"
|
||||
)
|
||||
|
||||
// The sysop's tools: the nodes (watching, chat, kicking), the users, the
|
||||
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// Source is a directory of the BBS's files, or a file of its own (an SSH
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// system is a BBS's files: a configuration, a database, file areas.
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// Targets are where a restore puts what an archive has: this system's
|
||||
|
||||
@@ -8,9 +8,9 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/door"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/files"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/door"
|
||||
"github.com/D-Modem/bbs/internal/files"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// MaxLevel is the highest access level.
|
||||
|
||||
@@ -9,9 +9,9 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/door"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/guard"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/door"
|
||||
"github.com/D-Modem/bbs/internal/guard"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// TestRequire: requirements read, write back and allow as they say, a locked
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ import (
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// Stats count what the BBS has done since it started (for metrics).
|
||||
|
||||
+8
-8
@@ -6,12 +6,12 @@ package bbs
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/door"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/events"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/ftn"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/geoip"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/guard"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/screens"
|
||||
"github.com/D-Modem/bbs/internal/door"
|
||||
"github.com/D-Modem/bbs/internal/events"
|
||||
"github.com/D-Modem/bbs/internal/ftn"
|
||||
"github.com/D-Modem/bbs/internal/geoip"
|
||||
"github.com/D-Modem/bbs/internal/guard"
|
||||
"github.com/D-Modem/bbs/internal/screens"
|
||||
"log"
|
||||
"net"
|
||||
"os"
|
||||
@@ -21,8 +21,8 @@ import (
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/files"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/files"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// Settings are the [general] options.
|
||||
|
||||
@@ -3,7 +3,7 @@ package bbs
|
||||
import (
|
||||
"image"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// ImageBoards are the image boards (internal/imageboard's), as the
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// chatBBS is a BBS on a new store with alice, bob and a sysop (password
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// Permanent chat rooms: kept open when no one is in them, each with a
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// minCallTime is the least a call is given, however little of the day is
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// Sign-in codes: a caller logged in asks for one (their profile), and
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// TestSignInCodes: a sign-in code signs in its own user only, once, before it
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package bbs
|
||||
|
||||
import "github.com/Neo-Desktop/bbs-sec/internal/backup"
|
||||
import "github.com/D-Modem/bbs/internal/backup"
|
||||
|
||||
// Conf is the settings in force: those the BBS began with, or the last
|
||||
// Reconfigure's. It is not to be changed: Reconfigure makes another.
|
||||
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/screens"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/screens"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// MenuItem is a key of a sysop's menu and what it does.
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"errors"
|
||||
"strings"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/ftn"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/ftn"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// MaxMailToLen is the longest a mail's recipient is typed: a user, or a
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// fakeMenu is modemmenu's auth socket: alice's password is "menupass".
|
||||
|
||||
@@ -3,8 +3,8 @@ package bbs
|
||||
import (
|
||||
"strings"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/news"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/news"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// NewsSettings are what articles made here say of the system.
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"net"
|
||||
"strings"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/geoip"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/phone"
|
||||
"github.com/D-Modem/bbs/internal/geoip"
|
||||
"github.com/D-Modem/bbs/internal/phone"
|
||||
)
|
||||
|
||||
// Place is where a caller is, as far as is known: from the address, with
|
||||
|
||||
+2
-2
@@ -10,8 +10,8 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/qwk"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/qwk"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// QWK offline mail: a user takes their new messages and mail away in a
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/qwk"
|
||||
"github.com/D-Modem/bbs/internal/qwk"
|
||||
)
|
||||
|
||||
// TestQWK: a QWK packet holds the user's mail and the new messages of the areas
|
||||
|
||||
@@ -3,7 +3,7 @@ package bbs
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// Relay links chat rooms to a chat network elsewhere (MRC): it is told
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
|
||||
"golang.org/x/crypto/ssh"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// MaxSSHKeys is how many keys one user may have.
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"regexp"
|
||||
"strings"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/config"
|
||||
"github.com/D-Modem/bbs/internal/config"
|
||||
)
|
||||
|
||||
// Catalog is what the sections and keys are for, as the sample file
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
"sort"
|
||||
"strings"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/config"
|
||||
"github.com/D-Modem/bbs/internal/config"
|
||||
)
|
||||
|
||||
// Doc is a configuration file, line by line.
|
||||
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
bbssec "github.com/Neo-Desktop/bbs-sec"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/config"
|
||||
bbssec "github.com/D-Modem/bbs"
|
||||
"github.com/D-Modem/bbs/internal/config"
|
||||
)
|
||||
|
||||
const file = `; my BBS
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"sort"
|
||||
"testing"
|
||||
|
||||
bbssec "github.com/Neo-Desktop/bbs-sec"
|
||||
bbssec "github.com/D-Modem/bbs"
|
||||
)
|
||||
|
||||
// TestEveryKeyKnown: each key the loader reads is in the sample (and so
|
||||
|
||||
@@ -17,10 +17,10 @@ import (
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
bbssec "github.com/Neo-Desktop/bbs-sec"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/bbs"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/confedit"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/view"
|
||||
bbssec "github.com/D-Modem/bbs"
|
||||
"github.com/D-Modem/bbs/internal/bbs"
|
||||
"github.com/D-Modem/bbs/internal/confedit"
|
||||
"github.com/D-Modem/bbs/internal/view"
|
||||
)
|
||||
|
||||
// Editor is the screens, on a front end's UI.
|
||||
|
||||
@@ -10,11 +10,11 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
bbssec "github.com/Neo-Desktop/bbs-sec"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/backup"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/bbs"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/view"
|
||||
bbssec "github.com/D-Modem/bbs"
|
||||
"github.com/D-Modem/bbs/internal/backup"
|
||||
"github.com/D-Modem/bbs/internal/bbs"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/view"
|
||||
)
|
||||
|
||||
// step is the sysop's doing on a sheet (or a confirm, a form).
|
||||
|
||||
@@ -5,9 +5,9 @@ import (
|
||||
"sort"
|
||||
"strings"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/confedit"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/forum"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/view"
|
||||
"github.com/D-Modem/bbs/internal/confedit"
|
||||
"github.com/D-Modem/bbs/internal/forum"
|
||||
"github.com/D-Modem/bbs/internal/view"
|
||||
)
|
||||
|
||||
// sec is a section by kind and name.
|
||||
|
||||
@@ -9,9 +9,9 @@ import (
|
||||
"strings"
|
||||
"syscall"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/imageboard"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/view"
|
||||
"github.com/D-Modem/bbs/internal/imageboard"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/view"
|
||||
)
|
||||
|
||||
// maintenanceMenu is Maintenance: disk space, what message areas keep and
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/confedit"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/view"
|
||||
"github.com/D-Modem/bbs/internal/confedit"
|
||||
"github.com/D-Modem/bbs/internal/view"
|
||||
)
|
||||
|
||||
// The menus, by what a sysop looks for.
|
||||
|
||||
@@ -6,10 +6,10 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/bbs"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/confedit"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/view"
|
||||
"github.com/D-Modem/bbs/internal/bbs"
|
||||
"github.com/D-Modem/bbs/internal/confedit"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/view"
|
||||
)
|
||||
|
||||
// data is what the screens change in the database: copies of the
|
||||
|
||||
@@ -6,10 +6,10 @@ import (
|
||||
"sort"
|
||||
"strings"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/bbs"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/ftn"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/news"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/bbs"
|
||||
"github.com/D-Modem/bbs/internal/ftn"
|
||||
"github.com/D-Modem/bbs/internal/news"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// Kinds of subscription: echomail areas (AreaFix), file echoes (FileFix).
|
||||
|
||||
@@ -13,10 +13,10 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/archive"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/bbs"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/ftn"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/archive"
|
||||
"github.com/D-Modem/bbs/internal/bbs"
|
||||
"github.com/D-Modem/bbs/internal/ftn"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// storedMsg is a *.msg file's header and text (FTS-0001's stored message).
|
||||
|
||||
@@ -21,8 +21,8 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/ftn"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/sockets"
|
||||
"github.com/D-Modem/bbs/internal/ftn"
|
||||
"github.com/D-Modem/bbs/internal/sockets"
|
||||
)
|
||||
|
||||
// binkp (FTS-1026) commands.
|
||||
|
||||
@@ -15,10 +15,10 @@ import (
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/archive"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/bbs"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/ftn"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/archive"
|
||||
"github.com/D-Modem/bbs/internal/bbs"
|
||||
"github.com/D-Modem/bbs/internal/ftn"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// Settings are the system's on FidoNet.
|
||||
|
||||
@@ -14,11 +14,11 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/archive"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/bbs"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/files"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/ftn"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/archive"
|
||||
"github.com/D-Modem/bbs/internal/bbs"
|
||||
"github.com/D-Modem/bbs/internal/files"
|
||||
"github.com/D-Modem/bbs/internal/ftn"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// init makes bcrypt cheap, for the tests' users.
|
||||
|
||||
@@ -7,9 +7,9 @@ import (
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/archive"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/ftn"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/archive"
|
||||
"github.com/D-Modem/bbs/internal/ftn"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// maxNodelist is the most of a nodelist read (FidoNet's is some 3 MB).
|
||||
|
||||
@@ -10,8 +10,8 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/archive"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/ftn"
|
||||
"github.com/D-Modem/bbs/internal/archive"
|
||||
"github.com/D-Modem/bbs/internal/ftn"
|
||||
)
|
||||
|
||||
// nodelistText is a nodelist of zone 21, net 1: a hub at 1/100 called at
|
||||
|
||||
@@ -10,9 +10,9 @@ import (
|
||||
"time"
|
||||
"unicode/utf8"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/archive"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/ftn"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/archive"
|
||||
"github.com/D-Modem/bbs/internal/ftn"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// Tearline is the tear line of messages written here.
|
||||
|
||||
@@ -11,10 +11,10 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/bbs"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/files"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/ftn"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/bbs"
|
||||
"github.com/D-Modem/bbs/internal/files"
|
||||
"github.com/D-Modem/bbs/internal/ftn"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// ticWait is how long a TIC waits for its file before it goes to bad.
|
||||
|
||||
@@ -7,8 +7,8 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/ftn"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/ftn"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// TestFileEchoes: a node hatches a file into a file echo; its hub (create
|
||||
|
||||
@@ -10,11 +10,11 @@ import (
|
||||
"regexp"
|
||||
"strings"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/archive"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/bbs"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/ftn"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/news"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/archive"
|
||||
"github.com/D-Modem/bbs/internal/bbs"
|
||||
"github.com/D-Modem/bbs/internal/ftn"
|
||||
"github.com/D-Modem/bbs/internal/news"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// Limits on what is tossed.
|
||||
|
||||
@@ -16,8 +16,8 @@ import (
|
||||
|
||||
"golang.org/x/text/encoding/charmap"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/archive"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/archive"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// ErrNotArchive: the file is not an archive the BBS looks into.
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/archive"
|
||||
"github.com/D-Modem/bbs/internal/archive"
|
||||
)
|
||||
|
||||
// zipOf is a ZIP of those of FILE_ID.DIZ, doom.exe, sub/FILE_ID.DIZ and
|
||||
|
||||
@@ -18,7 +18,7 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// Errors of uploads and deletions.
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// init makes bcrypt cheap, for the tests' speed.
|
||||
|
||||
@@ -10,9 +10,9 @@ import (
|
||||
"time"
|
||||
"unicode/utf8"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/bbs"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/sockets"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/tcpserv"
|
||||
"github.com/D-Modem/bbs/internal/bbs"
|
||||
"github.com/D-Modem/bbs/internal/sockets"
|
||||
"github.com/D-Modem/bbs/internal/tcpserv"
|
||||
)
|
||||
|
||||
// Settings are the [finger] section's.
|
||||
|
||||
@@ -11,8 +11,8 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/bbs"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/bbs"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// setup is a BBS with alice on node 1 and a locked user, and a finger
|
||||
|
||||
@@ -13,8 +13,8 @@ import (
|
||||
"unicode"
|
||||
"unicode/utf8"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/geoip"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/geoip"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
var funcs = template.FuncMap{
|
||||
|
||||
@@ -22,8 +22,8 @@ import (
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/bbs"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/bbs"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
//go:embed templates/*.html themes/*/*.html static/*
|
||||
|
||||
@@ -18,8 +18,8 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/bbs"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/bbs"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// sessions are logins kept in memory (the API's are tested there).
|
||||
|
||||
@@ -7,8 +7,8 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/bbs"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/bbs"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// pageNum is the page asked for in the query, 1 if none or not a number.
|
||||
|
||||
+4
-4
@@ -23,10 +23,10 @@ import (
|
||||
ftpserver "github.com/fclairamb/ftpserverlib"
|
||||
"github.com/spf13/afero"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/bbs"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/files"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/sockets"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/bbs"
|
||||
"github.com/D-Modem/bbs/internal/files"
|
||||
"github.com/D-Modem/bbs/internal/sockets"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// TLS modes.
|
||||
|
||||
@@ -24,10 +24,10 @@ import (
|
||||
|
||||
client "github.com/jlaffaye/ftp"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/bbs"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/files"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/qwk"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/bbs"
|
||||
"github.com/D-Modem/bbs/internal/files"
|
||||
"github.com/D-Modem/bbs/internal/qwk"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// init makes passwords cheap to hash, for quick tests.
|
||||
|
||||
+2
-2
@@ -11,8 +11,8 @@ import (
|
||||
|
||||
ftpserver "github.com/fclairamb/ftpserverlib"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/bbs"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/qwk"
|
||||
"github.com/D-Modem/bbs/internal/bbs"
|
||||
"github.com/D-Modem/bbs/internal/qwk"
|
||||
)
|
||||
|
||||
// /qwk is a user's offline mail: BBSID.QWK, their packet, made as it is
|
||||
|
||||
@@ -13,11 +13,11 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/bbs"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/news"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/sockets"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/tcpserv"
|
||||
"github.com/D-Modem/bbs/internal/bbs"
|
||||
"github.com/D-Modem/bbs/internal/news"
|
||||
"github.com/D-Modem/bbs/internal/sockets"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/tcpserv"
|
||||
)
|
||||
|
||||
// Settings are the [gopher] section's.
|
||||
|
||||
@@ -13,9 +13,9 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/bbs"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/files"
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/bbs"
|
||||
"github.com/D-Modem/bbs/internal/files"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
type site struct {
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"regexp"
|
||||
"strings"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// The read-only JSON, in 4chan's API's shapes (github.com/4chan/4chan-API)
|
||||
|
||||
@@ -24,7 +24,7 @@ import (
|
||||
"golang.org/x/image/math/f64"
|
||||
"golang.org/x/image/math/fixed"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// A captcha for those who post without signing in: letters drawn crooked
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/geoip"
|
||||
"github.com/D-Modem/bbs/internal/geoip"
|
||||
)
|
||||
|
||||
// Poster IDs and country flags, on the boards that have them.
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/Neo-Desktop/bbs-sec/internal/store"
|
||||
"github.com/D-Modem/bbs/internal/store"
|
||||
)
|
||||
|
||||
// TestIDsAndFlags: a poster's ID, the same through a thread and another
|
||||
|
||||
Loaded 100 of 192 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user