]> Git Repo - dist-masscan.git/blob - serv/index.js
init
[dist-masscan.git] / serv / index.js
1 const app = require('express')();
2 const clients = 10;
3 const seed = 1277435
4 let connected = 0;
5 const command = `masscan --banners 0.0.0.0/0  -p25565 --rate=100 --source-port 61000 --resume paused.conf -oJ log.json --excludefile data/exclude.conf --seed ${seed}`;
6 app.use((req,res) =>{
7         if (connected >= clients) {
8                 res.status(400).end();
9                 console.error("Too many connections...");
10         } else {
11                 connected++;
12                 res.send(command+` --shards ${connected}/${clients}`).status(200).end();
13         }
14 });
15 app.listen(8080);
This page took 0.040547 seconds and 4 git commands to generate.