基础镜像 WEB NodeJs Koa XSSBot
1.9K
TODO:
You should rewrite flag.sh when you use this image.
The $FLAG is not mandatory, but i hope you use it!
FROM ctfhub/base_web_nodejs_koa_xssbot
COPY src /home/bot/web
RUN cd /home && yarn add xxx; yarn cache clean;
- (English API)(https://pptr.dev/)
- (中文|Chinese API)(https://zhaoqize.github.io/puppeteer-api-zh_CN/#/)
If you want to do more, plz overwrite bot/main.js
// Use basic variables in config, it read from process.env
const config = require('../config');
const custom = async function (page) {
// Example
// Set Custom Cookie as Flag
await page.setCookie({
name: config.FLAG_KEY,
value: config.FLAG,
domain: config.DOMAIN,
path: "/",
httpOnly: false,
secure: false,
sameSite: "Lax"
});
// Add your custom page actions
}
module.exports = custom
Content type
Image
Digest
sha256:c61b07cc9…
Size
284 MB
Last updated
almost 4 years ago
docker pull ctfhub/base_web_nodejs_koa_xssbot