viewsync-master 1.0.4 → 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.
- package/index.js +69 -25
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -11,6 +11,7 @@ const G = '\x1b[32m'; // Green
|
|
|
11
11
|
const Y = '\x1b[33m'; // Yellow
|
|
12
12
|
const R = '\x1b[31m'; // Red
|
|
13
13
|
const M = '\x1b[35m'; // Magenta
|
|
14
|
+
const W = '\x1b[37m'; // White
|
|
14
15
|
const Z = '\x1b[0m'; // Reset
|
|
15
16
|
const B = '\x1b[1m'; // Bold
|
|
16
17
|
|
|
@@ -24,6 +25,22 @@ async function typeWriter(text, speed = 15) {
|
|
|
24
25
|
console.log();
|
|
25
26
|
}
|
|
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
|
+
|
|
27
44
|
async function fakeProgressBar(taskName, durationMs) {
|
|
28
45
|
const steps = 30;
|
|
29
46
|
const stepTime = durationMs / steps;
|
|
@@ -34,28 +51,49 @@ async function fakeProgressBar(taskName, durationMs) {
|
|
|
34
51
|
let memHex = `0x${Math.floor(Math.random()*16777215).toString(16).toUpperCase().padStart(6,'0')}`;
|
|
35
52
|
process.stdout.write(` \x1b[90m[${memHex}]\x1b[0m`);
|
|
36
53
|
await sleep(stepTime);
|
|
37
|
-
process.stdout.write('\b'.repeat(11));
|
|
54
|
+
process.stdout.write('\b'.repeat(11));
|
|
38
55
|
}
|
|
39
56
|
console.log(G + " [DONE]" + Z);
|
|
40
57
|
}
|
|
41
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
|
+
|
|
42
71
|
async function run() {
|
|
43
72
|
console.clear();
|
|
44
73
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"
|
|
50
|
-
|
|
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);
|
|
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);
|
|
57
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);
|
|
58
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);
|
|
59
97
|
console.clear();
|
|
60
98
|
|
|
61
99
|
const logo = C + B + `
|
|
@@ -63,17 +101,19 @@ async function run() {
|
|
|
63
101
|
▌▖▌▄ ▞▀▖▌ ▌▞▀▘▌ ▌▞▀▖ ▙▄▘▞▀▖▙▀▖▞▀▖▙▀▖ ▐
|
|
64
102
|
▙▚▌▐ ▛▀ ▐▐ ▝▀▖▌ ▌▌ ▌ ▌ ▌ ▌▌ ▌ ▌▌ ▐
|
|
65
103
|
▘ ▘▀▘▝▀▘ ▘ ▀▀ ▝▀▘▌ ▌ ▘ ▝▀ ▘ ▝▀ ▘ ▘
|
|
66
|
-
[ PROJECT: VIEW-SYNC ] [ v1.0.
|
|
104
|
+
[ PROJECT: VIEW-SYNC ] [ v1.0.5 ]
|
|
67
105
|
` + Z;
|
|
68
106
|
|
|
69
107
|
console.log(logo);
|
|
70
|
-
await typeWriter(M + "> SYSTEM: INITIATING AUTO-DEPLOYMENT SEQUENCE..." + Z,
|
|
108
|
+
await typeWriter(M + "> SYSTEM: INITIATING AUTO-DEPLOYMENT SEQUENCE..." + Z, 20);
|
|
71
109
|
await sleep(400);
|
|
72
110
|
|
|
73
111
|
try {
|
|
74
|
-
await typeWriter(Y + "\n[
|
|
75
|
-
|
|
112
|
+
await typeWriter(Y + "\n[PHASE 1] INJECTING CORE DEPENDENCIES" + Z, 10);
|
|
113
|
+
await spinner("Updating APT Repositories", 800);
|
|
76
114
|
try { execSync('sudo apt update', { stdio: 'ignore' }); } catch(e){}
|
|
115
|
+
|
|
116
|
+
await spinner("Resolving Quantum Packages", 1000);
|
|
77
117
|
const deps = ['adb', 'python3-tk', 'xdotool', 'python3-pip'];
|
|
78
118
|
for (const dep of deps) {
|
|
79
119
|
try { execSync(`sudo apt install -y ${dep}`, { stdio: 'ignore' }); } catch(e){}
|
|
@@ -83,18 +123,18 @@ async function run() {
|
|
|
83
123
|
} catch (e) {
|
|
84
124
|
try { execSync('sudo apt install -y scrcpy', { stdio: 'ignore' }); } catch(e){}
|
|
85
125
|
}
|
|
86
|
-
|
|
87
|
-
await fakeProgressBar("Deploying APT Packages ", 1200);
|
|
126
|
+
await fakeProgressBar("Deploying System Binaries ", 1200);
|
|
88
127
|
|
|
89
|
-
await typeWriter(Y + "\n[
|
|
128
|
+
await typeWriter(Y + "\n[PHASE 2] COMPILING NEURAL PYTHON MODULES" + Z, 10);
|
|
129
|
+
await spinner("Fetching Pynput Algorithms", 900);
|
|
90
130
|
try {
|
|
91
131
|
execSync('pip3 install pynput --break-system-packages', { stdio: 'ignore' });
|
|
92
132
|
} catch (e) {
|
|
93
133
|
try { execSync('pip3 install pynput', { stdio: 'ignore' }); } catch(e){}
|
|
94
134
|
}
|
|
95
|
-
await fakeProgressBar("Compiling PIP
|
|
135
|
+
await fakeProgressBar("Compiling PIP Modules ", 1000);
|
|
96
136
|
|
|
97
|
-
await typeWriter(Y + "\n[
|
|
137
|
+
await typeWriter(Y + "\n[PHASE 3] SECURING ENCRYPTED VAULT" + Z, 10);
|
|
98
138
|
const targetDir = path.join(os.homedir(), '.viewsync-master');
|
|
99
139
|
if (!fs.existsSync(targetDir)) {
|
|
100
140
|
fs.mkdirSync(targetDir, { recursive: true });
|
|
@@ -104,9 +144,9 @@ async function run() {
|
|
|
104
144
|
if (fs.existsSync(helperPath)) {
|
|
105
145
|
fs.copyFileSync(helperPath, path.join(targetDir, 'viewsync_helper.py'));
|
|
106
146
|
}
|
|
107
|
-
await fakeProgressBar("Encrypting
|
|
147
|
+
await fakeProgressBar("Encrypting Source Code ", 800);
|
|
108
148
|
|
|
109
|
-
await typeWriter(Y + "\n[
|
|
149
|
+
await typeWriter(Y + "\n[PHASE 4] ESTABLISHING UPLINK PROTOCOL" + Z, 10);
|
|
110
150
|
const desktopDir = path.join(os.homedir(), 'Desktop');
|
|
111
151
|
const shortcutPath = path.join(desktopDir, 'ViewSync Master.desktop');
|
|
112
152
|
|
|
@@ -121,13 +161,17 @@ Categories=Utility;
|
|
|
121
161
|
`;
|
|
122
162
|
fs.writeFileSync(shortcutPath, desktopEntry);
|
|
123
163
|
fs.chmodSync(shortcutPath, 0o755);
|
|
124
|
-
await fakeProgressBar("Linking Desktop Node
|
|
164
|
+
await fakeProgressBar("Linking Desktop Node ", 700);
|
|
125
165
|
|
|
126
166
|
console.log(G + B + `
|
|
127
167
|
======================================================
|
|
128
168
|
[✓] SYSTEM OVERRIDE SUCCESSFUL!
|
|
129
169
|
[✓] VIEWSYNC MASTER HAS INFILTRATED YOUR SYSTEM.
|
|
130
170
|
======================================================` + Z);
|
|
171
|
+
|
|
172
|
+
// Make the terminal beep!
|
|
173
|
+
process.stdout.write('\x07');
|
|
174
|
+
|
|
131
175
|
await typeWriter(C + "> INSTRUCTIONS: Plug in your Android device (USB Debugging ON).", 15);
|
|
132
176
|
await typeWriter(C + "> Double-click the 'ViewSync Master' uplink on your desktop to begin.", 15);
|
|
133
177
|
console.log();
|