diff --git a/README.md b/README.md index 0f7248a6..fef43dc4 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ -# ๐Ÿš€ Malvin-Session-Generator +# ๐Ÿ‘‘ DARK-KNIGHT-Session-Generator ## ๐Ÿ“Š Visitor Counter

- visitor counter + visitor counter

--- @@ -12,10 +12,10 @@ [![Fork Repo](https://img.shields.io/badge/FORK-REPO-black?style=for-the-badge&logo=github)](https://github.com/XdKing2/malvin-pair/fork) -Generate session IDs for WhatsApp bots using [`@whiskeysockets/baileys`](https://github.com/whiskeysockets/baileys), with secure **MEGA** cloud storage and a fast web QR login. +Generate session IDs for WhatsApp bots using [`@whiskeysockets/baileys`](https://github.com/whiskeysockets/baileys), with secure **MEGA** cloud storage and a fast web **PAIR CODE** login. > โš ๏ธ This is the **same code** used on my live site: -> ๐Ÿ”— [Session Generator Website](https://new-session-2ag9.onrender.com/) +> ๐Ÿ”— [Session Generator Website](file:///C:/Users/fghia/Documents/WEB-PAIR-main/pair.html) > ๐Ÿ’ฌ Don't ask for more โ€” just **fork**, **star**, **edit** ,and **deploy**! --- @@ -24,11 +24,9 @@ Generate session IDs for WhatsApp bots using [`@whiskeysockets/baileys`](https:/ - ๐Ÿ” Generates sessions for **any Baileys bot** - โ˜๏ธ Stores sessions securely with **MEGA** -- ๐Ÿ“ฑ Web-based **QR Pairing & Pair Pairing** +- ๐Ÿ“ฑ Web-based **Pair Pairing** - ๐Ÿš€ One-click deploy to: - Heroku - - Render - - Koyeb - Self-hosting platforms --- @@ -38,8 +36,7 @@ Generate session IDs for WhatsApp bots using [`@whiskeysockets/baileys`](https:/ | Platform | Deploy | |---------|--------| | ๐ŸŸฃ Heroku | [![Deploy to Heroku](https://img.shields.io/badge/DEPLOY-HEROKU-purple?style=for-the-badge&logo=heroku)](https://dashboard.heroku.com/new?template=https://github.com/XdKing2/malvin-pair) | -| ๐Ÿ”ต Render | [![Deploy to Render](https://img.shields.io/badge/DEPLOY-RENDER-blue?style=for-the-badge&logo=render)](https://dashboard.render.com/) | -| โšซ Koyeb | [![Deploy to Koyeb](https://img.shields.io/badge/DEPLOY-KOYEB-black?style=for-the-badge&logo=koyeb)](https://app.koyeb.com/) | + --- @@ -50,15 +47,20 @@ Generate session IDs for WhatsApp bots using [`@whiskeysockets/baileys`](https:/ --- -## ๐Ÿ‘‘ Owner +## ๐Ÿงฌ Owner & addmin....

- Malvin King + DARK KNIGHT

-๐Ÿ“ฌ [`Contact on WhatsApp`](https://wa.me/263780166288) +| MAIN OWNER & ADDMIN | CONTACT ON WHATSAPP | +|---------|--------| +| ๐Ÿ‘‘ OWNER THENUKA | ๐Ÿ“ฌ [Contact on WhatsApp dark knight owner ](https://wa.me/94763934860?text=OWNER=Tenuka-support_me๐Ÿ’ป๐Ÿ“) +| ๐Ÿ—ฃ ADDMIN SACHITHRA | ๐Ÿ“ฌ [Contact on WhatsApp dark knight addmin ](https://wa.me/94761332610?text=ADDMIN=Sachithra-support_me๐Ÿ’ป๐Ÿ“) +| ๐Ÿ—ฃ ADDMIN KAVIDU | ๐Ÿ“ฌ [Contact on WhatsApp dark knight addmin ](https://wa.me/94766704052?text=ADDMIN=Kavidu-support_me๐Ÿ’ป๐Ÿ“) + --- diff --git a/app.json b/app.json index 2f995c9e..ac5dc7c2 100644 --- a/app.json +++ b/app.json @@ -1,9 +1,9 @@ { - "name": "Malvin Session Generator", + "name": "Dark knight Session Generator", "description": "Web Session Generator", "logo": "https://i.imgur.com/teQzVR1.jpeg", "repository": "https://github.com/XdKing2/malvin-pair", - "keywords": ["MalvinTech","XdKing2"], + "keywords": ["Dark knight","XdKing2"], "success_url": "/", "buildpacks": [{ "url": "https://github.com/heroku/heroku-buildpack-nodejs#latest" } ], "env": { diff --git a/main.html b/main.html index 0de62acc..62f6fb68 100644 --- a/main.html +++ b/main.html @@ -19,7 +19,7 @@ "@context": "https://schema.org", "@type": "Organization", "url": "https://railway.app", - "logo": "https://files.catbox.moe/39z8jd.jpg" + "logo": "https://files.catbox.moe/brlkte.jpg" } .button-container { @@ -112,19 +112,19 @@
-

MALVIN SESSION

+

DARK KNIGHT SESSION

QR-CODE
PAIRING-CODE
- FORK MALVIN XD
+ FORK DARK KNIGHT XD
WhatsApp

HAVE ANY ERROR CLICK ERROR BUTTON

- ERROR
+ SUPPORT
diff --git a/pair.html b/pair.html index 38c54e4c..2c2abd23 100644 --- a/pair.html +++ b/pair.html @@ -1,7 +1,7 @@ - Malvin PAIR CODE + DARK KNIGHT PAIR CODE - - - -
-
-
- QR CODE -
-
-

MALVIN QR PAIR

-

Scan The QR Code

-
-
-

- -
- Reload Page -
-
- - diff --git a/qr.js b/qr.js deleted file mode 100644 index 014d179e..00000000 --- a/qr.js +++ /dev/null @@ -1,170 +0,0 @@ -const { makeid } = require('./gen-id'); -const express = require('express'); -const QRCode = require('qrcode'); -const fs = require('fs'); -let router = express.Router(); -const pino = require("pino"); -const { - default: makeWASocket, - useMultiFileAuthState, - delay, - makeCacheableSignalKeyStore, - Browsers, - jidNormalizedUser -} = require("@whiskeysockets/baileys"); -const { upload } = require('./mega'); -function removeFile(FilePath) { - if (!fs.existsSync(FilePath)) return false; - fs.rmSync(FilePath, { recursive: true, force: true }); -} -router.get('/', async (req, res) => { - const id = makeid(); - // let num = req.query.number; - async function MALVIN_XD_PAIR_CODE() { - const { - state, - saveCreds - } = await useMultiFileAuthState('./temp/' + id); - try { -var items = ["Safari"]; -function selectRandomItem(array) { - var randomIndex = Math.floor(Math.random() * array.length); - return array[randomIndex]; -} -var randomItem = selectRandomItem(items); - - let sock = makeWASocket({ - - auth: state, - printQRInTerminal: false, - logger: pino({ - level: "silent" - }), - browser: Browsers.macOS("Desktop"), - }); - - sock.ev.on('creds.update', saveCreds); - sock.ev.on("connection.update", async (s) => { - const { - connection, - lastDisconnect, - qr - } = s; - if (qr) await res.end(await QRCode.toBuffer(qr)); - if (connection == "open") { - await delay(5000); - let data = fs.readFileSync(__dirname + `/temp/${id}/creds.json`); - let rf = __dirname + `/temp/${id}/creds.json`; - function generateRandomText() { - const prefix = "3EB"; - const characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; - let randomText = prefix; - for (let i = prefix.length; i < 22; i++) { - const randomIndex = Math.floor(Math.random() * characters.length); - randomText += characters.charAt(randomIndex); - } - return randomText; - } - const randomText = generateRandomText(); - try { - const { upload } = require('./mega'); - const mega_url = await upload(fs.createReadStream(rf), `${sock.user.id}.json`); - const string_session = mega_url.replace('https://mega.nz/file/', ''); - let md = "malvin~" + string_session; - let code = await sock.sendMessage(sock.user.id, { text: md }); - let desc = `*Hey there, MALVIN-XD User!* ๐Ÿ‘‹๐Ÿป - -Thanks for using *MALVIN-XD* โ€” your session has been successfully created! - -๐Ÿ” *Session ID:* Sent above -โš ๏ธ *Keep it safe!* Do NOT share this ID with anyone. - -โ€”โ€”โ€”โ€”โ€”โ€” - -*โœ… Stay Updated:* -Join our official WhatsApp Channel: -https://whatsapp.com/channel/0029VbA6MSYJUM2TVOzCSb2A - -*๐Ÿ’ป Source Code:* -Fork & explore the project on GitHub: -https://github.com/XdKing2/MALVIN-XD - -โ€”โ€”โ€”โ€”โ€”โ€” - -> *ยฉ Powered by Malvin King* -Stay cool and hack smart. โœŒ๐Ÿป`; - await sock.sendMessage(sock.user.id, { -text: desc, -contextInfo: { -externalAdReply: { -title: "แดแด€สŸแด ษชษด-xแด… ๐•ฎ๐–”๐–“๐–“๐–Š๐–ˆ๐–™๐–Š๐–‰", -thumbnailUrl: "https://files.catbox.moe/bqs70b.jpg", -sourceUrl: "https://whatsapp.com/channel/0029VbA6MSYJUM2TVOzCSb2A", -mediaType: 1, -renderLargerThumbnail: true -} -} -}, -{quoted:code }) - } catch (e) { - let ddd = sock.sendMessage(sock.user.id, { text: e }); - let desc = `*Hey there, MALVIN-XD User!* ๐Ÿ‘‹๐Ÿป - -Thanks for using *MALVIN-XD* โ€” your session has been successfully created! - -๐Ÿ” *Session ID:* Sent above -โš ๏ธ *Keep it safe!* Do NOT share this ID with anyone. - -โ€”โ€”โ€”โ€”โ€”โ€” - -*โœ… Stay Updated:* -Join our official WhatsApp Channel: -https://whatsapp.com/channel/0029VbA6MSYJUM2TVOzCSb2A - -*๐Ÿ’ป Source Code:* -Fork & explore the project on GitHub: -https://github.com/XdKing2/MALVIN-XD - -> *ยฉ Powered by Malvin King* -Stay cool and hack smart. โœŒ๐Ÿป*`; - await sock.sendMessage(sock.user.id, { -text: desc, -contextInfo: { -externalAdReply: { -title: "แดแด€สŸแด ษชษด-xแด… ๐•ฎ๐–”๐–“๐–“๐–Š๐–ˆ๐–™๐–Š๐–‰ โœ… ", -thumbnailUrl: "https://files.catbox.moe/bqs70b.jpg", -sourceUrl: "https://whatsapp.com/channel/0029VbA6MSYJUM2TVOzCSb2A", -mediaType: 2, -renderLargerThumbnail: true, -showAdAttribution: true -} -} -}, -{quoted:ddd }) - } - await delay(10); - await sock.ws.close(); - await removeFile('./temp/' + id); - console.log(`๐Ÿ‘ค ${sock.user.id} ๐—–๐—ผ๐—ป๐—ป๐—ฒ๐—ฐ๐˜๐—ฒ๐—ฑ โœ… ๐—ฅ๐—ฒ๐˜€๐˜๐—ฎ๐—ฟ๐˜๐—ถ๐—ป๐—ด ๐—ฝ๐—ฟ๐—ผ๐—ฐ๐—ฒ๐˜€๐˜€...`); - await delay(10); - process.exit(); - } else if (connection === "close" && lastDisconnect && lastDisconnect.error && lastDisconnect.error.output.statusCode != 401) { - await delay(10); - MALVIN_XD_PAIR_CODE(); - } - }); - } catch (err) { - console.log("service restated"); - await removeFile('./temp/' + id); - if (!res.headersSent) { - await res.send({ code: "โ— Service Unavailable" }); - } - } - } - await MALVIN_XD_PAIR_CODE(); -}); -setInterval(() => { - console.log("โ˜˜๏ธ ๐—ฅ๐—ฒ๐˜€๐˜๐—ฎ๐—ฟ๐˜๐—ถ๐—ป๐—ด ๐—ฝ๐—ฟ๐—ผ๐—ฐ๐—ฒ๐˜€๐˜€..."); - process.exit(); -}, 180000); //30min -module.exports = router;