added web challenge

This commit is contained in:
2024-03-01 18:21:45 +01:00
parent 4400d65c03
commit e9c312587d
11 changed files with 5257 additions and 0 deletions

15
bi0sctf23/web/src/bot.js Normal file
View File

@@ -0,0 +1,15 @@
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 };