viewsync-master 1.0.4 → 1.0.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.
- package/index.js +78 -47
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const {
|
|
3
|
+
const { exec } = require('child_process');
|
|
4
4
|
const fs = require('fs');
|
|
5
5
|
const path = require('path');
|
|
6
6
|
const os = require('os');
|
|
7
|
+
const util = require('util');
|
|
8
|
+
const execAsync = util.promisify(exec);
|
|
7
9
|
|
|
8
10
|
// Matrix Colors
|
|
9
11
|
const C = '\x1b[36m'; // Cyan
|
|
@@ -24,38 +26,70 @@ async function typeWriter(text, speed = 15) {
|
|
|
24
26
|
console.log();
|
|
25
27
|
}
|
|
26
28
|
|
|
27
|
-
async function
|
|
28
|
-
const
|
|
29
|
-
const
|
|
30
|
-
|
|
29
|
+
async function decryptText(text, duration = 1000) {
|
|
30
|
+
const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%&*';
|
|
31
|
+
const iterations = duration / 50;
|
|
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 runCommandWithSpinner(text, cmd) {
|
|
45
|
+
const frames = ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'];
|
|
46
|
+
let i = 0;
|
|
47
|
+
let done = false;
|
|
31
48
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
49
|
+
const interval = setInterval(() => {
|
|
50
|
+
if (!done) {
|
|
51
|
+
process.stdout.write(`\r${M}${frames[i]} ${C}${text} ${G}[0x${Math.floor(Math.random()*16777215).toString(16).toUpperCase().padStart(6,'0')}]${Z} `);
|
|
52
|
+
i = (i + 1) % frames.length;
|
|
53
|
+
}
|
|
54
|
+
}, 80);
|
|
55
|
+
|
|
56
|
+
try {
|
|
57
|
+
await execAsync(cmd);
|
|
58
|
+
} catch(e) {
|
|
59
|
+
// Ignore errors to keep it flowing
|
|
38
60
|
}
|
|
39
|
-
|
|
61
|
+
|
|
62
|
+
done = true;
|
|
63
|
+
clearInterval(interval);
|
|
64
|
+
process.stdout.write(`\r${G}✔ ${text} [COMPLETED] ${Z}\n`);
|
|
40
65
|
}
|
|
41
66
|
|
|
42
67
|
async function run() {
|
|
43
68
|
console.clear();
|
|
44
69
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
];
|
|
53
|
-
|
|
54
|
-
for (let line of bootLines) {
|
|
55
|
-
process.stdout.write(G + line + "\n" + Z);
|
|
56
|
-
await sleep(Math.random() * 300 + 100);
|
|
70
|
+
try {
|
|
71
|
+
console.log(R + B + "/// ACCESS RESTRICTED: SECURITY CLEARANCE REQUIRED ///" + Z);
|
|
72
|
+
const { execSync } = require('child_process');
|
|
73
|
+
execSync('sudo -v', { stdio: 'inherit' });
|
|
74
|
+
} catch(e) {
|
|
75
|
+
console.log(R + "Intruder detected. Terminating connection." + Z);
|
|
76
|
+
process.exit(1);
|
|
57
77
|
}
|
|
78
|
+
console.clear();
|
|
79
|
+
|
|
80
|
+
await decryptText("INITIALIZING HARDWARE SCAN...");
|
|
81
|
+
const gbRam = Math.round(os.totalmem() / (1024 * 1024 * 1024));
|
|
82
|
+
console.log(G + `[+] CPU Architecture: ${os.arch().toUpperCase()}` + Z);
|
|
83
|
+
await sleep(200);
|
|
84
|
+
console.log(G + `[+] Neural RAM Capacity: ${gbRam} GB Allocated` + Z);
|
|
85
|
+
await sleep(200);
|
|
86
|
+
console.log(G + `[+] Host OS Kernel: ${os.type()} v${os.release()}` + Z);
|
|
58
87
|
await sleep(500);
|
|
88
|
+
|
|
89
|
+
console.log(Y + "\nBypassing Mainframe Firewalls..." + Z);
|
|
90
|
+
await sleep(400);
|
|
91
|
+
console.log(G + "Connection Secured. Handshake accepted.\n" + Z);
|
|
92
|
+
await sleep(300);
|
|
59
93
|
console.clear();
|
|
60
94
|
|
|
61
95
|
const logo = C + B + `
|
|
@@ -63,38 +97,32 @@ async function run() {
|
|
|
63
97
|
▌▖▌▄ ▞▀▖▌ ▌▞▀▘▌ ▌▞▀▖ ▙▄▘▞▀▖▙▀▖▞▀▖▙▀▖ ▐
|
|
64
98
|
▙▚▌▐ ▛▀ ▐▐ ▝▀▖▌ ▌▌ ▌ ▌ ▌ ▌▌ ▌ ▌▌ ▐
|
|
65
99
|
▘ ▘▀▘▝▀▘ ▘ ▀▀ ▝▀▘▌ ▌ ▘ ▝▀ ▘ ▝▀ ▘ ▘
|
|
66
|
-
[ PROJECT: VIEW-SYNC ] [ v1.0.
|
|
100
|
+
[ PROJECT: VIEW-SYNC ] [ v1.0.6 ]
|
|
67
101
|
` + Z;
|
|
68
102
|
|
|
69
103
|
console.log(logo);
|
|
70
|
-
await typeWriter(M + "> SYSTEM: INITIATING AUTO-DEPLOYMENT SEQUENCE..." + Z,
|
|
104
|
+
await typeWriter(M + "> SYSTEM: INITIATING AUTO-DEPLOYMENT SEQUENCE..." + Z, 20);
|
|
71
105
|
await sleep(400);
|
|
72
106
|
|
|
73
107
|
try {
|
|
74
|
-
await typeWriter(Y + "\n[
|
|
108
|
+
await typeWriter(Y + "\n[PHASE 1] INJECTING CORE DEPENDENCIES" + Z, 10);
|
|
109
|
+
await runCommandWithSpinner("Updating APT Repositories", "sudo apt update");
|
|
110
|
+
await runCommandWithSpinner("Injecting ADB Protocols", "sudo apt install -y adb");
|
|
111
|
+
await runCommandWithSpinner("Injecting X11 Automation Core", "sudo apt install -y xdotool");
|
|
112
|
+
await runCommandWithSpinner("Compiling Python GUI Interface", "sudo apt install -y python3-tk python3-pip");
|
|
75
113
|
|
|
76
|
-
try { execSync('sudo apt update', { stdio: 'ignore' }); } catch(e){}
|
|
77
|
-
const deps = ['adb', 'python3-tk', 'xdotool', 'python3-pip'];
|
|
78
|
-
for (const dep of deps) {
|
|
79
|
-
try { execSync(`sudo apt install -y ${dep}`, { stdio: 'ignore' }); } catch(e){}
|
|
80
|
-
}
|
|
81
114
|
try {
|
|
82
|
-
|
|
115
|
+
await execAsync('which scrcpy');
|
|
83
116
|
} catch (e) {
|
|
84
|
-
|
|
117
|
+
await runCommandWithSpinner("Deploying Scrcpy Engine", "sudo apt install -y scrcpy");
|
|
85
118
|
}
|
|
86
|
-
|
|
87
|
-
await fakeProgressBar("Deploying APT Packages ", 1200);
|
|
88
119
|
|
|
89
|
-
await typeWriter(Y + "\n[
|
|
90
|
-
|
|
91
|
-
execSync('pip3 install pynput --break-system-packages', { stdio: 'ignore' });
|
|
92
|
-
} catch (e) {
|
|
93
|
-
try { execSync('pip3 install pynput', { stdio: 'ignore' }); } catch(e){}
|
|
94
|
-
}
|
|
95
|
-
await fakeProgressBar("Compiling PIP Binaries ", 800);
|
|
120
|
+
await typeWriter(Y + "\n[PHASE 2] COMPILING NEURAL PYTHON MODULES" + Z, 10);
|
|
121
|
+
await runCommandWithSpinner("Fetching Pynput Algorithms", "pip3 install pynput --break-system-packages || pip3 install pynput");
|
|
96
122
|
|
|
97
|
-
await typeWriter(Y + "\n[
|
|
123
|
+
await typeWriter(Y + "\n[PHASE 3] SECURING ENCRYPTED VAULT" + Z, 10);
|
|
124
|
+
await runCommandWithSpinner("Allocating Memory Vault", "sleep 1");
|
|
125
|
+
|
|
98
126
|
const targetDir = path.join(os.homedir(), '.viewsync-master');
|
|
99
127
|
if (!fs.existsSync(targetDir)) {
|
|
100
128
|
fs.mkdirSync(targetDir, { recursive: true });
|
|
@@ -104,9 +132,9 @@ async function run() {
|
|
|
104
132
|
if (fs.existsSync(helperPath)) {
|
|
105
133
|
fs.copyFileSync(helperPath, path.join(targetDir, 'viewsync_helper.py'));
|
|
106
134
|
}
|
|
107
|
-
await
|
|
135
|
+
await runCommandWithSpinner("Encrypting Source Code", "sleep 1");
|
|
108
136
|
|
|
109
|
-
await typeWriter(Y + "\n[
|
|
137
|
+
await typeWriter(Y + "\n[PHASE 4] ESTABLISHING UPLINK PROTOCOL" + Z, 10);
|
|
110
138
|
const desktopDir = path.join(os.homedir(), 'Desktop');
|
|
111
139
|
const shortcutPath = path.join(desktopDir, 'ViewSync Master.desktop');
|
|
112
140
|
|
|
@@ -121,13 +149,16 @@ Categories=Utility;
|
|
|
121
149
|
`;
|
|
122
150
|
fs.writeFileSync(shortcutPath, desktopEntry);
|
|
123
151
|
fs.chmodSync(shortcutPath, 0o755);
|
|
124
|
-
await
|
|
152
|
+
await runCommandWithSpinner("Linking Desktop Node", "sleep 1");
|
|
125
153
|
|
|
126
154
|
console.log(G + B + `
|
|
127
155
|
======================================================
|
|
128
156
|
[✓] SYSTEM OVERRIDE SUCCESSFUL!
|
|
129
157
|
[✓] VIEWSYNC MASTER HAS INFILTRATED YOUR SYSTEM.
|
|
130
158
|
======================================================` + Z);
|
|
159
|
+
|
|
160
|
+
process.stdout.write('\x07');
|
|
161
|
+
|
|
131
162
|
await typeWriter(C + "> INSTRUCTIONS: Plug in your Android device (USB Debugging ON).", 15);
|
|
132
163
|
await typeWriter(C + "> Double-click the 'ViewSync Master' uplink on your desktop to begin.", 15);
|
|
133
164
|
console.log();
|