UNPKG

express-honeypots

Version:

This repository contains a collection of honeypots for the Express framework to prevent automated scanning.

15 lines (11 loc) 321 B
/** * Now we respond with vulnerable server version (CVE-2021-41773) */ export default function(router, options = { serverVersion: undefined }) { router.use((req, res, next) => { res.setHeader('server', options.serverVersion || 'Apache/2.4.49 (Ubuntu)' ); next(); }); }