]> Git Repo - dist-masscan.git/commitdiff
init
authorJesse Taube <[email protected]>
Tue, 9 Aug 2022 02:54:38 +0000 (22:54 -0400)
committerJesse Taube <[email protected]>
Tue, 9 Aug 2022 02:54:38 +0000 (22:54 -0400)
Dockerfile [new file with mode: 0644]
Readme.md [new file with mode: 0644]
serv/index.js [new file with mode: 0644]
serv/package.json [new file with mode: 0644]

diff --git a/Dockerfile b/Dockerfile
new file mode 100644 (file)
index 0000000..664c1e8
--- /dev/null
@@ -0,0 +1,9 @@
+FROM ubuntu:latest
+RUN apt update
+RUN apt install -y curl nftables libpcap0.8 git build-essential
+RUN git clone https://github.com/Mr-Bossman/masscan.git
+RUN nft add rule ip filter INPUT tcp dport 61000 counter drop
+WORKDIR masscan
+RUN make
+RUN make install
+CMD curl -sN http://depl.networkcucks.com:8080 | bash
diff --git a/Readme.md b/Readme.md
new file mode 100644 (file)
index 0000000..a2fdf13
--- /dev/null
+++ b/Readme.md
@@ -0,0 +1,13 @@
+#Docker file and server to scan the web
+
+### Command to start docker container
+```
+$ sudo podman build --cap-add ALL  -t masscan .
+```
+
+### Command to start server to start and enumerate containers
+```
+$ npm i
+$ node .
+```
+
diff --git a/serv/index.js b/serv/index.js
new file mode 100644 (file)
index 0000000..d0b8734
--- /dev/null
@@ -0,0 +1,15 @@
+const app = require('express')();
+const clients = 10;
+const seed = 1277435
+let connected = 0;
+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}`;
+app.use((req,res) =>{
+       if (connected >= clients) {
+               res.status(400).end();
+               console.error("Too many connections...");
+       } else {
+               connected++;
+               res.send(command+` --shards ${connected}/${clients}`).status(200).end();
+       }
+});
+app.listen(8080);
diff --git a/serv/package.json b/serv/package.json
new file mode 100644 (file)
index 0000000..3d43ce6
--- /dev/null
@@ -0,0 +1,14 @@
+{
+  "name": "serv",
+  "version": "1.0.0",
+  "description": "",
+  "main": "index.js",
+  "scripts": {
+    "test": "echo \"Error: no test specified\" && exit 1"
+  },
+  "author": "",
+  "license": "ISC",
+  "dependencies": {
+    "express": "^4.18.1"
+  }
+}
This page took 0.027059 seconds and 4 git commands to generate.