vinzzsync-wacli 1.0.0

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 (49) hide show
  1. package/c.js +2 -0
  2. package/func.js +3263 -0
  3. package/index.js +2416 -0
  4. package/index2.js +3611 -0
  5. package/lib/sqlAuth.js +109 -0
  6. package/package.json +21 -0
  7. package/plugins/_loader.js +191 -0
  8. package/plugins/addplugins.js +93 -0
  9. package/plugins/backup.js +91 -0
  10. package/plugins/cekch.js +157 -0
  11. package/plugins/cekgb.js +105 -0
  12. package/plugins/clear.js +12 -0
  13. package/plugins/cmd.js +69 -0
  14. package/plugins/cmfil.js +110 -0
  15. package/plugins/cms.js +474 -0
  16. package/plugins/delplugins.js +57 -0
  17. package/plugins/dmsg.js +112 -0
  18. package/plugins/eval.js +175 -0
  19. package/plugins/evfil.js +86 -0
  20. package/plugins/exit.js +11 -0
  21. package/plugins/fadm.js +107 -0
  22. package/plugins/fakemsg.js +154 -0
  23. package/plugins/fakesize.js +204 -0
  24. package/plugins/fclick.js +111 -0
  25. package/plugins/fitnah.js +87 -0
  26. package/plugins/getfile.js +169 -0
  27. package/plugins/getplugins.js +71 -0
  28. package/plugins/getquoted.js +76 -0
  29. package/plugins/getusn.js +92 -0
  30. package/plugins/groups.js +62 -0
  31. package/plugins/help.js +19 -0
  32. package/plugins/ht.js +45 -0
  33. package/plugins/ht2.js +59 -0
  34. package/plugins/ht3.js +66 -0
  35. package/plugins/isbot.js +177 -0
  36. package/plugins/listplugins.js +103 -0
  37. package/plugins/me.js +95 -0
  38. package/plugins/minigames.js +144 -0
  39. package/plugins/ping.js +124 -0
  40. package/plugins/quoted.js +102 -0
  41. package/plugins/rvo.js +88 -0
  42. package/plugins/savefile.js +334 -0
  43. package/plugins/send.js +52 -0
  44. package/plugins/session.js +18 -0
  45. package/plugins/smsg.js +204 -0
  46. package/plugins/status.js +18 -0
  47. package/plugins/typing_troll.js +91 -0
  48. package/pp.jpg +0 -0
  49. package/vkazee-send-message.js +1238 -0
@@ -0,0 +1,175 @@
1
+ let syntaxerror;
2
+
3
+ async function getSyntaxError() {
4
+ if (!syntaxerror) {
5
+ const mod = await import('syntax-error');
6
+ syntaxerror = mod.default ?? mod;
7
+ }
8
+
9
+ return syntaxerror;
10
+ }
11
+
12
+ class CustomArray extends Array {
13
+ constructor(...args) {
14
+ if (typeof args[0] === 'number') {
15
+ return super(Math.min(args[0], 10000));
16
+ }
17
+
18
+ return super(...args);
19
+ }
20
+ }
21
+
22
+ export default {
23
+ command: 'eval',
24
+
25
+ async run(ctx) {
26
+ const {
27
+ m,
28
+ args = [],
29
+ text = '',
30
+ sock,
31
+ util,
32
+ fs,
33
+ path,
34
+ crypto,
35
+ messageStore
36
+ } = ctx;
37
+
38
+ if (!m) {
39
+ console.log('[EVAL] context m tidak tersedia');
40
+ return;
41
+ }
42
+
43
+ const code = String(text || '').trim();
44
+
45
+ if (!code) {
46
+ await m.reply({
47
+ text: 'Gunakan: .eval <kode>'
48
+ });
49
+ return;
50
+ }
51
+
52
+ let result;
53
+ let syntax = '';
54
+ let count = 15;
55
+
56
+ try {
57
+ const AsyncFunction = Object.getPrototypeOf(
58
+ async function () {}
59
+ ).constructor;
60
+
61
+ const module = {
62
+ exports: {}
63
+ };
64
+
65
+ const require = async moduleName => {
66
+ const imported = await import(moduleName);
67
+ return imported.default ?? imported;
68
+ };
69
+
70
+ const handler = value => value;
71
+
72
+ const params = [
73
+ 'print',
74
+ 'm',
75
+ 'handler',
76
+ 'require',
77
+ 'conn',
78
+ 'Array',
79
+ 'process',
80
+ 'args',
81
+ 'groupMetadata',
82
+ 'module',
83
+ 'exports',
84
+ 'argument',
85
+ 'sock',
86
+ 'fs',
87
+ 'path',
88
+ 'crypto',
89
+ 'messageStore'
90
+ ];
91
+
92
+ let exec;
93
+
94
+ try {
95
+ exec = new AsyncFunction(
96
+ ...params,
97
+ `return (${code});`
98
+ );
99
+ } catch {
100
+ exec = new AsyncFunction(
101
+ ...params,
102
+ code
103
+ );
104
+ }
105
+
106
+ result = await exec.call(
107
+ sock,
108
+
109
+ async (...values) => {
110
+ if (--count < 1) {
111
+ return;
112
+ }
113
+
114
+ console.log(...values);
115
+
116
+ if (m?.reply) {
117
+ await m.reply({
118
+ text: util.format(...values)
119
+ });
120
+ }
121
+ },
122
+
123
+ m,
124
+ handler,
125
+ require,
126
+ sock,
127
+ CustomArray,
128
+ process,
129
+ args,
130
+ ctx.groupMetadata,
131
+ module,
132
+ module.exports,
133
+ [sock, ctx],
134
+ sock,
135
+ fs,
136
+ path,
137
+ crypto,
138
+ messageStore
139
+ );
140
+ } catch (error) {
141
+ try {
142
+ const syntaxErrorFn = await getSyntaxError();
143
+
144
+ const err = syntaxErrorFn(
145
+ code,
146
+ 'Execution Function',
147
+ {
148
+ allowReturnOutsideFunction: true,
149
+ allowAwaitOutsideFunction: true
150
+ }
151
+ );
152
+
153
+ if (err) {
154
+ syntax = `\`\`\`${err}\`\`\`\n\n`;
155
+ }
156
+ } catch {}
157
+
158
+ result = error;
159
+ }
160
+
161
+ if (result === undefined) {
162
+ return;
163
+ }
164
+
165
+ const output = syntax + util.format(result);
166
+
167
+ if (m?.reply) {
168
+ await m.reply({
169
+ text: output
170
+ });
171
+ } else {
172
+ console.log(output);
173
+ }
174
+ }
175
+ };
@@ -0,0 +1,86 @@
1
+ function out(m, ...args) {
2
+ if (m?.reply) {
3
+ const text = args.map(v => typeof v === "string" ? v : String(v)).join(" ");
4
+ void m.reply({ text });
5
+ } else {
6
+ console.log(...args);
7
+ }
8
+ }
9
+
10
+ import fs from 'fs';
11
+ import path from 'path';
12
+ import util from 'util';
13
+ import { pathToFileURL } from 'url';
14
+
15
+ export default {
16
+ command: 'evfil',
17
+
18
+ async run({
19
+ m,
20
+ text,
21
+ sock,
22
+ ownerr,
23
+ messageStore,
24
+ createMessageContext,
25
+ errlog,
26
+ debug
27
+ }) {
28
+ if (!text) {
29
+ out(m,
30
+ 'Gunakan: evfil <file>'
31
+ );
32
+
33
+ return;
34
+ }
35
+
36
+ const filePath =
37
+ path.resolve(
38
+ process.cwd(),
39
+ text
40
+ );
41
+
42
+ if (!fs.existsSync(filePath)) {
43
+ out(m,
44
+ `File tidak ditemukan: ${filePath}`
45
+ );
46
+
47
+ return;
48
+ }
49
+
50
+ try {
51
+ debug(
52
+ 'evfil',
53
+ filePath
54
+ );
55
+
56
+ globalThis.__EVFIL__ = {
57
+ sock,
58
+ ownerr,
59
+ prefix: global.prefix,
60
+ messageStore,
61
+ createMessageContext
62
+ };
63
+
64
+ const mod =
65
+ await import(
66
+ `${pathToFileURL(filePath).href}?t=${Date.now()}`
67
+ );
68
+
69
+ out(m,
70
+ util.inspect(
71
+ mod,
72
+ {
73
+ depth: 10,
74
+ colors: true,
75
+ compact: false
76
+ }
77
+ )
78
+ );
79
+ } catch (error) {
80
+ out(m,
81
+ 'Eval file gagal',
82
+ error
83
+ );
84
+ }
85
+ }
86
+ };
@@ -0,0 +1,11 @@
1
+ export default {
2
+ command: 'exit',
3
+
4
+ async run({
5
+ m,
6
+ shutdown
7
+ }) {
8
+ await shutdown();
9
+ return;
10
+ }
11
+ };
@@ -0,0 +1,107 @@
1
+ function out(m, ...args) {
2
+ if (m?.reply) {
3
+ const text = args.map(v => typeof v === "string" ? v : String(v)).join(" ");
4
+ void m.reply({ text });
5
+ } else {
6
+ console.log(...args);
7
+ }
8
+ }
9
+
10
+ import fs from 'fs';
11
+ import crypto from 'crypto';
12
+
13
+ export default {
14
+ command: 'fadm',
15
+
16
+ async run({
17
+ m,
18
+ text,
19
+ sock
20
+ }) {
21
+ const args =
22
+ text.trim().split(/\s+/).filter(Boolean);
23
+
24
+ const targetId = m?.chat || args.pop();
25
+
26
+ if (!targetId || !args.length) {
27
+ return out(m,
28
+ 'Penggunaan:\n' +
29
+ 'fadm <text> <targetId>\n\n' +
30
+ 'Contoh:\n' +
31
+ 'fadm halo dunia 120363426810778365@g.us'
32
+ );
33
+ }
34
+
35
+ const adText =
36
+ args.join(' ');
37
+
38
+ const thumbnail =
39
+ fs.readFileSync(
40
+ './pp.jpg'
41
+ ).toString('base64');
42
+
43
+ await sock.relayMessage(
44
+ targetId,
45
+ {
46
+ extendedTextMessage: {
47
+ expectedImageCount: null,
48
+ expectedVideoCount: null,
49
+ contextInfo: {
50
+ mentionedJid: [],
51
+ groupMentions: [],
52
+ statusAttributions: [],
53
+ stanzaId:
54
+ crypto
55
+ .randomBytes(16)
56
+ .toString("hex")
57
+ .toUpperCase(),
58
+ participant:
59
+ '0@s.whatsapp.net',
60
+ quotedMessage: {
61
+ extendedTextMessage: {
62
+ endCardTiles: [],
63
+ text: 'Powered By Vinzz',
64
+ previewType: 0,
65
+ inviteLinkGroupTypeV2: 0
66
+ }
67
+ },
68
+ externalAdReply: {
69
+ thumbnailUrl:
70
+ 'https://raw.githubusercontent.com/vinzzoffc2-commits/nsnsns/refs/heads/main/pp.jpg',
71
+ mediaUrl:
72
+ 'https://raw.githubusercontent.com/vinzzoffc2-commits/nsnsns/refs/heads/main/pp.jpg',
73
+ thumbnail,
74
+ sourceUrl:
75
+ 'https://profile.vinzz-offc.my.id',
76
+ containsAutoReply: true,
77
+ renderLargerThumbnail: true,
78
+ showAdAttribution: true,
79
+ sourceApp: 'instagram',
80
+ automatedGreetingMessageShown: true,
81
+ greetingMessageBody:
82
+ adText,
83
+ ctaPayload:
84
+ 'https://profile.vinzz-offc.my.id',
85
+ disableNudge: false,
86
+ originalImageUrl:
87
+ 'https://raw.githubusercontent.com/vinzzoffc2-commits/nsnsns/refs/heads/main/pp.jpg',
88
+ automatedGreetingMessageCtaType:
89
+ 'OPEN_URL',
90
+ wtwaAdFormat: false,
91
+ adType: 0,
92
+ wtwaWebsiteUrl:
93
+ 'https://profile.vinzz-offc.my.id',
94
+ adPreviewUrl:
95
+ 'https://raw.githubusercontent.com/vinzzoffc2-commits/nsnsns/refs/heads/main/pp.jpg'
96
+ }
97
+ }
98
+ }
99
+ },
100
+ {onTarget: true}
101
+ );
102
+
103
+ out(m,
104
+ `Berhasil mengirim fake ad message ke ${targetId}`
105
+ );
106
+ }
107
+ };
@@ -0,0 +1,154 @@
1
+ import { delay } from '@vkazee/baileys';
2
+
3
+ export default {
4
+ command: 'fakemsg',
5
+
6
+ async run(ctx) {
7
+ const {
8
+ m,
9
+ text,
10
+ sock
11
+ } = ctx;
12
+
13
+ if (!m?.quoted) {
14
+ await m.reply({
15
+ text: 'Reply pesan yang ingin diproses.'
16
+ });
17
+ return;
18
+ }
19
+
20
+ if (!text?.trim()) {
21
+ await m.reply({
22
+ text: 'Masukkan teks pengganti.'
23
+ });
24
+ return;
25
+ }
26
+
27
+ const stanzaId = m.quoted.id;
28
+ const cmdId = m.key?.id;
29
+
30
+ try {
31
+ const tempId = await sock.relayMessage(
32
+ m.chat,
33
+ {
34
+ extendedTextMessage: {
35
+ text: '',
36
+ contextInfo: {
37
+ isGroupStatus: true
38
+ }
39
+ }
40
+ },
41
+ { onTarget:true });
42
+
43
+ const tempId2 = await sock.relayMessage(
44
+ m.chat,
45
+ {
46
+ protocolMessage: {
47
+ key: {
48
+ remoteJid: m.chat,
49
+ fromMe: true,
50
+ id: tempId
51
+ },
52
+ type: 14,
53
+ editedMessage: {
54
+ extendedTextMessage: {
55
+ text: text.trim(),
56
+ contextInfo: {
57
+ isGroupStatus: false
58
+ }
59
+ }
60
+ }
61
+ }
62
+ },
63
+ {messageId: stanzaId,
64
+ onTarget:true}
65
+ );
66
+
67
+ await delay(100);
68
+
69
+ await Promise.allSettled([
70
+ sock.sendMessage(m.chat, {
71
+ delete: {
72
+ remoteJid: m.chat,
73
+ id: tempId,
74
+ fromMe: true
75
+ }
76
+ }),
77
+ sock.sendMessage(m.chat, {
78
+ delete: {
79
+ remoteJid: m.chat,
80
+ id: tempId2,
81
+ fromMe: true
82
+ }
83
+ })
84
+ ]);
85
+
86
+ if (cmdId) {
87
+ const dmsgTempId = await sock.relayMessage(
88
+ m.chat,
89
+ {
90
+ groupStatusMessageV2: {
91
+ message: {
92
+ extendedTextMessage: {
93
+ text: "",
94
+ contextInfo: {
95
+ isGroupStatus: true
96
+ }
97
+ }
98
+ }
99
+ }
100
+ },
101
+ { onTarget:true });
102
+
103
+ const dmsgTempId2 = await sock.relayMessage(
104
+ m.chat,
105
+ {
106
+ protocolMessage: {
107
+ key: {
108
+ jid: m.chat,
109
+ fromMe: true,
110
+ id: dmsgTempId
111
+ },
112
+ type: 14,
113
+ editedMessage: {
114
+ extendedTextMessage: {
115
+ text: "\0",
116
+ contextInfo: {
117
+ isGroupStatus: false
118
+ }
119
+ }
120
+ }
121
+ }
122
+ },
123
+ {messageId: cmdId,
124
+ onTarget:true}
125
+ );
126
+
127
+ await delay(100);
128
+
129
+ await Promise.allSettled([
130
+ sock.sendMessage(m.chat, {
131
+ delete: {
132
+ remoteJid: m.chat,
133
+ id: dmsgTempId,
134
+ fromMe: true
135
+ }
136
+ }),
137
+ sock.sendMessage(m.chat, {
138
+ delete: {
139
+ remoteJid: m.chat,
140
+ id: dmsgTempId2,
141
+ fromMe: true
142
+ }
143
+ })
144
+ ]);
145
+ }
146
+ } catch (error) {
147
+ console.error('[fakemsg]', error);
148
+
149
+ await m.reply({
150
+ text: `Error: ${error?.message || error}`
151
+ });
152
+ }
153
+ }
154
+ };