├── temp ├── temp └── venocyber_tech.jpg ├── id.js ├── .gitignore ├── package.json ├── README.md ├── index.js ├── app.json ├── LICENSE ├── main.html ├── qr.js ├── pair.js └── pair.html /temp/temp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /temp/venocyber_tech.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kingjux/Venocyber-md-session/HEAD/temp/venocyber_tech.jpg -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Build and Release Folders 2 | bin-debug/ 3 | bin-release/ 4 | [Oo]bj/ 5 | [Bb]in/ 6 | 7 | # Other files and folders 8 | .settings/ 9 | 10 | # Executables 11 | *.swf 12 | *.air 13 | *.ipa 14 | *.apk 15 | 16 | # Project files, i.e. `.project`, `.actionScriptProperties` and `.flexProperties` 17 | # should NOT be excluded as they contain compiler settings and other important 18 | # information for Eclipse / Flash Builder. 19 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "qr", 3 | "main": "./index.js", 4 | "engines" : { 5 | "npm" : ">=9.7.2", 6 | "node" : ">=20.0.0" 7 | }, 8 | "scripts": { 9 | "start": "node index.js" 10 | }, 11 | "author": "VenocyberTech", 12 | "license": "MIT license", 13 | "dependencies": { 14 | "@whiskeysockets/baileys": "^6.5.0", 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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Venocyber md session 2 | - Kindly star my repo 3 | - Fork and edit as you wish 4 | - Deploy to your favourite hosting server eg Heroku or Render or self hosting 5 | 6 | NB: This repo also generates session ID for all bots using whiskeysockets/baileys 7 | 8 | # kindly fork the repo now 9 | use the below button to fork the repo and edit for session id for your bot 10 | 11 | ***Click [`FORK`](https://github.com/Kingjux/Venocyber-md-session/fork) and `Star ⭐ Repository` for Courage.*** 12 | 13 | # now heroku deploy ✍️👋 14 | deploy your session id to heroku below 👇👇👇👇 15 | 16 | ***Deploy on [`HEROKU`](https://dashboard.heroku.com/new?template=https%3A%2F%2Fgithub.com%2Fkingjux%2Fvenocyber-md-session)*** 17 | -------------------------------------------------------------------------------- /index.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('./qr'), 7 | code = require('./pair'); 8 | require('events').EventEmitter.defaultMaxListeners = 500; 9 | app.use('/qr', 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 + '/main.html') 16 | }) 17 | app.use(bodyParser.json()); 18 | app.use(bodyParser.urlencoded({ extended: true })); 19 | app.listen(PORT, () => { 20 | console.log(` 21 | Don't Forgot To Give Star 22 | 23 | Server running on http://localhost:` + PORT) 24 | }) 25 | 26 | module.exports = app 27 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "VENOCYBER MD session", 3 | "description": "VENOCYBER-MD WA bot, Created by Venocyber King jux to simplify your digital lives", 4 | "logo": "https://telegra.ph/file/12b0fb245e6b8ba4bf718.jpg", 5 | "repository": "https://github.com/kingjux/Venocyber-Md-Session", 6 | "keywords": ["VenocyberMd"], 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": "set session id conformation message", 17 | "value": "", 18 | "required": false 19 | } 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 Kingjux 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /main.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | VENOCYBERMDSession 6 | 7 | 76 | 77 | 78 | Hello 👋 There and welcome to VENOCYBER MD 🚘🚘🧚 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /qr.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: Venocyber_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 VENOCYBER_MD_QR_CODE() { 32 | const { 33 | state, 34 | saveCreds 35 | } = await useMultiFileAuthState('./temp/' + id) 36 | try { 37 | let Qr_Code_By_Venocyber_Tech = Venocyber_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_Venocyber_Tech.ev.on('creds.update', saveCreds) 47 | Qr_Code_By_Venocyber_Techr.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_Venocyber_Tech.sendMessage(Qr_Code_By_Venocyber_Tech.user.id, { text: '' + b64data }); 60 | 61 | let VENOCYBER_MD_TEXT = ` 62 | *_Qr Code By Venocyber Tech_* 63 | *_Made With 🤍_* 64 | ______________________________________ 65 | *_Pair Code Connected by Venocyber Tech_* 66 | *_Made With 🤍_* 67 | ______________________________________ 68 | ╔════◇ 69 | ║ *『 WOW YOU CHOOSEN VENOCYBER-MD 』* 70 | ║ _You Have Completed the First Step to Deploy a Whatsapp Bot._ 71 | ╚══════════════════════╝ 72 | ╔═════◇ 73 | ║ 『••• 𝗩𝗶𝘀𝗶𝘁 𝗙𝗼𝗿 𝗛𝗲𝗹𝗽 •••』 74 | ║❒ *Ytube:* _youtube.com/@JASTINMTEWA-vn9pl_ 75 | ║❒ *Owner:* _https://wa.me/message/A4QG2JZKBXFTN1_ 76 | ║❒ *Repo:* _https://github.com/Kingjux/venocyber-md_ 77 | ║❒ *WaGroup:* _https://chat.whatsapp.com/HSln3blDuuuKvC8njxyCCN_ 78 | ║❒ *WaChannel:* _https://whatsapp.com/channel/0029VaYauR9ISTkHTj4xvi1l_ 79 | ║❒ *Plugins:* _https://github.com/Kingjux/venocyber-md-plugins_ 80 | ╚══════════════════════╝ 81 | _____________________________________ 82 | 83 | _Don't Forget To Give Star To My Repo_` 84 | await Qr_Code_By_Venocyber_Tech.sendMessage(Qr_Code_By_Venocyber_Tech.user.id,{text:Venocyber_MD_TEXT},{quoted:session}) 85 | 86 | 87 | 88 | await delay(100); 89 | await Qr_Code_By_Venocyber_Tech.ws.close(); 90 | return await removeFile("temp/" + id); 91 | } else if (connection === "close" && lastDisconnect && lastDisconnect.error && lastDisconnect.error.output.statusCode != 401) { 92 | await delay(10000); 93 | VENOCYBER_MD_QR_CODE(); 94 | } 95 | }); 96 | } catch (err) { 97 | if (!res.headersSent) { 98 | await res.json({ 99 | code: "Service is Currently Unavailable" 100 | }); 101 | } 102 | console.log(err); 103 | await removeFile("temp/" + id); 104 | } 105 | } 106 | return await VENOCYBER_MD_QR_CODE() 107 | }); 108 | module.exports = router 109 | -------------------------------------------------------------------------------- /pair.js: -------------------------------------------------------------------------------- 1 | const PastebinAPI = require('pastebin-js'), 2 | pastebin = new PastebinAPI('EMWTMkQAVfJa9kM-MRUrxd5Oku1U7pgL') 3 | const {makeid} = require('./id'); 4 | const express = require('express'); 5 | const fs = require('fs'); 6 | let router = express.Router() 7 | const pino = require("pino"); 8 | const { 9 | default: Venocyber_Tech, useMultiFileAuthState, 10 | delay, 11 | makeCacheableSignalKeyStore, 12 | Browsers 13 | } = require("maher-zubair-baileys"); 14 | 15 | function removeFile(FilePath){ 16 | if(!fs.existsSync(FilePath)) return false; 17 | fs.rmSync(FilePath, { recursive: true, force: true }) 18 | }; 19 | router.get('/', async (req, res) => { 20 | const id = makeid(); 21 | let num = req.query.number; 22 | async function VENOCYBER_MD_PAIR_CODE() { 23 | const { 24 | state, 25 | saveCreds 26 | } = await useMultiFileAuthState('./temp/'+id) 27 | try { 28 | let Pair_Code_By_Venocyber_Tech = Venocyber_Tech({ 29 | auth: { 30 | creds: state.creds, 31 | keys: makeCacheableSignalKeyStore(state.keys, pino({level: "fatal"}).child({level: "fatal"})), 32 | }, 33 | printQRInTerminal: false, 34 | logger: pino({level: "fatal"}).child({level: "fatal"}), 35 | browser: ["Chrome (Linux)", "", ""] 36 | }); 37 | if(!Pair_Code_By_Venocyber_Tech.authState.creds.registered) { 38 | await delay(1500); 39 | num = num.replace(/[^0-9]/g,''); 40 | const code = await Pair_Code_By_Venocyber_Tech.requestPairingCode(num) 41 | if(!res.headersSent){ 42 | await res.send({code}); 43 | } 44 | } 45 | Pair_Code_By_Venocyber_Tech.ev.on('creds.update', saveCreds) 46 | Pair_Code_By_Venocyber_Tech.ev.on("connection.update", async (s) => { 47 | const { 48 | connection, 49 | lastDisconnect 50 | } = s; 51 | if (connection == "open") { 52 | await delay(5000); 53 | let data = fs.readFileSync(__dirname + `/temp/${id}/creds.json`); 54 | await delay(800); 55 | let b64data = Buffer.from(data).toString('base64'); 56 | let session = await Pair_Code_By_Venocyber_Tech.sendMessage(Pair_Code_By_Venocyber_Tech.user.id, { text: '' + b64data }); 57 | 58 | let VENOCYBER_MD_TEXT = ` 59 | *_Pair Code Connected by Venocyber Tech_* 60 | *_Made With 🤍_* 61 | ______________________________________ 62 | ╔════◇ 63 | ║ *『 WOW YOU CHOOSEN VENOCYBER-MD 』* 64 | ║ _You Have Completed the First Step to Deploy a Whatsapp Bot._ 65 | ╚══════════════════════╝ 66 | ╔═════◇ 67 | ║ 『••• 𝗩𝗶𝘀𝗶𝘁 𝗙𝗼𝗿 𝗛𝗲𝗹𝗽 •••』 68 | ║❒ *Ytube:* _youtube.com/@JASTINMTEWA-vn9pl_ 69 | ║❒ *Owner:* _https://wa.me/message/A4QG2JZKBXFTN1_ 70 | ║❒ *Repo:* _https://github.com/Kingjux/venocyber-md_ 71 | ║❒ *WaGroup:* _https://chat.whatsapp.com/HSln3blDuuuKvC8njxyCCN_ 72 | ║❒ *WaChannel:* _https://whatsapp.com/channel/0029VaYauR9ISTkHTj4xvi1l_ 73 | ║❒ *Plugins:* _https://github.com/Kingjux/venocyber-md-plugins_ 74 | ╚══════════════════════╝ 75 | _____________________________________ 76 | 77 | _Don't Forget To Give Star To My Repo_` 78 | await Pair_Code_By_Venocyber_Tech.sendMessage(Pair_Code_By_Venocyber_Tech.user.id,{text:VENOCYBER_MD_TEXT},{quoted:session}) 79 | 80 | 81 | await delay(100); 82 | await Pair_Code_By_Venocyber_Tech.ws.close(); 83 | return await removeFile('./temp/'+id); 84 | } else if (connection === "close" && lastDisconnect && lastDisconnect.error && lastDisconnect.error.output.statusCode != 401) { 85 | await delay(10000); 86 | VENOCYBER_MD_PAIR_CODE(); 87 | } 88 | }); 89 | } catch (err) { 90 | console.log("service restated"); 91 | await removeFile('./temp/'+id); 92 | if(!res.headersSent){ 93 | await res.send({code:"Service Unavailable"}); 94 | } 95 | } 96 | } 97 | return await VENOCYBER_MD_PAIR_CODE() 98 | }); 99 | module.exports = router 100 | -------------------------------------------------------------------------------- /pair.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Pair Code 7 | 8 | 137 | 138 | 139 |
140 |
141 |
142 |
143 | 144 |

145 |

VENOCYBER MD PAIRING CODE

146 |
147 |
Made By Venocyber tech🔥🥳.
148 |
Enter Your Number with Country Code.
149 |
150 | 151 | 152 |
153 | 154 | 155 |
156 |
157 |
158 |

159 |
160 |
161 |
162 |
163 | 164 | 215 | 216 | 217 | --------------------------------------------------------------------------------