added web challenge
This commit is contained in:
15
bi0sctf23/web/src/bot.js
Normal file
15
bi0sctf23/web/src/bot.js
Normal 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 };
|
||||
Reference in New Issue
Block a user