full src you are welcome
from colorama import init from termcolor import colored from datetime import date, datetime, timedelta from telethon.sync import TelegramClient from telethon.sessions import StringSession import os
os.system('pip install telethon')
os.system('pip install colorama')
os.system('pip install termcolor')
init()
artt = """ \033[34m
/ / / / /___ _____ ____ ___ _____
/ / / / __ / / / __ `/ __ / __ / _ / /
/ // / / / // / / // / // / // / / /
_/_/ //___// _,/ ./ ./___//
// /_/
\033[37m ANGELSECURITYTEAM
Get Your Api at https://my.telegram.org and go to Api_ development tools.
"""
os.system('clear || cls') print (artt)
try: Api_ss = open('Api_.txt','r') Api_s = Api_ss.readlines() except: Api_ss = open('Api_.txt','w') Api_ss.close() Api_ss = open('Api_.txt','r') Api_s = Api_ss.readlines()
if Api_s == []:
try:
Api__id = int(input("\033[34mApi__\033[34mId: \033[37m"))
Api__hash = input("\033[34mApi_\033[34mHash: \033[37m")
except:
exit();
with TelegramClient(StringSession(), Api__id, Api__hash) as client:
ss = client.session.save()
Api__id = int(str(Api__id).replace(' ',''))
Api__hash = Api__hash.replace(' ','')
Api_ss = open('Api_.txt', 'w')
Api_ss.write(str(Api__id))
Api_ss.write('\n')
Api_ss.write(Api__hash+'\n'+ss)
Api_ss = Api_ss.close()
try:
sdwed = input("\033[34mPress enter to \033[34mcontinue\033[34m.")
except:
exit();
os.system('clear || cls')
exit()
elif len(Api_s) == 2:
Api__id = int(Api_s[0])
Api__hash = Api_s[1]
print ("\033[34mApi_\033[34mId: " + "\033[37m" + str(Api__id))
print ("\033[34mApi_\033[34mHash: " + "\033[37m" + Api__hash)
print("\033[34mRemove Api_.txt if you want to log in with another telegram account'.")
print('\n')
with TelegramClient(StringSession(), Api__id, Api__hash) as client:
ss = client.session.save()
Api_ss = open('Api_.txt', 'a').write(f'\n{ss}')
try:
sdwed = input("\033[34mPress enter to \033[34mcontinue\033[34m.")
except:
exit();
os.system('clear || cls')
exit()
elif len(Api_s) == 3:
Api__id = int(Api_s[0])
Api__hash = Api_s[1]
string = Api_s[2]
print ("\033[37mhttps://my.telegram.org/apps ")
print ("\033[34mApi_\033[34mId: " + "\033[37m" + str(Api__id))
print ("\033[34mApi_\033[34mHash: " + "\033[37m" + Api__hash)
print("\033[34mRemove Api_.txt if you want to log in with another telegram account'.")
try:
sdwed = input("\033[34mPress enter to \033[34mcontinue\033[34m.")
except:
exit();
os.system('clear || cls')
try: os.chdir('CC_Scrapped')
except:
os.mkdir('CC_Scrapped')
os.chdir('CC_Scrapped')
username = 'AngelSecurityTeam'
lst = ["0","1","2","3","4","5","6","7","8","9","|","\n"]
ccp = list(set())
c = set()
repeated = set()
cnter = 0
clorr1 = "\033[34m"
clorr2 = "\033[34m"
clord = 0
os.system('clear || cls')
try:
print(colored('\n\033[34mEnter Number Of Days Of Messages = ',color = 'magenta'),end = '')
egg = int(input())
except:
exit();
try: today = datetime.now() DD = timedelta(days=egg) earlier = today - DD except: exit(); din = earlier.strftime("%Y-%m-%d") print('\n') print(""" \033[37m Example Channel or Group : https://t.me/name @name tg://join?invite=code_name https://t.me/joinchat/code_name
""")
try:
chanil = input('\033[34mChannel\033[34m/\033[34mGroup\033[34m:\033[37m')
except:
exit();
chanil = chanil.replace('@','')
with TelegramClient(StringSession(string), Api__id, Api__hash) as client:
binuu = chanil
try:
chanil = client.get_entity(chanil)
print(colored('\n\033[34mFILE NAME = ',color = 'magenta'),end = '')
onichan = input()
except:
chanil = binuu
onichan = chanil
for message in client.iter_messages(chanil):
if din <= message.date.strftime('%Y-%m-%d'):
msg = str(message.text)
else: break
msgln = len(msg)
rr = 0
cc = ""
lstc = []
while rr != msgln:
if msg[rr] in lst:
if msg[rr] == lst[0]:
cc = cc + lst[0]
elif msg[rr] == lst[1]:
cc = cc + lst[1]
elif msg[rr] == lst[2]:
cc = cc + lst[2]
elif msg[rr] == lst[3]:
cc = cc + lst[3]
elif msg[rr] == lst[4]:
cc = cc + lst[4]
elif msg[rr] == lst[5]:
cc = cc + lst[5]
elif msg[rr] == lst[6]:
cc = cc + lst[6]
elif msg[rr] == lst[7]:
cc = cc + lst[7]
elif msg[rr] == lst[8]:
cc = cc + lst[8]
elif msg[rr] == lst[9]:
cc = cc + lst[9]
elif msg[rr] == lst[10]:
cc = cc + lst[10]
elif msg[rr] == lst[11]:
cc = cc + lst[11]
rr = rr + 1
else:
rr = rr + 1
neme = f'{onichan}_CC_Scrapped.txt'
try:
texti = open(neme, 'a')
except:
exit();
#default
r = cc
f = 0
d = 0
def detector(detect):
global f,d
f = int(detect.count('|'))
d = int(f//3)
detector(r)
if d >=2:
if f%3==0:
r = r.replace('\n',' ')
l = r.split(' ')
for i in range(d):
try:
c.add(l[i])
except: pass
for item in c:
if len(item) == 28 and "|" not in str(item)[0:14] and "|" not in str(item)[26:28] :
if item not in repeated:
repeated.add(item)
texti.write(f'{item}\n')
cnter +=1
if clord == 0:
clord = 1
print("\033[34m" + item + "|" + username)
elif clord == 1:
clord = 0
print("\033[34m" + item + "|" + username)
elif len(item) == 26 and "|" not in str(item)[0:14] and "|" not in str(item)[24:26] :
repeated.add(item)
mm = item.split('|')[1]
anos = item.split('|')[2]
cvv = item.split('|')[3]
item = item.split('|')[0]
items = '20'+str(anos)
item = f'{item}|{mm}|{items}|{cvv}'
if item not in repeated:
texti.write(f'{item}\n')
texti.close
cnter +=1
if clord == 0:
clord = 1
print("\033[34m" + item + "|" + username)
elif clord == 1:
clord = 0
print("\033[34m" + item + "|" + username)
else: pass
if "|" in cc:
cc = cc.split('\n')
ccln = len(cc)
ccl = 0
while ccl != ccln:
if len(cc[ccl]) == 28 and "|" not in str(cc[ccl])[0:14] and "|" not in str(cc[ccl])[26:28] :
if cc[ccl] not in ccp:
repeated.add(cc[ccl])
ccp.append(cc[ccl])
texti.write(ccp[-1])
texti.write('\n')
texti.close
cnter = cnter + 1
if clord == 0:
clord = 1
print("\033[34m" + ccp[-1] + "|" + username)
elif clord == 1:
clord = 0
print("\033[34m" + ccp[-1] + "|" + username)
else:
pass
elif len(cc[ccl]) == 26 and "|" not in str(cc[ccl])[0:14] and "|" not in str(cc[ccl])[24:26] :
if cc[ccl] not in ccp:
try:
cch = cc[ccl]
cch = cch.split('|')
ccn = cch[0]
mmm = cch[1]
yyy = cch[2]
cbv = cch[3]
yyy = '20'+str(yyy)
cch = f'{ccn}|{mmm}|{yyy}|{cbv}'
except: continue
if cch not in repeated:
repeated.add(cch)
ccp.append(cch)
texti.write(ccp[-1])
texti.write('\n')
texti.close
cnter = cnter + 1
if clord == 0:
clord = 1
print("\033[34m" + ccp[-1] + "|" + username)
elif clord == 1:
clord = 0
print("\033[34m" + ccp[-1] + "|" + username)
else: pass
ccl = ccl + 1
elif len(cc) < 15:
pass
#ccnum
elif cc[0:15].isdigit and cc[0] == "4" or "3" or "5" or "6" and cc.split('\n')[1].isdigit and cc.split('\n')[2].isdigit:
try:
cc = cc.split('\n')
nrte = cc[2]
nrta = cc[3]
if nrte[0] == "2" or nrte[0] == "3" and len(nrte) == 2:
yyyy = "20" + nrte
elif nrta[0] == "2" or nrta[0] == "3" and len(nrta) == 2:
yyyy = "20" + nrta
if len(cc[2]) == 2 and str(cc[2])[0] != "2":
mm = cc[2]
elif len(cc[3]) == 2 and str(cc[3])[0] != "2":
mm = cc[3]
ccer = cc[0] + "|" + mm + "|" + yyyy + "|" + cc[1]
if ccer not in ccp and len(ccer) == 28:
ccp.append(ccer)
if ccer not in repeated:
repeated.add(ccer)
huin = list(repeated)
texti.write(huin[-1])
texti.write('\n')
texti.close
cnter = cnter + 1
if clord == 0:
clord = 1
print("\033[34m" + huin[-1] + "|" + username)
elif clord == 1:
clord = 0
print("\033[34m" + huin[-1] + "|" + username)
else:
pass
except:
pass
else:
pass
print('\033[37mSave File : CC_Scrapped/'+neme)
lol