RUN make install
FROM ubuntu:latest as final
COPY --from=build /usr/bin/masscan /usr/bin/masscan
-RUN apt update && apt install -y curl nftables libpcap0.8 && apt clean
-RUN nft add rule ip filter INPUT tcp dport 61000 counter drop
+RUN apt update && apt install -y curl iptables libpcap0.8 && apt clean
RUN curl https://raw.githubusercontent.com/Mr-Bossman/masscan/master/data/exclude.conf > exclude.conf
-CMD curl -sN http://depl.networkcucks.com:8080 | bash
+CMD iptables-nft -A INPUT -p tcp --dport 61000 -j DROP && curl -sNH "pass:carl" http://depl.networkcucks.com:8080 | bash
let connected = 0;
const command = `masscan --banners 0.0.0.0/0 -p25565 --rate=100 --source-port 61000 --excludefile exclude.conf --seed ${seed}`;
app.use((req,res) =>{
+ if (req.headers.pass === undefined || req.headers.pass !== "carl") {
+ res.status(400).end();
+ console.error(`${req.headers['x-forwarded-for'] || req.socket.remoteAddress} tried to connect using ${JSON.stringify(req.headers)} but is not allowed...`);
+ return;
+ }
if (connected >= clients) {
res.status(400).end();
console.error("Too many connections...");