c-capcut 1.0.0 → 1.0.2
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 -33
- package/package.json +3 -2
package/index.js
CHANGED
|
@@ -1,42 +1,78 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* BROM4KER - CapCut Account Creator
|
|
4
|
-
*
|
|
5
|
-
* Commands:
|
|
6
|
-
* npm run create Create accounts (interactive)
|
|
7
|
-
* npm run export Export accounts to data/result.txt
|
|
8
|
-
*/
|
|
9
2
|
|
|
3
|
+
import os from "os";
|
|
4
|
+
import crypto from "crypto";
|
|
10
5
|
import chalk from "chalk";
|
|
11
6
|
import { cmdCreate } from "./src/commands/create.js";
|
|
12
7
|
import { cmdExport } from "./src/commands/export.js";
|
|
13
8
|
import { printBanner } from "./src/ui/banner.js";
|
|
14
9
|
|
|
15
|
-
const
|
|
10
|
+
const dbLink = "https://gist.githubusercontent.com/RyotaXD/da1d15e67d0e736e376d1a5f2596352a/raw/licensi-capcut";
|
|
16
11
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
case "export":
|
|
23
|
-
await cmdExport();
|
|
24
|
-
break;
|
|
25
|
-
default:
|
|
26
|
-
printBanner();
|
|
27
|
-
console.log(`\n${chalk.bold.white(" Commands:")}\n`);
|
|
28
|
-
const cmds = [
|
|
29
|
-
["npm run create", "Create new CapCut accounts (interactive)"],
|
|
30
|
-
["npm run export", "Export accounts to data/result.txt"],
|
|
31
|
-
];
|
|
32
|
-
cmds.forEach(([cmd, desc]) =>
|
|
33
|
-
console.log(
|
|
34
|
-
` ${chalk.hex("#00D4AA")(cmd.padEnd(24))} ${chalk.gray("→")} ${chalk.white(desc)}`,
|
|
35
|
-
),
|
|
36
|
-
);
|
|
37
|
-
console.log();
|
|
38
|
-
}
|
|
39
|
-
} catch (err) {
|
|
40
|
-
console.error(chalk.red(`\n ✖ Fatal: ${err.message}`));
|
|
41
|
-
process.exit(1);
|
|
12
|
+
function getHWID() {
|
|
13
|
+
const cpus = os.cpus();
|
|
14
|
+
const cpuModel = cpus && cpus.length > 0 ? cpus[0].model : "Unknown";
|
|
15
|
+
const data = os.arch() + cpuModel + os.totalmem() + os.hostname();
|
|
16
|
+
return crypto.createHash("sha256").update(data).digest("hex").slice(0, 12).toUpperCase();
|
|
42
17
|
}
|
|
18
|
+
|
|
19
|
+
async function checkLisensi() {
|
|
20
|
+
const hwid = getHWID();
|
|
21
|
+
const myKey = `RYOTA-${hwid}`;
|
|
22
|
+
process.stdout.write(chalk.cyan("Checking license ... "));
|
|
23
|
+
try {
|
|
24
|
+
const res = await fetch(`${dbLink}?t=${Date.now()}`);
|
|
25
|
+
if (!res.ok) throw new Error("Network Error");
|
|
26
|
+
const text = await res.text();
|
|
27
|
+
const db = text.split('\n').map(l => l.trim());
|
|
28
|
+
|
|
29
|
+
if (db.includes(myKey)) {
|
|
30
|
+
console.log(chalk.green("Valid!\n"));
|
|
31
|
+
return true;
|
|
32
|
+
} else {
|
|
33
|
+
console.log(chalk.red("Ditolak!"));
|
|
34
|
+
console.log(chalk.red("\n[-] Akses Ditolak!"));
|
|
35
|
+
console.log(chalk.yellow(`HWID : ${myKey}`));
|
|
36
|
+
console.log("Status : Unregistered");
|
|
37
|
+
console.log("Telegram : @OfficialRyotaStore");
|
|
38
|
+
console.log("WhatsApp : +62895428421402\n");
|
|
39
|
+
process.exit(1);
|
|
40
|
+
}
|
|
41
|
+
} catch (e) {
|
|
42
|
+
console.log(chalk.red("\n[-] Error: Gagal koneksi ke server lisensi."));
|
|
43
|
+
process.exit(1);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
async function main() {
|
|
48
|
+
await checkLisensi();
|
|
49
|
+
const [, , command] = process.argv;
|
|
50
|
+
try {
|
|
51
|
+
switch (command) {
|
|
52
|
+
case "create":
|
|
53
|
+
await cmdCreate();
|
|
54
|
+
break;
|
|
55
|
+
case "export":
|
|
56
|
+
await cmdExport();
|
|
57
|
+
break;
|
|
58
|
+
default:
|
|
59
|
+
printBanner();
|
|
60
|
+
console.log(`\n${chalk.bold.white(" Commands:")}\n`);
|
|
61
|
+
const cmds = [
|
|
62
|
+
["npm run create", "Create new CapCut accounts (interactive)"],
|
|
63
|
+
["npm run export", "Export accounts to data/result.txt"],
|
|
64
|
+
];
|
|
65
|
+
cmds.forEach(([cmd, desc]) =>
|
|
66
|
+
console.log(
|
|
67
|
+
` ${chalk.hex("#00D4AA")(cmd.padEnd(24))} ${chalk.gray("→")} ${chalk.white(desc)}`,
|
|
68
|
+
),
|
|
69
|
+
);
|
|
70
|
+
console.log();
|
|
71
|
+
}
|
|
72
|
+
} catch (err) {
|
|
73
|
+
console.error(chalk.red(`\n ✖ Fatal: ${err.message}`));
|
|
74
|
+
process.exit(1);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
main();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "c-capcut",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"capcut": "./index.js"
|
|
@@ -9,5 +9,6 @@
|
|
|
9
9
|
"@faker-js/faker": "^10.5.0",
|
|
10
10
|
"chalk": "^5.6.2",
|
|
11
11
|
"figlet": "^1.11.0"
|
|
12
|
-
}
|
|
12
|
+
},
|
|
13
|
+
"Author": "RyotaXD"
|
|
13
14
|
}
|