easy-honeypot
v0.1.2
Published
The easiest way to setup a honeypot in express
Downloads
17
Maintainers
Readme
easy-honeypot
The easiest way to run a honeypot, right in Express.
const honeypot = require("easy-honeypot");
const express = require('express')
const app = express()
app.all("*", function (req, res) {
const config = {
discord: process.env.DISCORD_WEBHOOK, // Your discord webhook (optional)
abuseipdb: process.env.ABUSEIPDB_KEY, // your AbuseIPDB API key (optional)
}
if (honeypot(req, config)) { // Both keys are optional, but recommended
res.send("Catched by honeypot")
} else {
res.send("404")
}
})
app.listen(3000, () => {
console.log("listening on *:3000");
});
Featurss
- Send discord messages
- Report to AbuseIpDB
- Customizable
- Easy to use