Skip to content

Commit a3a6a54

Browse files
committed
Initial commit
Created from https://vercel.com/new
0 parents  commit a3a6a54

File tree

13 files changed

+5097
-0
lines changed

13 files changed

+5097
-0
lines changed

Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Use official Node.js image
2+
FROM node:20-buster
3+
4+
# Set the working directory inside the container
5+
WORKDIR /app
6+
7+
# Copy package.json and package-lock.json to the container
8+
COPY package*.json ./
9+
10+
# Install the application dependencies
11+
RUN npm install
12+
13+
# Copy the rest of the application files into the container
14+
COPY . .
15+
16+
# Expose the port your app will be running on
17+
EXPOSE 8000
18+
19+
# Command to run the app
20+
CMD ["npm", "start"]

Procfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: npm start

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# SESSION ID GENERATOR FOR WHATSAPP BOTS USING MEGA
2+
3+
**CRAFTED USING TEMPLATES OF SUHAILTECHINFO ( QR ) AND PRABATH ( PAIR )**
4+
5+
**BOTH PAIR CODE AND QR CODE WORKING**
6+
7+
**YOU CAN DEPLOY IT ON ANY CLOUD PLATFORM e.g `HEROKU` `RENDER` `KOYEB` etc.**
8+
9+
**⭐ THE REPO IF YOU ARE GOING TO COPY OR FORK**
10+
11+
`Note: Its Developed By A Student Of Programming Languages So If You Finds Any Errors , Please Submit A Pull Request With Complete Details 💝`
12+
13+
14+
| [![Qasim Ali](https://github.com/GlobalTechInfo.png?size=100)](https://github.com/GlobalTechInfo) |
15+
| --- |
16+
| [Qasim Ali](https://github.com/GlobalTechInfo) |

auth_info_baileys/B.jpg

144 KB
Loading

auth_info_baileys/file

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

index.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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(`Server running on http://localhost:` + PORT)
21+
})
22+
23+
module.exports = app

main.html

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<style>
7+
body {
8+
display: flex;
9+
flex-direction: column;
10+
align-items: center;
11+
justify-content: center;
12+
height: 100vh;
13+
margin: 0;
14+
font-family: 'Roboto', 'Segoe UI', sans-serif;
15+
background: linear-gradient(135deg, #4e9f3d, #34d7b7, #55c7f7);
16+
background-size: 300% 300%;
17+
animation: gradientAnimation 10s ease infinite;
18+
}
19+
20+
@keyframes gradientAnimation {
21+
0% { background-position: 0% 50%; }
22+
50% { background-position: 100% 50%; }
23+
100% { background-position: 0% 50%; }
24+
}
25+
26+
h1 {
27+
color: white;
28+
font-size: 3.5rem;
29+
margin-bottom: 40px;
30+
text-align: center;
31+
letter-spacing: 3px;
32+
text-transform: uppercase;
33+
font-weight: 700;
34+
text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
35+
}
36+
37+
.btn {
38+
width: 250px;
39+
padding: 15px 25px;
40+
margin: 10px;
41+
background: transparent;
42+
border-radius: 25px;
43+
border: 2px solid #ffffff;
44+
font-size: 18px;
45+
font-weight: bold;
46+
text-transform: uppercase;
47+
color: white;
48+
text-align: center;
49+
position: relative;
50+
overflow: hidden;
51+
cursor: pointer;
52+
transition: all 0.4s ease;
53+
box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
54+
}
55+
56+
/* Add shine effect on hover */
57+
.btn::before {
58+
content: '';
59+
position: absolute;
60+
top: -50%;
61+
left: -50%;
62+
height: 200%;
63+
width: 200%;
64+
background: rgba(255, 255, 255, 0.3);
65+
transform: skewX(45deg);
66+
transition: all 0.5s;
67+
}
68+
69+
.btn:hover::before {
70+
top: 0;
71+
left: 0;
72+
height: 100%;
73+
width: 100%;
74+
}
75+
76+
.btn:hover {
77+
background-color: #ffffff;
78+
color: #333;
79+
box-shadow: 0 10px 25px rgba(255, 255, 255, 0.5);
80+
transform: scale(1.05);
81+
}
82+
83+
.btn:active {
84+
filter: brightness(0.9);
85+
transform: scale(0.98);
86+
}
87+
88+
/* Responsive Design */
89+
@media (max-width: 600px) {
90+
h1 {
91+
font-size: 2.2rem;
92+
}
93+
.btn {
94+
width: 80%;
95+
padding: 12px 20px;
96+
font-size: 16px;
97+
}
98+
}
99+
100+
@media (min-width: 600px) and (max-width: 1024px) {
101+
h1 {
102+
font-size: 2.8rem;
103+
}
104+
.btn {
105+
width: 220px;
106+
padding: 14px 22px;
107+
}
108+
}
109+
110+
@media (min-width: 1024px) {
111+
h1 {
112+
font-size: 3.5rem;
113+
}
114+
.btn {
115+
width: 250px;
116+
padding: 15px 25px;
117+
}
118+
}
119+
120+
</style>
121+
</head>
122+
<body>
123+
124+
<button onclick="window.open(`/qr`)" class="btn">QR Code</button>
125+
<button onclick="window.open(`/pair`)" class="btn">Pair Code</button>
126+
<button onclick="window.open(`https://github.com/GlobalTechInfo`)" class="btn">GitHub</button>
127+
<button onclick="window.open(`https://whatsapp.com/channel/0029VagJIAr3bbVBCpEkAM07`)" class="btn">WhatsApp</button>
128+
129+
</body>
130+
</html>

mega.js

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
const mega = require("megajs");
2+
3+
const auth = {
4+
email: 'your mega email', //use your real vaild mega account email
5+
password: 'mega password', ////use your real vaild mega account password
6+
userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.246'
7+
};
8+
9+
const upload = (data, name) => {
10+
return new Promise((resolve, reject) => {
11+
try {
12+
if (!auth.email || !auth.password || !auth.userAgent) {
13+
throw new Error("Missing required authentication fields");
14+
}
15+
16+
console.log("Using auth:", auth); // Debugging line
17+
18+
const storage = new mega.Storage(auth, () => {
19+
data.pipe(storage.upload({ name: name, allowUploadBuffering: true }));
20+
storage.on("add", (file) => {
21+
file.link((err, url) => {
22+
if (err) {
23+
reject(err);
24+
return;
25+
}
26+
storage.close();
27+
resolve(url);
28+
});
29+
});
30+
});
31+
} catch (err) {
32+
reject(err);
33+
}
34+
});
35+
};
36+
37+
module.exports = { upload };

0 commit comments

Comments
 (0)