docs
This commit is contained in:
21
README.md
Normal file
21
README.md
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
# Docker SSH Authorized Keys Challenge
|
||||||
|
|
||||||
|
This is a simple challenge utilizing docker-compose to setup a ssh client/control environment where the controller is trying to connect into the client to dump a file.
|
||||||
|
|
||||||
|
## Setup
|
||||||
|
|
||||||
|
Running `docker-compose up -d --build` will setup a default environment.
|
||||||
|
|
||||||
|
Users will be setup on the client using the teamX format.
|
||||||
|
Initial user password can be obtained from the container logs of `client`.
|
||||||
|
All "scoring" public/private keys will be stored under a local `keys` directory.
|
||||||
|
|
||||||
|
## Goal
|
||||||
|
|
||||||
|
The goal is to give teams access to login to the `client` container and properly setup a provided public key.
|
||||||
|
Once the key is properly setup a file will appear in the appropriate teams home folder.
|
||||||
|
Since could take up to a minute to show up after completion.
|
||||||
|
|
||||||
|
For added complexity, the `SSHD_CHALLENGE_DIR` exists changing the default AuthorizedKeysFile within SSHD.
|
||||||
|
This adds a further challenge since teams will need to checkout the configuration in `/etc/ssh/sshd_config` for the correct structure.
|
||||||
|
|
||||||
@@ -12,6 +12,8 @@ services:
|
|||||||
|
|
||||||
controller:
|
controller:
|
||||||
image: local/c2games-controller:latest
|
image: local/c2games-controller:latest
|
||||||
|
ports:
|
||||||
|
- "22022:22"
|
||||||
build:
|
build:
|
||||||
context: ./controller
|
context: ./controller
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
Reference in New Issue
Block a user