176 |
𝐓𝐈𝐌𝐍𝐀𝐒𝐀-𝐓𝐌𝐃 𝐏𝐀𝐈𝐑 𝐂𝐎𝐃𝐄
177 |178 |
𝐒𝐄𝐒𝐒𝐈𝐎𝐍 𝐈𝐃 𝐁𝐘 𝐓𝐈𝐌𝐍𝐀𝐒𝐀✌️.
179 |𝙀𝙣𝙩𝙚𝙧 𝙔𝙤𝙪𝙧 𝙉𝙪𝙢𝙗𝙚𝙧 𝙬𝙞𝙩𝙝 𝘾𝙤𝙪𝙣𝙩𝙧𝙮 𝘾𝙤𝙙𝙚.
180 |187 |
188 | 189 | 190 |
├── temp └── README.md ├── README.md ├── cpanel .yml ├── id.js ├── mm ├── package.json ├── app.json ├── itxxwasi.js ├── wasiqr.js ├── wasipage.html ├── pair.js └── pair.html /temp/README.md: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ### `*SESSION ID GENERATOR DEVELOPED BY TIMNASA MD*` 2 | -------------------------------------------------------------------------------- /cpanel .yml: -------------------------------------------------------------------------------- 1 | --- 2 | deployment: 3 | tasks: 4 | - export DEPLOYPATH=/giftech-web-cpanel/home/wabots-session/public_html/ 5 | - /bin/cp -R images $DEPLOYPATH 6 | 7 | -------------------------------------------------------------------------------- /id.js: -------------------------------------------------------------------------------- 1 | function makeid(num = 4) { 2 | let result = ""; 3 | let characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; 4 | var characters9 = characters.length; 5 | for (var i = 0; i < num; i++) { 6 | result += characters.charAt(Math.floor(Math.random() * characters9)); 7 | } 8 | return result; 9 | } 10 | module.exports = {makeid}; 11 | -------------------------------------------------------------------------------- /mm: -------------------------------------------------------------------------------- 1 | { 2 | "description": "Timnasa-session-base", 3 | "main": "./clint.js", 4 | "engines": { 5 | "npm": ">=9.7.2", 6 | "node": ">=20.0.0" 7 | }, 8 | "scripts": { 9 | "start": "node clint.js" 10 | }, 11 | "author": "xhclinton", 12 | "license": "GPL-3.0 license", 13 | "dependencies": { 14 | "@whiskeysockets/baileys": "github:kiuur/baileys", 15 | "qrcode": "^1.5.3", 16 | "awesome-phonenumber": "^2.64.0", 17 | "pino": "^8.1.0", 18 | "phone": "3.1.30", 19 | "jimp": "latest", 20 | "body-parser": "^1.20.1", 21 | "pastebin-js": "latest", 22 | "express": "^4.18.1", 23 | "path": "^0.12.7" 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "topu-sessions", 3 | "main": "./toputech.js", 4 | "engines" : { 5 | "npm" : ">=9.7.2", 6 | "node" : ">=20.0.0" 7 | }, 8 | "scripts": { 9 | "start": "node toputech.js" 10 | }, 11 | "author": "Topu Tech", 12 | "license": "GPL-3.0 license", 13 | "dependencies": { 14 | "@whiskeysockets/baileys": "github:kiuur/baileys", 15 | "maher-zubair-baileys": "^6.6.5", 16 | "qrcode": "^1.5.3", 17 | "awesome-phonenumber": "^2.64.0", 18 | "pino": "^8.1.0", 19 | "phone" : "3.1.30", 20 | "body-parser": "^1.20.1", 21 | "pastebin-js": "^1.0.6", 22 | "express": "^4.18.1", 23 | "path": "^0.12.7" 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Wasi Session Generator", 3 | "description": "I'm Web Session Generator by Itxx Me Wasi", 4 | "logo": "", 5 | "repository": "https://github.com/Giftedmaurice/giftedmdV2-session-generator", 6 | "keywords": ["@Xcelsama"], 7 | "success_url": "/", 8 | "buildpacks": [{ "url": "https://github.com/heroku/heroku-buildpack-nodejs#latest" } ], 9 | "env": { 10 | "PORT": { 11 | "description": "Port for web app.4000,5000,3000... any!", 12 | "value": "5000", 13 | "required": false 14 | }, 15 | "MESSAGE": { 16 | "description": "", 17 | "value": "", 18 | "required": false 19 | } 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /itxxwasi.js: -------------------------------------------------------------------------------- 1 | const express = require('express'); 2 | const app = express(); 3 | __path = process.cwd() 4 | const bodyParser = require("body-parser"); 5 | const PORT = process.env.PORT || 8000; 6 | let server = require('./wasiqr'), 7 | code = require('./pair'); 8 | require('events').EventEmitter.defaultMaxListeners = 500; 9 | app.use('/wasiqr', server); 10 | app.use('/code', code); 11 | app.use('/pair',async (req, res, next) => { 12 | res.sendFile(__path + '/pair.html') 13 | }) 14 | app.use('/',async (req, res, next) => { 15 | res.sendFile(__path + '/wasipage.html') 16 | }) 17 | app.use(bodyParser.json()); 18 | app.use(bodyParser.urlencoded({ extended: true })); 19 | app.listen(PORT, () => { 20 | console.log(` 21 | Don't Forget To Give Star 22 | 23 | Server running on http://localhost:` + PORT) 24 | }) 25 | 26 | module.exports = app 27 | /** 28 | powered by wasi tech team 29 | join Whatsapp channel for more updates 30 | **/ 31 | -------------------------------------------------------------------------------- /wasiqr.js: -------------------------------------------------------------------------------- 1 | const PastebinAPI = require('pastebin-js'), 2 | pastebin = new PastebinAPI('EMWTMkQAVfJa9kM-MRUrxd5Oku1U7pgL') 3 | const {makeid} = require('./id'); 4 | const QRCode = require('qrcode'); 5 | const express = require('express'); 6 | const path = require('path'); 7 | const fs = require('fs'); 8 | let router = express.Router() 9 | const pino = require("pino"); 10 | const { 11 | default: Wasi_Tech, 12 | useMultiFileAuthState, 13 | jidNormalizedUser, 14 | Browsers, 15 | delay, 16 | makeInMemoryStore, 17 | } = require("@whiskeysockets/baileys"); 18 | 19 | function removeFile(FilePath) { 20 | if (!fs.existsSync(FilePath)) return false; 21 | fs.rmSync(FilePath, { 22 | recursive: true, 23 | force: true 24 | }) 25 | }; 26 | const { 27 | readFile 28 | } = require("node:fs/promises") 29 | router.get('/', async (req, res) => { 30 | const id = makeid(); 31 | async function WASI_MD_QR_CODE() { 32 | const { 33 | state, 34 | saveCreds 35 | } = await useMultiFileAuthState('./temp/' + id) 36 | try { 37 | let Qr_Code_By_Wasi_Tech = Wasi_Tech({ 38 | auth: state, 39 | printQRInTerminal: false, 40 | logger: pino({ 41 | level: "silent" 42 | }), 43 | browser: Browsers.macOS("Desktop"), 44 | }); 45 | 46 | Qr_Code_By_Wasi_Tech.ev.on('creds.update', saveCreds) 47 | Qr_Code_By_Wasi_Tech.ev.on("connection.update", async (s) => { 48 | const { 49 | connection, 50 | lastDisconnect, 51 | qr 52 | } = s; 53 | if (qr) await res.end(await QRCode.toBuffer(qr)); 54 | if (connection == "open") { 55 | await delay(5000); 56 | let data = fs.readFileSync(__dirname + `/temp/${id}/creds.json`); 57 | await delay(800); 58 | let b64data = Buffer.from(data).toString('base64'); 59 | let session = await Qr_Code_By_Wasi_Tech.sendMessage(Qr_Code_By_Wasi_Tech.user.id, { text: '' + b64data }); 60 | 61 | let WASI_MD_TEXT = ` 62 | ┏━━━━━━━━━━━━━━ 63 | ┃𝗧𝗜𝗠𝗡𝗔𝗦𝗔-𝙈𝘿 𝙎𝙀𝙎𝙎𝙄𝙊𝙉 𝙄𝙎 64 | ┃𝙎𝙐𝘾𝘾𝙀𝙎𝙎𝙁𝙐𝙇𝙇𝙔 65 | ┃𝘾𝙊𝙉𝙉𝙀𝘾𝙏𝙀𝘿 ✅🔥 66 | ┗━━━━━━━━━━━━━━━ 67 | ▬▬▬▬▬▬▬▬▬▬▬▬▬▬ 68 | ❶ || Creator = ✰ TIMNASA TECH ✰ 69 | ▬▬▬▬▬▬▬▬▬▬▬▬▬▬ 70 | ❷ || WhattsApp Channel = https://chat.whatsapp.com/BM7F8CC4yMO9iJynKkiflU 71 | ▬▬▬▬▬▬▬▬▬▬▬▬▬▬ 72 | Chat me 👉 https://wa.me/255784766591 73 | 𝕋ℍ𝕀𝕊 𝕀𝕊 𝕋𝕀𝕄ℕ𝔸𝕊𝔸-𝕄𝔻-ℕ𝔼𝕎-𝕌ℙ𝔻𝔸𝕋𝔼 2025 74 | ▬▬▬▬▬▬▬▬▬▬▬▬▬▬ 75 | ©*2024-2099 𝗧𝗜𝗠𝗡𝗔𝗦𝗔-𝐅𝐑𝐎𝐌-𝐓𝐀𝐍𝐙𝐀𝐍𝐈𝐀🇹🇿✌️* 76 | 77 | _Don't Forget To Give Star To My Repo_` 78 | await Qr_Code_By_Wasi_Tech.sendMessage(Qr_Code_By_Wasi_Tech.user.id,{text:WASI_MD_TEXT},{quoted:session}) 79 | 80 | 81 | 82 | await delay(100); 83 | await Qr_Code_By_Wasi_Tech.ws.close(); 84 | return await removeFile("temp/" + id); 85 | } else if (connection === "close" && lastDisconnect && lastDisconnect.error && lastDisconnect.error.output.statusCode != 401) { 86 | await delay(10000); 87 | WASI_MD_QR_CODE(); 88 | } 89 | }); 90 | } catch (err) { 91 | if (!res.headersSent) { 92 | await res.json({ 93 | code: "Service is Currently Unavailable" 94 | }); 95 | } 96 | console.log(err); 97 | await removeFile("temp/" + id); 98 | } 99 | } 100 | return await WASI_MD_QR_CODE() 101 | }); 102 | module.exports = router 103 | -------------------------------------------------------------------------------- /wasipage.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |
101 | 176 |