-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
12 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,14 @@ | ||
# repl.me | ||
# replme | ||
|
||
Throwaway devenvs in the web. | ||
|
||
## idea | ||
## getting started | ||
|
||
Server manages docker containers. Streams io over ws connection between client and pty (bash) wrapper service running on each container. | ||
```bash | ||
git clone [email protected]:enowars/enowars8-service-replme.git | ||
cd enowars8-service-replme/service | ||
docker compose up | ||
``` | ||
|
||
Clients can access either shared container through user+pass, or let server spin up personal container identified through hash of username. | ||
|
||
Clients on shared container can interact with each other in "coffeelounge". Simple program to allow some chatting. | ||
|
||
## vulns | ||
|
||
1. Hash function for identification of personal container is weak. Has multiple master images. | ||
2. Shared container has misconfigurations allowing access of files of other users (TBD) | ||
3. Some vuln in coffeelounge (TBD) | ||
|
||
## flags | ||
|
||
Flags are stored in some user's home on the shared and personal containers. Flags are not stored in cleartext, but are printed in stdout by running some brainfuck code. Brainfuck program needs some input to generate the correct output from. Input could be "ENO". | ||
|
||
## stack | ||
|
||
- pty wrapper: xterm.js for prototype; C, libvterm for mvp | ||
- server: go / next.js (TBD) | ||
- client: html/css/js / react.js / next.js (TBD) | ||
- coffeelounge: java | ||
The service is now available via `http://127.0.0.1:6969` from the browser. | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters