dfefwef
This commit is contained in:
@@ -1,143 +1,98 @@
|
||||
from models import db
|
||||
from peewee import *
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
class TelegramAccount(Model):
|
||||
id = AutoField()
|
||||
server_id = CharField(max_length=255, null=True, column_name='server_id')
|
||||
ld_name = CharField(max_length=255, null=True, column_name='ld_name')
|
||||
index_id = IntegerField(null=True, column_name='index_id')
|
||||
one_phone_number = CharField(max_length=10, null=True, column_name='one_phone_number')
|
||||
telephone = CharField(max_length=255, null=True, column_name='telephone')
|
||||
phone_type = IntegerField(null=True, column_name='phone_type')
|
||||
is_logged_in_telegram = IntegerField(null=True, column_name='is_logged_in_telegram')
|
||||
manufacturer = CharField(null=True, ) # 电话号码
|
||||
from datetime import datetime
|
||||
|
||||
import pymysql
|
||||
from peewee import MySQLDatabase
|
||||
|
||||
# 安装 pymysql 作为 MySQLdb
|
||||
pymysql.install_as_MySQLdb()
|
||||
|
||||
# 数据库配置
|
||||
db_config = {
|
||||
'database': 'me',
|
||||
'user': 'me',
|
||||
'password': 'j3HDbra8eaicrNNS',
|
||||
'host': '127.0.0.1',
|
||||
'port': 3306
|
||||
}
|
||||
|
||||
# 全局数据库实例
|
||||
db = MySQLDatabase(
|
||||
db_config['database'],
|
||||
user=db_config['user'],
|
||||
password=db_config['password'],
|
||||
host=db_config['host'],
|
||||
port=db_config['port']
|
||||
)
|
||||
|
||||
|
||||
class TgPhoneDevices(Model):
|
||||
id = AutoField() # 自动递增的主键
|
||||
area_code = CharField(null=True, max_length=255, help_text='电话号码区号') # 区号
|
||||
phone_number = CharField(null=True, max_length=255, help_text='电话号码') # 电话号码
|
||||
device_model = CharField(null=True, max_length=255, help_text='设备型号') # 设备型号
|
||||
system_version = CharField(null=True, max_length=255, help_text='系统版本') # 系统版本
|
||||
app_version = CharField(null=True, max_length=255, help_text='应用版本') # 应用版本
|
||||
lang_code = CharField(null=True, max_length=255, help_text='语言代码') # 语言代码
|
||||
system_lang_code = CharField(null=True, max_length=255, help_text='系统语言代码') # 系统语言代码
|
||||
is_valid_session = IntegerField(null=True, help_text='Session 状态') # Session 状态
|
||||
api_id = IntegerField(null=True, help_text='API ID') # API ID
|
||||
kick_status = IntegerField(null=True, help_text='API ID') # API ID
|
||||
api_hash = CharField(null=True, max_length=255, help_text='API Hash') # API Hash
|
||||
phone = CharField(null=True, max_length=255, help_text='完整电话号码') # 电话号码
|
||||
create_time = DateTimeField(default=datetime.now, help_text='记录创建时间')
|
||||
code = CharField(null=True, ) # 电话号码
|
||||
to_code = CharField(null=True, ) # 电话号码
|
||||
server_ip = CharField(null=True, ) # 电话号码
|
||||
proxy_type = CharField(null=True, ) # 电话号码
|
||||
addr = CharField(null=True, ) # 电话号码
|
||||
port = CharField(null=True, ) # 电话号码
|
||||
user = CharField(null=True, ) # 电话号码
|
||||
pwd = CharField(null=True, ) # 电话号码
|
||||
device_start = IntegerField(null=True, ) # API ID
|
||||
|
||||
# url = CharField(max_length=255, null=True, column_name='url')
|
||||
# login_cipher = CharField(max_length=255, null=True, column_name='login_cipher')
|
||||
# is_check_out_device = IntegerField(null=True, column_name='is_check_out_device')
|
||||
# check_out_device_time = CharField(max_length=255, null=True, column_name='check_out_device_time')
|
||||
# logged_in_telegram_time = CharField(max_length=255, null=True, column_name='logged_in_telegram_time')
|
||||
# is_logged_in_wallet = IntegerField(null=True, column_name='is_logged_in_wallet')
|
||||
# logged_in_wallet_time = CharField(max_length=255, null=True, column_name='logged_in_wallet_time')
|
||||
# paw_2fa = CharField(max_length=255, null=True, column_name='paw_2fa')
|
||||
# create_time = CharField(max_length=255, null=True, column_name='create_time')
|
||||
# update_time = CharField(max_length=255, null=True, column_name='update_time')
|
||||
# paw_2fa_time = CharField(max_length=255, null=True, column_name='paw_2fa_time')
|
||||
# hk_url = CharField(max_length=255, null=True, column_name='hk_url')
|
||||
# cats_stast = CharField(max_length=255, null=True, column_name='cats_stast')
|
||||
# bit_id = CharField(max_length=255, null=True, column_name='bit_id')
|
||||
# bit_name = CharField(max_length=255, null=True, column_name='bit_name')
|
||||
# backups = IntegerField(null=True, column_name='backups')
|
||||
# tg_start = CharField(max_length=255, null=True, )
|
||||
# mumu_is_logged_in_telegram = IntegerField(null=True, )
|
||||
dep_code = CharField(null=True, ) # 电话号码
|
||||
mnemonic = CharField(null=True, ) # 电话号码
|
||||
address = CharField(null=True, ) # 电话号码
|
||||
privkey = CharField(null=True, ) # 电话号码
|
||||
|
||||
class Meta:
|
||||
database = db
|
||||
table_name = 'teleqram_account'
|
||||
database = db # 指定数据库
|
||||
table_name = 'tg_phone_devices' # 指定表名称
|
||||
|
||||
|
||||
class TelegramAccountMumu(Model):
|
||||
id = AutoField()
|
||||
server_id = CharField(max_length=255, null=True, column_name='server_id')
|
||||
ld_name = CharField(max_length=255, null=True, column_name='ld_name')
|
||||
index_id = IntegerField(null=True, column_name='index_id')
|
||||
one_phone_number = CharField(max_length=10, null=True, column_name='one_phone_number')
|
||||
telephone = CharField(max_length=255, null=True, column_name='telephone')
|
||||
url = CharField(max_length=255, null=True, column_name='url')
|
||||
phone_type = IntegerField(null=True, column_name='phone_type')
|
||||
is_logged_in_telegram = IntegerField(null=True, column_name='is_logged_in_telegram')
|
||||
login_cipher = CharField(max_length=255, null=True, column_name='login_cipher')
|
||||
is_check_out_device = IntegerField(null=True, column_name='is_check_out_device')
|
||||
check_out_device_time = CharField(max_length=255, null=True, column_name='check_out_device_time')
|
||||
logged_in_telegram_time = CharField(max_length=255, null=True, column_name='logged_in_telegram_time')
|
||||
is_logged_in_wallet = IntegerField(null=True, column_name='is_logged_in_wallet')
|
||||
logged_in_wallet_time = CharField(max_length=255, null=True, column_name='logged_in_wallet_time')
|
||||
paw_2fa = CharField(max_length=255, null=True, column_name='paw_2fa')
|
||||
create_time = CharField(max_length=255, null=True, column_name='create_time')
|
||||
update_time = CharField(max_length=255, null=True, column_name='update_time')
|
||||
paw_2fa_time = CharField(max_length=255, null=True, column_name='paw_2fa_time')
|
||||
hk_url = CharField(max_length=255, null=True, column_name='hk_url')
|
||||
cats_stast = CharField(max_length=255, null=True, column_name='cats_stast')
|
||||
bit_id = CharField(max_length=255, null=True, column_name='bit_id')
|
||||
bit_name = CharField(max_length=255, null=True, column_name='bit_name')
|
||||
backups = IntegerField(null=True, column_name='backups')
|
||||
class TgPhoneDevices1(Model):
|
||||
id = AutoField() # 自动递增的主键
|
||||
area_code = CharField(null=True, max_length=255, help_text='电话号码区号') # 区号
|
||||
phone_number = CharField(null=True, max_length=255, help_text='电话号码') # 电话号码
|
||||
device_model = CharField(null=True, max_length=255, help_text='设备型号') # 设备型号
|
||||
system_version = CharField(null=True, max_length=255, help_text='系统版本') # 系统版本
|
||||
app_version = CharField(null=True, max_length=255, help_text='应用版本') # 应用版本
|
||||
lang_code = CharField(null=True, max_length=255, help_text='语言代码') # 语言代码
|
||||
system_lang_code = CharField(null=True, max_length=255, help_text='系统语言代码') # 系统语言代码
|
||||
is_valid_session = IntegerField(null=True, help_text='Session 状态') # Session 状态
|
||||
api_id = IntegerField(null=True, help_text='API ID') # API ID
|
||||
kick_status = IntegerField(null=True, help_text='API ID') # API ID
|
||||
api_hash = CharField(null=True, max_length=255, help_text='API Hash') # API Hash
|
||||
phone = CharField(null=True, max_length=255, help_text='完整电话号码') # 电话号码
|
||||
create_time = DateTimeField(default=datetime.now, help_text='记录创建时间')
|
||||
code = CharField(null=True, ) # 电话号码
|
||||
to_code = CharField(null=True, ) # 电话号码
|
||||
server_ip = CharField(null=True, ) # 电话号码
|
||||
proxy_type = CharField(null=True, ) # 电话号码
|
||||
addr = CharField(null=True, ) # 电话号码
|
||||
port = CharField(null=True, ) # 电话号码
|
||||
user = CharField(null=True, ) # 电话号码
|
||||
pwd = CharField(null=True, ) # 电话号码
|
||||
device_start = IntegerField(null=True, ) # API ID
|
||||
|
||||
class Meta:
|
||||
database = db
|
||||
table_name = 'teleqram_account_mumu'
|
||||
database = db # 指定数据库
|
||||
table_name = 'tg_phone_devices_copy1' # 指定表名称
|
||||
|
||||
|
||||
# 定义服务器信息模型
|
||||
class ServerInfo(Model):
|
||||
id = AutoField()
|
||||
server_id = CharField(max_length=255, null=True, help_text='服务器id')
|
||||
index_id = IntegerField(null=True, help_text='模拟器id')
|
||||
one_phone_number = CharField(max_length=10, null=True, help_text='电话号码区号',
|
||||
collation='utf8mb3_general_ci')
|
||||
telephone = CharField(max_length=255, null=True, help_text='电话号码', collation='utf8mb3_general_ci')
|
||||
url = CharField(max_length=255, null=True, help_text='验证码url', collation='utf8mb3_general_ci')
|
||||
phone_type = IntegerField(null=True, help_text='电话号码状态 0:已死1:活着')
|
||||
text = CharField(max_length=255, null=True, help_text='助忘词', collation='utf8mb3_general_ci')
|
||||
token = CharField(max_length=255, null=True, help_text='钱包地址', collation='utf8mb3_general_ci')
|
||||
is_logged_in_telegram = IntegerField(null=True, help_text='是否登录了tg 0:登录失败1:登录成功')
|
||||
login_cipher = CharField(max_length=255, null=True, help_text='登录密码', collation='utf8mb3_general_ci')
|
||||
is_check_out_device = IntegerField(null=True, help_text='是否登出设备 0 :踢设备失败1:以踢设备')
|
||||
logged_in_telegram_time = CharField(max_length=255, null=True, help_text='登录telegram的时间',
|
||||
collation='utf8mb3_general_ci')
|
||||
is_logged_in_wallet = IntegerField(null=True, help_text='是否绑定了wallet 0:绑定失败1:已绑定')
|
||||
logged_in_wallet_time = CharField(max_length=255, null=True, help_text='绑定钱包时间',
|
||||
collation='utf8mb3_general_ci')
|
||||
is_logged_in_dogs = IntegerField(null=True, help_text='是否绑定了dogs')
|
||||
logged_in_dogs_time = CharField(max_length=255, null=True, help_text='绑定dogs时间',
|
||||
collation='utf8mb3_general_ci')
|
||||
is_logged_rocket = IntegerField(null=True, help_text='是否绑定小火箭 1.绑钱包 ,2.做任务 3.点击小火箭')
|
||||
logged_rocket_time = CharField(max_length=255, null=True, help_text='小火箭绑定时间',
|
||||
collation='utf8mb3_general_ci')
|
||||
rocket_click_integral = CharField(max_length=255, null=True, help_text='小火箭积分',
|
||||
collation='utf8mb4_0900_ai_ci')
|
||||
rocket_invitation_code = CharField(max_length=255, null=True, help_text='小火箭邀请码',
|
||||
collation='utf8mb3_general_ci')
|
||||
check_out_device_time = CharField(max_length=255, null=True, help_text='踢设备时间',
|
||||
collation='utf8mb3_general_ci')
|
||||
mailbox = CharField(max_length=255, null=True, help_text='设备保存邮箱', collation='utf8mb3_general_ci')
|
||||
error_text = TextField(null=True, help_text='错误信息', collation='utf8mb3_general_ci')
|
||||
evm_privateKey = CharField(max_length=255, null=True, help_text='evm私钥', collation='utf8mb3_general_ci')
|
||||
evm_address = CharField(max_length=255, null=True, help_text='evm地址', collation='utf8mb3_general_ci')
|
||||
roketocoin_code = CharField(max_length=255, null=True, help_text='太空人邀请链接',
|
||||
collation='utf8mb3_general_ci')
|
||||
roketocoin_start_time = CharField(max_length=255, null=True, help_text='太空人开始时间',
|
||||
collation='utf8mb3_general_ci')
|
||||
roketocoin_stop_time = CharField(max_length=255, null=True, help_text='太空人结束时间',
|
||||
collation='utf8mb3_general_ci')
|
||||
upgrade_type = IntegerField(null=True, help_text='太空人升级类型')
|
||||
hk_url = CharField(max_length=255, null=True, help_text='仓鼠邀请连接')
|
||||
cats_url = CharField(max_length=255, null=True, help_text='cats邀请码')
|
||||
cats_integral = CharField(max_length=255, null=True, help_text='cats积分')
|
||||
cats_task = IntegerField(null=True, help_text='cats任务状态')
|
||||
login_email = CharField(max_length=255, null=True, help_text='登录邮箱')
|
||||
login_email_type = IntegerField(null=True, help_text='0:没有绑上,1:绑上了')
|
||||
bit_id = CharField(max_length=255, null=True, help_text='比特浏览器的id', collation='utf8mb4_0900_ai_ci')
|
||||
bit_type = CharField(max_length=255, null=True)
|
||||
blum_info = TextField(null=True, collation='utf8mb4_0900_ai_ci')
|
||||
depin_info = CharField(max_length=100, null=True)
|
||||
cs_info = TextField(null=True, collation='utf8mb4_0900_ai_ci')
|
||||
hk_wallet = IntegerField(null=True)
|
||||
|
||||
class Meta:
|
||||
database = db # 使用指定的数据库
|
||||
table_name = 'server_info' # 表名
|
||||
|
||||
|
||||
# 示例操作
|
||||
if __name__ == "__main__":
|
||||
|
||||
data = TelegramAccount.select().where(TelegramAccount.is_logged_in_telegram == 1)
|
||||
for i in data:
|
||||
print(i.id)
|
||||
if __name__ == '__main__':
|
||||
db.create_tables([TgPhoneDevices, TgPhoneDevices1])
|
||||
|
||||
@@ -1,23 +1,24 @@
|
||||
21950
|
||||
22534
|
||||
22817
|
||||
24650
|
||||
23547
|
||||
21126
|
||||
22934
|
||||
20314
|
||||
20016
|
||||
24521
|
||||
20354
|
||||
21087
|
||||
24713
|
||||
22414
|
||||
24464
|
||||
22519
|
||||
23955
|
||||
23680
|
||||
21304
|
||||
21320
|
||||
22338
|
||||
21221
|
||||
22427
|
||||
from curl_cffi import requests
|
||||
|
||||
headers = {
|
||||
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 MicroMessenger/7.0.20.1781(0x6700143B) NetType/WIFI MiniProgramEnv/Windows WindowsWechat/WMPF WindowsWechat(0x63090a13) UnifiedPCWindowsWechat(0xf254162e) XWEB/18151',
|
||||
'xweb_xhr': '1',
|
||||
'Content-Type': 'application/json',
|
||||
'Sec-Fetch-Site': 'cross-site',
|
||||
'Sec-Fetch-Mode': 'cors',
|
||||
'Sec-Fetch-Dest': 'empty',
|
||||
'Referer': 'https://servicewechat.com/wx2efc0705600eb6db/550/page-frame.html',
|
||||
'Accept-Language': 'zh-CN,zh;q=0.9',
|
||||
}
|
||||
|
||||
params = {
|
||||
'platform': 'wx',
|
||||
'version': '2025.6.30.01',
|
||||
'action': 'childDetail',
|
||||
'id': '131',
|
||||
'citycode': 'cd',
|
||||
}
|
||||
|
||||
response = requests.get('https://wxapidg.bendibao.com/smartprogram/zhuanti.php', params=params, headers=headers)
|
||||
|
||||
print(response.json())
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user