generator-hl-challenge v1.8.10
Hacking-Lab Challenge Generator
This generator uses Yeoman to generate new Hacking-Lab Challenge Docker containers.
Installation NPM package
Please install the HL challenge generator with the commands below
sudo apt install nodejs npm
sudo npm install -g generator-hl-challenge yoCreate a CTF docker (not as user root)
Generate a temporary uuid using uuidgen. If you are going to create a docker for Hacking-Lab, the docker resource editor will return a uuid you must use. If you do not have access to the HL resource editor, ask for a uuid from them.
mkdir my-awesome-challengeyo hl-challengecd ./my-awesome-challengedocker-compose up --buildtesting
Delivery to Hacking-Lab
Hacking-Lab is expecting a dockerfiles.tar.gz. Thus, if you execute the prepare.sh, this will create the file needed by Hacking-Lab. This is the file you must upload into the HL resource editor. Ignore your local docker-compose.yml and configure the HL docker-compose.yml within the HL resource editor.
Video
Issues
Please leave feedback if you run into any problems.
Adding New Image Type
To add support for a new base image, you will have to:
- Add it to the base images in
generator/app/index.js - Add
generators/app/templates/{image}.mdwith the customization instructions - Add
generators/app/templates/{image}/*with a tiny sample application (optional, don't add root/ to the path) - OPTIONAL ADD `generators/app/templates/docker-compose.yml.{image}
DEV CORNER (deveoper of generator-hl-challenge package)
- cd /opt/generator-hl-challenge
- npm version patch (or minor or major)
- npm login
- npm publish
- sudo npm link
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
5 years ago
6 years ago
6 years ago
6 years ago