├── README.md ├── encrypt.js └── package.json /README.md: -------------------------------------------------------------------------------- 1 | # Updating example code snippets 2 | 3 | _Last updated: 2025-02-18T02:17:27.039Z_ -------------------------------------------------------------------------------- /encrypt.js: -------------------------------------------------------------------------------- 1 | import jsobfus from 'javascript-obfuscator' 2 | 3 | async function obfus(query) { 4 | return new Promise((resolve, reject) => { 5 | try { 6 | const obfuscationResult = jsobfus.obfuscate(query, 7 | { 8 | compact: true, 9 | controlFlowFlattening: true, 10 | controlFlowFlatteningThreshold: 1, 11 | numbersToExpressions: true, 12 | simplify: true, 13 | stringArrayShuffle: true, 14 | splitStrings: true, 15 | stringArrayThreshold: 1 16 | }); 17 | const result = { 18 | status: 200, 19 | author: `//Encrypted\n//Encrypted\n\n`, 20 | result: obfuscationResult.getObfuscatedCode() 21 | } 22 | resolve(result) 23 | } catch (e) { 24 | reject(e) 25 | } 26 | }) 27 | } 28 | 29 | export { 30 | obfus 31 | } 32 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Obscura", 3 | "version": "3.0", 4 | "description": "A high-end WhatsApp bot project focusing on advanced automation and features.", 5 | "main": "Obscura.js", 6 | "scripts": { 7 | "start": "node index.js" 8 | }, 9 | "author": "Obscura Student", 10 | "license": "MIT", 11 | "dependencies": { 12 | "@adiwajshing/keyed-db": "^0.2.4", 13 | "@aws-sdk/client-s3": "^3.717.0", 14 | "@bochilteam/scraper": "^4.0.22-alpha.0", 15 | "@ffmpeg-installer/ffmpeg": "^1.1.0", 16 | "@hapi/boom": "^10.0.1", 17 | "@tobyg74/tiktok-api-dl": "^1.1.2", 18 | "@whiskeysockets/baileys": "github:NyxObscura/Diego", 19 | "api-dylux": "^1.8.3", 20 | "archiver": "^5.3.0", 21 | "awesome-phonenumber": "^5.10.0", 22 | "axios": "^1.6.0", 23 | "betabotz-tools": "^0.0.7", 24 | "btch-downloader": "^2.3.2", 25 | "canvas": "^2.11.2", 26 | "captcha-canvas": "^2.3.1", 27 | "cfonts": "^3.3.0", 28 | "chalk": "^4.1.2", 29 | "cheerio": "github:NyxObscura/VizzJ", 30 | "child_process": "^1.0.2", 31 | "clear": "^0.1.0", 32 | "clear-console": "^1.1.0", 33 | "cookie": "^0.5.0", 34 | "crypto": "^1.0.1", 35 | "dhn-api": "^1.1.3", 36 | "didyoumean": "^1.2.2", 37 | "esbuild": "^0.24.2", 38 | "express": "^4.17.3", 39 | "fetch": "^1.1.0", 40 | "figlet": "^1.5.2", 41 | "file-type": "^16.5.3", 42 | "fluent-ffmpeg": "^2.1.2", 43 | "form-data": "^4.0.0", 44 | "formdata-node": "^6.0.3", 45 | "fs": "0.0.1-security", 46 | "fs-extra": "^11.1.1", 47 | "g-i-s": "^2.1.7", 48 | "g4f": "^1.4.3", 49 | "getscreenshot.js": "^4.0.0", 50 | "google-it": "^1.6.3", 51 | "google-translate-api-x": "^10.7.1", 52 | "googleapis": "^144.0.0", 53 | "got": "^11.8.3", 54 | "groq-sdk": "^0.9.1", 55 | "human-readable": "^0.2.1", 56 | "ig-unduh": "^1.0.1", 57 | "javascript-obfuscator": "^4.0.0", 58 | "jimp": "^0.16.1", 59 | "js-beautify": "^1.15.1", 60 | "js-confuser": "^1.7.3", 61 | "json-stable-stringify": "^1.0.2", 62 | "jsqr": "^1.4.0", 63 | "link-preview-js": "^3.0.0", 64 | "lodash": "^4.17.21", 65 | "lowdb": "^7.0.1", 66 | "mathjs": "^12.4.1", 67 | "md5": "^2.3.0", 68 | "megajs": "^1.1.4", 69 | "mime-types": "^2.1.35", 70 | "moment-timezone": "^0.5.34", 71 | "mongoose": "^7.5.3", 72 | "ms": "^2.1.3", 73 | "multistream": "^2.1.0", 74 | "nik-parser": "^1.0.1", 75 | "no-telp": "^1.0.2", 76 | "node-cron": "^3.0.3", 77 | "node-fetch": "^2.6.1", 78 | "node-gtts": "^2.0.2", 79 | "node-id3": "^0.2.3", 80 | "node-os-utils": "^1.3.6", 81 | "node-upload-images": "^1.0.1", 82 | "node-webpmux": "^3.1.1", 83 | "node-youtube-music": "^0.8.3", 84 | "nodemailer": "^6.9.13", 85 | "obfuscator-io-deobfuscator": "^1.0.2", 86 | "object-query-string": "^1.2.0", 87 | "openai": "^4.76.3", 88 | "os": "^0.1.2", 89 | "parse-ms": "^2.1.0", 90 | "path": "^0.12.7", 91 | "perf_hooks": "0.0.1", 92 | "performance-now": "^2.1.0", 93 | "pino": "^8.3.0", 94 | "process": "^0.11.10", 95 | "protobufjs": "^7.2.5", 96 | "qrcode": "^1.5.0", 97 | "qrcode-terminal": "^0.12.0", 98 | "randomstring": "^1.3.0", 99 | "readline": "^1.3.0", 100 | "request": "^2.88.2", 101 | "rimraf": "^5.0.5", 102 | "set-cookie": "^0.0.4", 103 | "similarity": "^1.2.1", 104 | "spinnies": "^0.5.1", 105 | "ssh2": "^1.14.0", 106 | "steno": "^1.0.0", 107 | "stream": "^0.0.3", 108 | "string-similarity": "^4.0.4", 109 | "terser": "^5.37.0", 110 | "tiktokdl": "^0.0.5", 111 | "translate-google-api": "^1.0.4", 112 | "uglify-js": "^3.19.3", 113 | "url": "^0.11.3", 114 | "util": "^0.12.5", 115 | "wa-sticker-formatter": "^4.4.4", 116 | "ws": "^8.17.0", 117 | "yargs": "^17.2.1", 118 | "youtube-yts": "^2.0.0", 119 | "yt-search": "^2.11.1", 120 | "ytdl-core": "npm:node-yt-dl@^2.1.9", 121 | "yts": "^2.0.1" 122 | } 123 | } 124 | --------------------------------------------------------------------------------