viewsync-master 1.0.3 → 1.0.5

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 +121 -43
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -5,70 +5,148 @@ const fs = require('fs');
5
5
  const path = require('path');
6
6
  const os = require('os');
7
7
 
8
- // Colors
9
- const cyan = '\x1b[36m';
10
- const green = '\x1b[32m';
11
- const yellow = '\x1b[33m';
12
- const red = '\x1b[31m';
13
- const reset = '\x1b[0m';
14
- const bold = '\x1b[1m';
8
+ // Matrix Colors
9
+ const C = '\x1b[36m'; // Cyan
10
+ const G = '\x1b[32m'; // Green
11
+ const Y = '\x1b[33m'; // Yellow
12
+ const R = '\x1b[31m'; // Red
13
+ const M = '\x1b[35m'; // Magenta
14
+ const W = '\x1b[37m'; // White
15
+ const Z = '\x1b[0m'; // Reset
16
+ const B = '\x1b[1m'; // Bold
15
17
 
16
18
  const sleep = (ms) => new Promise(r => setTimeout(r, ms));
17
19
 
20
+ async function typeWriter(text, speed = 15) {
21
+ for (let char of text) {
22
+ process.stdout.write(char);
23
+ await sleep(speed);
24
+ }
25
+ console.log();
26
+ }
27
+
28
+ async function decryptText(text, duration = 1000) {
29
+ const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%&*';
30
+ const iterations = duration / 50;
31
+
32
+ for (let i = 0; i < iterations; i++) {
33
+ let scrambled = '';
34
+ for (let j = 0; j < text.length; j++) {
35
+ if (text[j] === ' ') scrambled += ' ';
36
+ else scrambled += chars[Math.floor(Math.random() * chars.length)];
37
+ }
38
+ process.stdout.write('\r' + G + scrambled + Z);
39
+ await sleep(50);
40
+ }
41
+ process.stdout.write('\r' + C + B + text + Z + '\n');
42
+ }
43
+
44
+ async function fakeProgressBar(taskName, durationMs) {
45
+ const steps = 30;
46
+ const stepTime = durationMs / steps;
47
+ process.stdout.write(C + taskName + " " + Z);
48
+
49
+ for(let i=1; i<=steps; i++) {
50
+ process.stdout.write(G + '▓' + Z);
51
+ let memHex = `0x${Math.floor(Math.random()*16777215).toString(16).toUpperCase().padStart(6,'0')}`;
52
+ process.stdout.write(` \x1b[90m[${memHex}]\x1b[0m`);
53
+ await sleep(stepTime);
54
+ process.stdout.write('\b'.repeat(11));
55
+ }
56
+ console.log(G + " [DONE]" + Z);
57
+ }
58
+
59
+ async function spinner(text, duration) {
60
+ const frames = ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'];
61
+ let i = 0;
62
+ const interval = setInterval(() => {
63
+ process.stdout.write(`\r${M}${frames[i]} ${C}${text}${Z}`);
64
+ i = (i + 1) % frames.length;
65
+ }, 80);
66
+ await sleep(duration);
67
+ clearInterval(interval);
68
+ process.stdout.write(`\r${G}✔ ${text} [COMPLETED]${Z}\n`);
69
+ }
70
+
18
71
  async function run() {
19
72
  console.clear();
20
- console.log(cyan + bold + `
21
- ╦ ╦┬┌─┐┬ ┬╔═╗┬ ┬┌┐┌┌─┐
22
- ╚╗╔╝│├┤ │││╚═╗└┬┘││││
23
- ╚╝ ┴└─┘└┴┘╚═╝ ┘└┘└─┘
24
- [ MASTER EDITION ]
25
- ` + reset);
73
+
74
+ try {
75
+ console.log(R + B + "/// ACCESS RESTRICTED: SECURITY CLEARANCE REQUIRED ///" + Z);
76
+ execSync('sudo -v', { stdio: 'inherit' });
77
+ } catch(e) {
78
+ console.log(R + "Intruder detected. Terminating connection." + Z);
79
+ process.exit(1);
80
+ }
81
+ console.clear();
82
+
83
+ // Hardware Scan
84
+ await decryptText("INITIALIZING HARDWARE SCAN...");
85
+ const gbRam = Math.round(os.totalmem() / (1024 * 1024 * 1024));
86
+ console.log(G + `[+] CPU Architecture: ${os.arch().toUpperCase()}` + Z);
87
+ await sleep(200);
88
+ console.log(G + `[+] Neural RAM Capacity: ${gbRam} GB Allocated` + Z);
89
+ await sleep(200);
90
+ console.log(G + `[+] Host OS Kernel: ${os.type()} v${os.release()}` + Z);
91
+ await sleep(500);
92
+
93
+ console.log(Y + "\nBypassing Mainframe Firewalls..." + Z);
94
+ await sleep(400);
95
+ console.log(G + "Connection Secured. Handshake accepted.\n" + Z);
96
+ await sleep(300);
97
+ console.clear();
98
+
99
+ const logo = C + B + `
100
+ ▌ ▌▗ ▗ ▛▀▖ ▜
101
+ ▌▖▌▄ ▞▀▖▌ ▌▞▀▘▌ ▌▞▀▖ ▙▄▘▞▀▖▙▀▖▞▀▖▙▀▖ ▐
102
+ ▙▚▌▐ ▛▀ ▐▐ ▝▀▖▌ ▌▌ ▌ ▌ ▌ ▌▌ ▌ ▌▌ ▐
103
+ ▘ ▘▀▘▝▀▘ ▘ ▀▀ ▝▀▘▌ ▌ ▘ ▝▀ ▘ ▝▀ ▘ ▘
104
+ [ PROJECT: VIEW-SYNC ] [ v1.0.5 ]
105
+ ` + Z;
26
106
 
27
- console.log(green + "[SYSTEM] Initializing ViewSync protocol..." + reset);
28
- await sleep(800);
107
+ console.log(logo);
108
+ await typeWriter(M + "> SYSTEM: INITIATING AUTO-DEPLOYMENT SEQUENCE..." + Z, 20);
109
+ await sleep(400);
29
110
 
30
111
  try {
31
- console.log(cyan + "\n[1/4] Establishing secure dependencies... (sudo may be required)" + reset);
32
-
112
+ await typeWriter(Y + "\n[PHASE 1] INJECTING CORE DEPENDENCIES" + Z, 10);
113
+ await spinner("Updating APT Repositories", 800);
33
114
  try { execSync('sudo apt update', { stdio: 'ignore' }); } catch(e){}
115
+
116
+ await spinner("Resolving Quantum Packages", 1000);
34
117
  const deps = ['adb', 'python3-tk', 'xdotool', 'python3-pip'];
35
118
  for (const dep of deps) {
36
119
  try { execSync(`sudo apt install -y ${dep}`, { stdio: 'ignore' }); } catch(e){}
37
120
  }
38
-
39
121
  try {
40
122
  execSync('which scrcpy', { stdio: 'ignore' });
41
123
  } catch (e) {
42
124
  try { execSync('sudo apt install -y scrcpy', { stdio: 'ignore' }); } catch(e){}
43
125
  }
44
-
45
- console.log(green + " => Dependencies synced successfully." + reset);
46
- await sleep(500);
126
+ await fakeProgressBar("Deploying System Binaries ", 1200);
47
127
 
48
- console.log(cyan + "\n[2/4] Downloading Python AI environment modules..." + reset);
128
+ await typeWriter(Y + "\n[PHASE 2] COMPILING NEURAL PYTHON MODULES" + Z, 10);
129
+ await spinner("Fetching Pynput Algorithms", 900);
49
130
  try {
50
131
  execSync('pip3 install pynput --break-system-packages', { stdio: 'ignore' });
51
132
  } catch (e) {
52
133
  try { execSync('pip3 install pynput', { stdio: 'ignore' }); } catch(e){}
53
134
  }
54
- console.log(green + " => Modules injected." + reset);
55
- await sleep(500);
135
+ await fakeProgressBar("Compiling PIP Modules ", 1000);
56
136
 
57
- console.log(cyan + "\n[3/4] Compiling core framework in encrypted vault..." + reset);
137
+ await typeWriter(Y + "\n[PHASE 3] SECURING ENCRYPTED VAULT" + Z, 10);
58
138
  const targetDir = path.join(os.homedir(), '.viewsync-master');
59
139
  if (!fs.existsSync(targetDir)) {
60
140
  fs.mkdirSync(targetDir, { recursive: true });
61
141
  }
62
-
63
142
  fs.copyFileSync(path.join(__dirname, 'viewsync_main.py'), path.join(targetDir, 'viewsync_main.py'));
64
143
  const helperPath = path.join(__dirname, 'viewsync_helper.py');
65
144
  if (fs.existsSync(helperPath)) {
66
145
  fs.copyFileSync(helperPath, path.join(targetDir, 'viewsync_helper.py'));
67
146
  }
68
- console.log(green + " => Vault secured at ~/.viewsync-master" + reset);
69
- await sleep(500);
147
+ await fakeProgressBar("Encrypting Source Code ", 800);
70
148
 
71
- console.log(cyan + "\n[4/4] Creating terminal uplink (Desktop Icon)..." + reset);
149
+ await typeWriter(Y + "\n[PHASE 4] ESTABLISHING UPLINK PROTOCOL" + Z, 10);
72
150
  const desktopDir = path.join(os.homedir(), 'Desktop');
73
151
  const shortcutPath = path.join(desktopDir, 'ViewSync Master.desktop');
74
152
 
@@ -83,23 +161,23 @@ Categories=Utility;
83
161
  `;
84
162
  fs.writeFileSync(shortcutPath, desktopEntry);
85
163
  fs.chmodSync(shortcutPath, 0o755);
164
+ await fakeProgressBar("Linking Desktop Node ", 700);
165
+
166
+ console.log(G + B + `
167
+ ======================================================
168
+ [✓] SYSTEM OVERRIDE SUCCESSFUL!
169
+ [✓] VIEWSYNC MASTER HAS INFILTRATED YOUR SYSTEM.
170
+ ======================================================` + Z);
171
+
172
+ // Make the terminal beep!
173
+ process.stdout.write('\x07');
86
174
 
87
- console.log(green + " => Uplink established." + reset);
88
- await sleep(800);
89
-
90
- console.log(yellow + bold + `
91
- ===================================================
92
- ✨ SUCCESS! ViewSync Master is ready to launch. ✨
93
- ===================================================` + reset);
94
- console.log(cyan + `
95
- 1. Connect your Android device via USB.
96
- 2. Ensure USB Debugging is ON.
97
- 3. Double-click 'ViewSync Master' on your Desktop!
98
- ` + reset);
175
+ await typeWriter(C + "> INSTRUCTIONS: Plug in your Android device (USB Debugging ON).", 15);
176
+ await typeWriter(C + "> Double-click the 'ViewSync Master' uplink on your desktop to begin.", 15);
177
+ console.log();
99
178
 
100
179
  } catch (error) {
101
- console.log(red + bold + "\n[FATAL ERROR] Installation aborted." + reset);
102
- console.log(red + error.message + reset);
180
+ console.log(R + B + "\n[!] FATAL SYSTEM EXCEPTION: UPLINK SEVERED." + Z);
103
181
  }
104
182
  }
105
183
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viewsync-master",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "Live screen cropper and lag-free mirroring.",
5
5
  "main": "index.js",
6
6
  "bin": {