Files
ctf/2024/bi0sctf/web/src/bot.js
2025-06-06 03:13:31 +02:00

16 lines
385 B
JavaScript

const puppeteer = require('puppeteer');
async function healthCheck(){
const browser = await puppeteer.launch({
headless: true,
args:['--no-sandbox']
});
const page = await browser.newPage();
await page.setJavaScriptEnabled(false)
const response=await page.goto("http://localhost:3000/view/Healthcheck")
await browser.close();
}
module.exports = { healthCheck };