viewsync-master 1.0.3 → 1.0.4

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 +75 -41
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -5,70 +5,108 @@ 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 Z = '\x1b[0m'; // Reset
15
+ const B = '\x1b[1m'; // Bold
15
16
 
16
17
  const sleep = (ms) => new Promise(r => setTimeout(r, ms));
17
18
 
19
+ async function typeWriter(text, speed = 15) {
20
+ for (let char of text) {
21
+ process.stdout.write(char);
22
+ await sleep(speed);
23
+ }
24
+ console.log();
25
+ }
26
+
27
+ async function fakeProgressBar(taskName, durationMs) {
28
+ const steps = 30;
29
+ const stepTime = durationMs / steps;
30
+ process.stdout.write(C + taskName + " " + Z);
31
+
32
+ for(let i=1; i<=steps; i++) {
33
+ process.stdout.write(G + '▓' + Z);
34
+ let memHex = `0x${Math.floor(Math.random()*16777215).toString(16).toUpperCase().padStart(6,'0')}`;
35
+ process.stdout.write(` \x1b[90m[${memHex}]\x1b[0m`);
36
+ await sleep(stepTime);
37
+ process.stdout.write('\b'.repeat(11)); // Erase hex code
38
+ }
39
+ console.log(G + " [DONE]" + Z);
40
+ }
41
+
18
42
  async function run() {
19
43
  console.clear();
20
- console.log(cyan + bold + `
21
- ╦ ╦┬┌─┐┬ ┬╔═╗┬ ┬┌┐┌┌─┐
22
- ╚╗╔╝│├┤ │││╚═╗└┬┘││││
23
- ╚╝ ┴└─┘└┴┘╚═╝ ┴ ┘└┘└─┘
24
- [ MASTER EDITION ]
25
- ` + reset);
44
+
45
+ // Fake boot sequence
46
+ const bootLines = [
47
+ "BIOS Version 9.04.14",
48
+ "Loading Neural Engine v4.2...",
49
+ "Bypassing Subnet Firewalls...",
50
+ "Establishing secure SSH uplink to host...",
51
+ "ACCESS GRANTED."
52
+ ];
53
+
54
+ for (let line of bootLines) {
55
+ process.stdout.write(G + line + "\n" + Z);
56
+ await sleep(Math.random() * 300 + 100);
57
+ }
58
+ await sleep(500);
59
+ console.clear();
60
+
61
+ const logo = C + B + `
62
+ ▌ ▌▗ ▗ ▛▀▖ ▜
63
+ ▌▖▌▄ ▞▀▖▌ ▌▞▀▘▌ ▌▞▀▖ ▙▄▘▞▀▖▙▀▖▞▀▖▙▀▖ ▐
64
+ ▙▚▌▐ ▛▀ ▐▐ ▝▀▖▌ ▌▌ ▌ ▌ ▌ ▌▌ ▌ ▌▌ ▐
65
+ ▘ ▘▀▘▝▀▘ ▘ ▀▀ ▝▀▘▌ ▌ ▘ ▝▀ ▘ ▝▀ ▘ ▘
66
+ [ PROJECT: VIEW-SYNC ] [ v1.0.4 ]
67
+ ` + Z;
26
68
 
27
- console.log(green + "[SYSTEM] Initializing ViewSync protocol..." + reset);
28
- await sleep(800);
69
+ console.log(logo);
70
+ await typeWriter(M + "> SYSTEM: INITIATING AUTO-DEPLOYMENT SEQUENCE..." + Z, 30);
71
+ await sleep(400);
29
72
 
30
73
  try {
31
- console.log(cyan + "\n[1/4] Establishing secure dependencies... (sudo may be required)" + reset);
74
+ await typeWriter(Y + "\n[STEP 1] INJECTING CORE DEPENDENCIES (SUDO ACCESS REQUIRED)" + Z, 10);
32
75
 
33
76
  try { execSync('sudo apt update', { stdio: 'ignore' }); } catch(e){}
34
77
  const deps = ['adb', 'python3-tk', 'xdotool', 'python3-pip'];
35
78
  for (const dep of deps) {
36
79
  try { execSync(`sudo apt install -y ${dep}`, { stdio: 'ignore' }); } catch(e){}
37
80
  }
38
-
39
81
  try {
40
82
  execSync('which scrcpy', { stdio: 'ignore' });
41
83
  } catch (e) {
42
84
  try { execSync('sudo apt install -y scrcpy', { stdio: 'ignore' }); } catch(e){}
43
85
  }
44
86
 
45
- console.log(green + " => Dependencies synced successfully." + reset);
46
- await sleep(500);
87
+ await fakeProgressBar("Deploying APT Packages ", 1200);
47
88
 
48
- console.log(cyan + "\n[2/4] Downloading Python AI environment modules..." + reset);
89
+ await typeWriter(Y + "\n[STEP 2] COMPILING NEURAL PYTHON MODULES" + Z, 10);
49
90
  try {
50
91
  execSync('pip3 install pynput --break-system-packages', { stdio: 'ignore' });
51
92
  } catch (e) {
52
93
  try { execSync('pip3 install pynput', { stdio: 'ignore' }); } catch(e){}
53
94
  }
54
- console.log(green + " => Modules injected." + reset);
55
- await sleep(500);
95
+ await fakeProgressBar("Compiling PIP Binaries ", 800);
56
96
 
57
- console.log(cyan + "\n[3/4] Compiling core framework in encrypted vault..." + reset);
97
+ await typeWriter(Y + "\n[STEP 3] SECURING ENCRYPTED VAULT" + Z, 10);
58
98
  const targetDir = path.join(os.homedir(), '.viewsync-master');
59
99
  if (!fs.existsSync(targetDir)) {
60
100
  fs.mkdirSync(targetDir, { recursive: true });
61
101
  }
62
-
63
102
  fs.copyFileSync(path.join(__dirname, 'viewsync_main.py'), path.join(targetDir, 'viewsync_main.py'));
64
103
  const helperPath = path.join(__dirname, 'viewsync_helper.py');
65
104
  if (fs.existsSync(helperPath)) {
66
105
  fs.copyFileSync(helperPath, path.join(targetDir, 'viewsync_helper.py'));
67
106
  }
68
- console.log(green + " => Vault secured at ~/.viewsync-master" + reset);
69
- await sleep(500);
107
+ await fakeProgressBar("Encrypting source code ", 900);
70
108
 
71
- console.log(cyan + "\n[4/4] Creating terminal uplink (Desktop Icon)..." + reset);
109
+ await typeWriter(Y + "\n[STEP 4] ESTABLISHING UPLINK PROTOCOL" + Z, 10);
72
110
  const desktopDir = path.join(os.homedir(), 'Desktop');
73
111
  const shortcutPath = path.join(desktopDir, 'ViewSync Master.desktop');
74
112
 
@@ -83,23 +121,19 @@ Categories=Utility;
83
121
  `;
84
122
  fs.writeFileSync(shortcutPath, desktopEntry);
85
123
  fs.chmodSync(shortcutPath, 0o755);
86
-
87
- console.log(green + " => Uplink established." + reset);
88
- await sleep(800);
124
+ await fakeProgressBar("Linking Desktop Node ", 600);
89
125
 
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);
126
+ console.log(G + B + `
127
+ ======================================================
128
+ [✓] SYSTEM OVERRIDE SUCCESSFUL!
129
+ [✓] VIEWSYNC MASTER HAS INFILTRATED YOUR SYSTEM.
130
+ ======================================================` + Z);
131
+ await typeWriter(C + "> INSTRUCTIONS: Plug in your Android device (USB Debugging ON).", 15);
132
+ await typeWriter(C + "> Double-click the 'ViewSync Master' uplink on your desktop to begin.", 15);
133
+ console.log();
99
134
 
100
135
  } catch (error) {
101
- console.log(red + bold + "\n[FATAL ERROR] Installation aborted." + reset);
102
- console.log(red + error.message + reset);
136
+ console.log(R + B + "\n[!] FATAL SYSTEM EXCEPTION: UPLINK SEVERED." + Z);
103
137
  }
104
138
  }
105
139
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viewsync-master",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Live screen cropper and lag-free mirroring.",
5
5
  "main": "index.js",
6
6
  "bin": {