├── README.md ├── backup-ssh.py ├── bot.py ├── install.sh ├── ir.csv ├── payment.py ├── run.py ├── session-updater.py ├── sshdb.py └── sshx.py /README.md: -------------------------------------------------------------------------------- 1 | [![Telegram Group](https://raw.githubusercontent.com/gauravghongde/social-icons/9d939e1c5b7ea4a24ac39c3e4631970c0aa1b920/SVG/Color/Telegram.svg)](https://t.me/deltacommentsgp) 2 | # SSH Panel Telegram bot 3 | 4 | ربات تلگرام فروش و منیجر پنل اس اس اچ برای پنل های شاهان و ایکس پنل و راکت و دراگون (پایین تر ورژن های ساپورت نوشته شده) 5 | ## 🔗 نصب و آپدیت 6 | 7 | کامند پایین کپی و داخل سرور اجرا کنین (میتونین تو سروری که هر پنلی یا رباتی روشه نصب کنین) 8 | ```bash 9 | bash <(curl -Ls https://raw.githubusercontent.com/Am-Delta/xssh/master/install.sh) 10 | ``` 11 | ازتون آیدی عددی ادمین می پرسه میتونین از این ربات بگیرین 12 | 13 | https://t.me/getmyid_bot 14 | 15 | اگه میخواید چند تا ادمین داشته باشین باید به این صورت بفرستین 16 | 17 | 12345668 25665221 56218523 18 | 19 | ازتون توکن ربات تلگرام میخواد و از بات فادر میگیرین میزنین 20 | 21 | 22 | و در آخر ازتون ای پی آی میپرسه که مربوط به تلگرامه نه پنلا و اگه ندارید میتونین خودتون از وبسایت پایین بگیرین یا اینتر بزنین ک بصورت دیفالت خودش ای پی آی تعریف شده رو استفاده میکنه 23 | 24 | https://my.telegram.org/auth 25 | 26 | رباتو استارت کنین 27 | و باید همه ادمینا حتما رباتو استارت کنن 28 | 29 | اگه ربات استارت نشد یا میخواین تغییرات اعمال کنین دوباره کامند اجرا کنین 30 | 31 | حداقل رم برای این ربات 100MB حتما دقت کنین ( برای خرید سرور 1 دلاری مخصوص ربات ب این سایت مراجعه کنین serverum.com سرور روسی ) 32 | 33 | 34 | Channel: https://t.me/delta_bcc 35 | 36 | Group: https://t.me/deltacommentsgp 37 | 38 | 39 | ## Supported Panels 40 | - Shahan v7.6 41 | - XPanel v3.8.7 42 | - Rocket v1.2.0 43 | - Dragon Lastest 44 | 45 | 46 | ## 🖥 Suggestion System 47 | Auto installation with command 48 | Ubuntu 18+ 49 | 50 | > Manuall installation , 51 | install python and packages then Run run.py > session-updater.py 52 | - Winodows 7, 10, 2016, 2019, 2022 53 | - Debian 10+, CentOS 8+, Fedora 36+, Arch Linux 54 | 55 | 56 | ## ❤️ Donate 57 | 58 | BTC: bc1qftxmgxqntxmyuerqvwk69rxm52ayrtvhvdtmdc 59 | 60 | TRX: TAuhCY9PbmKw7gKgjKqkqQHmazNKUXHR26 61 | 62 | 63 | ## 📷 Screenshots Admins, Sellers and Users Tools 64 | 65 | ![Screenshot](https://i.ibb.co/8bttGtK/un-1.jpg)![Screenshot2](https://i.ibb.co/G7BdCWc/un-2.jpg) 66 | 67 | ## 🔗 A Special Thanks To 68 | [HamedAp](https://github.com/HamedAp) 69 | 70 | [XPanel](https://github.com/xpanel-cp/XPanel-SSH-User-Management) 71 | 72 | [mahmoud-ap](https://github.com/mahmoud-ap/rocket-ssh) 73 | 74 | [januda-ui](https://github.com/januda-ui/DRAGON-VPS-MANAGER) 75 | -------------------------------------------------------------------------------- /backup-ssh.py: -------------------------------------------------------------------------------- 1 | import os 2 | import sshx 3 | from time import sleep 4 | from pathlib import Path 5 | 6 | folder = 'backup' 7 | sleeper = 3600 * 6 8 | 9 | if os.path.isdir(folder) is False: 10 | os.makedirs(folder) 11 | 12 | 13 | def main(): 14 | hosts, remarks = sshx.HOSTS() 15 | for host in hosts: 16 | port, username, password, panel, route_path, sshport, udgpw, remark = sshx.HOST_INFO(host) 17 | try: 18 | Session = sshx.PANNEL(host, username, password, port, panel, 'Other', 'uname') 19 | status, content = Session.Backup_content() 20 | if status is True: 21 | if panel in ['dragon']: 22 | f = folder + "/" + host + ".vps" 23 | else: 24 | f = folder + "/" + host + ".sql" 25 | if Path(f).is_file() is True: 26 | os.remove(f) 27 | with open(f, 'wb') as file: 28 | file.write(content) 29 | else: 30 | print("[-] Backup Error: " + content + " | " + host) 31 | except Exception as e: 32 | print("[-] Backup Error: " + str(e) + " | " + host) 33 | while True: 34 | main() 35 | sleep(sleeper) 36 | -------------------------------------------------------------------------------- /install.sh: -------------------------------------------------------------------------------- 1 | echo "Running ..." 2 | 3 | sudo apt install python3 4 | sudo apt install python3-pip 5 | sudo apt install pip 6 | sudo apt install git 7 | pip install --upgrade pip 8 | pip install pyrogram 9 | pip install random2 10 | pip install qrcode 11 | pip install cryptocompare 12 | pip install tgcrypto 13 | pip install selectolax 14 | pip install bs4 15 | pip install requests 16 | pip install termcolor 17 | pip install Unidecode 18 | pip install jdatetime 19 | pip install ipaddress 20 | pip install paramiko 21 | pip install psutil 22 | pip install pyopenssl --upgrade 23 | 24 | mkdir /root/botCh 25 | 26 | pkill -9 -f "backup-ssh.py" 27 | pkill -9 -f "bot.py" 28 | pkill -9 -f "session-updater.py" 29 | 30 | mv /root/bot/Pannels.txt /root/botCh 31 | mv /root/bot/backup /root/botCh 32 | mv /root/bot/ssh /root/botCh 33 | mv /root/bot/cache /root/botCh 34 | mv /root/bot/protocol-cache.txt /root/botCh 35 | mv /root/bot/All.txt /root/botCh 36 | mv /root/bot/ssh.db /root/botCh 37 | mv /root/bot/backup.db /root/botCh 38 | mv /root/bot/data.json /root/ 39 | 40 | rm -r /root/bot 41 | 42 | git clone "https://github.com/Am-Delta/xssh.git" /root/bot/ 43 | 44 | mv /root/botCh/Pannels.txt /root/bot 45 | mv /root/botCh/backup /root/bot 46 | mv /root/botCh/ssh /root/bot 47 | mv /root/botCh/cache /root/bot 48 | mv /root/botCh/protocol-cache.txt /root/bot 49 | mv /root/botCh/All.txt /root/bot 50 | mv /root/botCh/ssh.db /root/bot 51 | mv /root/botCh/backup.db /root/bot 52 | mv /root/data.json /root/bot/ 53 | 54 | rm -r /root/botCh 55 | 56 | cd /root/bot 57 | 58 | clear 59 | 60 | chmod 664 /root/bot/ 61 | chmod 664 /usr/local/lib/ 62 | 63 | echo 'import sys ; print(sys.path)' | python3 64 | 65 | python3 run.py 66 | 67 | echo -ne '\n\n' 68 | -------------------------------------------------------------------------------- /ir.csv: -------------------------------------------------------------------------------- 1 | 2.144.0.0,2.147.255.255,262144,22/10/10,Iran Cell Service and Communication Company 2 | 2.176.0.0,2.191.255.255,1048576,18/10/10,Information Technology Company (ITC) 3 | 5.22.0.0,5.22.127.255,32768,03/05/12,Mobile Communication Company of Iran PLC 4 | 5.34.192.0,5.34.207.255,4096,11/05/12,Fanap - Passargad Arian Information & communication Tehchnology 5 | 5.52.0.0,5.52.255.255,65536,25/05/12,Mobile Communication Company of Iran PLC 6 | 5.53.32.0,5.53.63.255,8192,29/05/12,Iran Telecommunication Company PJS 7 | 5.62.160.0,5.62.191.255,8192,11/06/12,Iran Telecommunication Company PJS 8 | 5.62.192.0,5.62.255.255,16384,11/06/12,"Rightel Communication Service Company PJS" 9 | 5.72.0.0,5.72.255.255,65536,11/06/12,"Rightel Communication Service Company PJS" 10 | 5.73.0.0,5.73.255.255,65536,11/06/12,"Rightel Communication Service Company PJS" 11 | 5.74.0.0,5.74.255.255,65536,11/06/12,Iran Telecommunication Company PJS 12 | 5.75.0.0,5.75.127.255,32768,11/06/12,Iran Telecommunication Company PJS 13 | 5.106.0.0,5.106.255.255,65536,28/06/12,Mobile Communication Company of Iran PLC 14 | 5.112.0.0,5.127.255.255,1048576,29/06/12,Iran Cell Service and Communication Company 15 | 5.134.128.0,5.134.191.255,16384,10/07/12,"Rightel Communication Service Company PJS" 16 | 5.160.0.0,5.160.255.255,65536,25/07/12,Respina Networks & Beyond PJSC 17 | 5.190.0.0,5.190.255.255,65536,13/08/12,Iran Telecommunication Company PJS 18 | 5.198.160.0,5.198.191.255,8192,27/08/12,Iran Telecommunication Company PJS 19 | 5.200.64.0,5.200.95.255,8192,30/08/12,Tose'h Fanavari Ertebabat Pasargad Arian Co. PJS 20 | 5.200.96.0,5.200.127.255,8192,30/08/12,"Rightel Communication Service Company PJS" 21 | 5.200.128.0,5.200.255.255,32768,29/08/12,Iran Telecommunication Company PJS 22 | 5.201.128.0,5.201.191.255,16384,29/08/12,Mobin Net Communication Company (Private Joint Stock) 23 | 5.201.192.0,5.201.255.255,16384,29/08/12,Mobile Communication Company of Iran PLC 24 | 5.202.0.0,5.202.255.255,65536,29/08/12,Pishgaman Toseeh Ertebatat Company (Private Joint Stock) 25 | 5.208.0.0,5.209.255.255,131072,04/09/12,Mobile Communication Company of Iran PLC 26 | 5.210.0.0,5.210.255.255,65536,04/09/12,Mobile Communication Company of Iran PLC 27 | 5.211.0.0,5.211.255.255,65536,04/09/12,Mobile Communication Company of Iran PLC 28 | 5.212.0.0,5.213.255.255,131072,04/09/12,Mobile Communication Company of Iran PLC 29 | 5.214.0.0,5.215.255.255,131072,04/09/12,Mobile Communication Company of Iran PLC 30 | 5.216.0.0,5.217.255.255,131072,04/09/12,Mobile Communication Company of Iran PLC 31 | 5.218.0.0,5.218.255.255,65536,04/09/12,Mobile Communication Company of Iran PLC 32 | 5.219.0.0,5.219.63.255,16384,04/09/12,Iran Telecommunication Company PJS 33 | 5.219.64.0,5.219.127.255,16384,04/09/12,Iran Telecommunication Company PJS 34 | 5.219.128.0,5.219.191.255,16384,04/09/12,Iran Telecommunication Company PJS 35 | 5.219.192.0,5.219.255.255,16384,04/09/12,Iran Telecommunication Company PJS 36 | 5.220.0.0,5.223.255.255,262144,04/09/12,GOSTARESH-E-ERTEBATAT-E MABNA COMPANY (Private Joint Stock) 37 | 5.232.0.0,5.239.255.255,524288,07/09/12,Iran Telecommunication Company PJS 38 | 5.250.0.0,5.250.127.255,32768,13/09/12,Mobile Communication Company of Iran PLC 39 | 31.2.128.0,31.2.255.255,32768,05/04/11,Mobile Communication Company of Iran PLC 40 | 31.7.64.0,31.7.79.255,4096,11/04/11,Asiatech Data Transmission company 41 | 31.7.96.0,31.7.127.255,8192,11/04/11,Iran Telecommunication Company PJS 42 | 31.7.128.0,31.7.143.255,4096,13/04/11,Aryan Satellite Co. (Private Joint Stock) 43 | 31.14.80.0,31.14.95.255,4096,18/04/11,Iran Telecommunication Company PJS 44 | 31.14.112.0,31.14.127.255,4096,18/04/11,Afranet 45 | 31.14.144.0,31.14.159.255,4096,18/04/11,Iran Telecommunication Company PJS 46 | 31.47.32.0,31.47.63.255,8192,21/03/11,Afranet 47 | 31.56.0.0,31.59.255.255,262144,28/01/11,Aria Shatel Company Ltd 48 | 31.130.176.0,31.130.191.255,4096,05/05/11, 49 | 31.170.48.0,31.170.63.255,4096,30/03/11,Farahoosh Dena PLC 50 | 31.184.128.0,31.184.191.255,16384,01/03/11,GOSTARESH-E-ERTEBATAT-E MABNA COMPANY (Private Joint Stock) 51 | 37.19.80.0,37.19.95.255,4096,22/12/11,Farabord Dadeh Haye Iranian Co. 52 | 37.32.0.0,37.32.31.255,8192,02/01/12,Noyan Abr Arvan Co. ( Private Joint Stock) 53 | 37.32.112.0,37.32.127.255,4096,03/01/12,Rayaneh Pardazan Baran Co. Ltd. 54 | 37.63.128.0,37.63.255.255,32768,23/01/12,Mobile Communication Company of Iran PLC 55 | 37.98.0.0,37.98.127.255,32768,06/02/12,Mobile Communication Company of Iran PLC 56 | 37.114.192.0,37.114.255.255,16384,10/02/12,Tose'h Fanavari Ertebabat Pasargad Arian Co. PJS 57 | 37.129.0.0,37.129.255.255,65536,20/02/12,Mobile Communication Company of Iran PLC 58 | 37.137.0.0,37.137.255.255,65536,22/02/12,"Rightel Communication Service Company PJS" 59 | 37.148.0.0,37.148.127.255,32768,02/03/12,Aria Shatel Company Ltd 60 | 37.152.160.0,37.152.175.255,4096,12/03/12,Rahanet Zanjan Co. (Private Joint-Stock) 61 | 37.152.176.0,37.152.191.255,4096,12/03/12,Noyan Abr Arvan Co. ( Private Joint Stock) 62 | 37.153.176.0,37.153.191.255,4096,13/03/12,"Rightel Communication Service Company PJS" 63 | 37.156.16.0,37.156.31.255,4096,13/03/12,Mobin Net Communication Company (Private Joint Stock) 64 | 37.156.48.0,37.156.63.255,4096,13/03/12,"Rightel Communication Service Company PJS" 65 | 37.156.112.0,37.156.127.255,4096,13/03/12,Iran Telecommunication Company PJS 66 | 37.156.128.0,37.156.143.255,4096,13/03/12,Iran Telecommunication Company PJS 67 | 37.191.64.0,37.191.95.255,8192,21/03/12,Tose'h Fanavari Ertebabat Pasargad Arian Co. PJS 68 | 37.202.128.0,37.202.255.255,32768,23/03/12,Aria Shatel Company Ltd 69 | 37.221.0.0,37.221.63.255,16384,05/04/12,Farabord Dadeh Haye Iranian Co. 70 | 37.235.16.0,37.235.31.255,4096,16/04/12,Farabord Dadeh Haye Iranian Co. 71 | 37.254.0.0,37.255.255.255,131072,19/04/12,Iran Telecommunication Company PJS 72 | 46.21.80.0,46.21.95.255,4096,03/11/10,ANDISHE SABZ KHAZAR CO. P.J.S. 73 | 46.32.0.0,46.32.31.255,8192,11/08/10,Tose'h Fanavari Ertebabat Pasargad Arian Co. PJS 74 | 46.34.96.0,46.34.127.255,8192,21/09/10,Mellat Insurance Public Joint Stock Company 75 | 46.34.176.0,46.34.191.255,4096,23/09/10,Tose'h Fanavari Ertebabat Pasargad Arian Co. PJS 76 | 46.36.96.0,46.36.111.255,4096,26/10/10,"Pirooz Leen" LLC 77 | 46.38.128.0,46.38.159.255,8192,25/11/10,Farhang Azma Communications Company LTD 78 | 46.41.192.0,46.41.255.255,16384,27/07/10,Pars Online PJS 79 | 46.51.0.0,46.51.127.255,32768,27/07/10,Mobile Communication Company of Iran PLC 80 | 46.100.0.0,46.100.255.255,65536,24/06/10,Iran Telecommunication Company PJS 81 | 46.102.128.0,46.102.143.255,4096,25/06/10,Afranet 82 | 46.143.0.0,46.143.127.255,32768,25/11/10,Asiatech Data Transmission company 83 | 46.143.192.0,46.143.255.255,16384,25/11/10,MIHAN COMMUNICATION SYSTEMS CO.,LTD 84 | 46.148.32.0,46.148.47.255,4096,03/11/10, 85 | 46.164.64.0,46.164.127.255,16384,08/12/10,Mobile Communication Company of Iran PLC 86 | 46.167.128.0,46.167.159.255,8192,04/03/11,Rayaneh Danesh Golestan Complex P.J.S. Co. 87 | 46.209.0.0,46.209.255.255,65536,02/12/10,Respina Networks & Beyond PJSC 88 | 46.224.0.0,46.225.255.255,131072,31/12/10,Rayaneh Danesh Golestan Complex P.J.S. Co. 89 | 46.245.0.0,46.245.63.255,16384,31/12/10,Hamara System Tabriz Engineering Company 90 | 46.245.64.0,46.245.127.255,16384,31/12/10,Asiatech Data Transmission company 91 | 46.248.32.0,46.248.63.255,8192,17/12/10,Iran Telecommunication Company PJS 92 | 62.60.128.0,62.60.255.255,32768,13/06/01,Iranian Research Organization for Science & Technology 93 | 62.102.128.0,62.102.143.255,4096,10/03/11,Mobile Communication Company of Iran PLC 94 | 62.193.0.0,62.193.31.255,8192,17/07/00,DP IRAN PLC 95 | 62.220.96.0,62.220.127.255,8192,25/10/01,Soroush Rasanheh Company Ltd 96 | 66.79.96.0,66.79.127.255,8192,25/06/08,Iran Telecommunication Company PJS 97 | 69.194.64.0,69.194.127.255,16384,13/05/09,Mobile Communication Company of Iran PLC 98 | 77.36.128.0,77.36.255.255,32768,12/03/07,IRIB (Islamic Republic of Iran Broadcasting) 99 | 77.77.64.0,77.77.127.255,16384,21/02/07,Rayaneh Danesh Golestan Complex P.J.S. Co. 100 | 77.81.32.0,77.81.47.255,4096,15/02/07,Iran Telecommunication Company PJS 101 | 77.81.144.0,77.81.159.255,4096,15/02/07,Iran Telecommunication Company PJS 102 | 77.81.192.0,77.81.223.255,8192,15/02/07,"Rightel Communication Service Company PJS" 103 | 77.104.64.0,77.104.127.255,16384,07/10/08,Respina Networks & Beyond PJSC 104 | 77.237.64.0,77.237.95.255,8192,01/02/07,Respina Networks & Beyond PJSC 105 | 77.237.160.0,77.237.191.255,8192,06/02/07,Pishgaman Toseeh Ertebatat Company (Private Joint Stock) 106 | 77.245.224.0,77.245.239.255,4096,07/05/07,Research Institute Of Petroleum Industry 107 | 78.38.0.0,78.39.255.255,131072,19/03/07,Information Technology Company (ITC) 108 | 78.109.192.0,78.109.207.255,4096,17/07/07,Afranet 109 | 78.154.32.0,78.154.63.255,8192,17/07/07,Tose'h Fanavari Ertebabat Pasargad Arian Co. PJS 110 | 78.157.32.0,78.157.63.255,8192,28/08/07,Dade Samane Fanava Company (PJS) 111 | 78.158.160.0,78.158.191.255,8192,06/09/07,Tose'h Fanavari Ertebabat Pasargad Arian Co. PJS 112 | 79.127.0.0,79.127.127.255,32768,17/09/07,Asiatech Data Transmission company 113 | 79.132.208.0,79.132.223.255,4096,02/10/07,Tose'h Fanavari Ertebabat Pasargad Arian Co. PJS 114 | 79.175.128.0,79.175.191.255,16384,12/11/07,Afranet 115 | 80.66.176.0,80.66.191.255,4096,09/06/04,University of Tehran 116 | 80.71.112.0,80.71.127.255,4096,18/01/05,Tose'h Fanavari Ertebabat Pasargad Arian Co. PJS 117 | 80.75.0.0,80.75.15.255,4096,19/06/01,Afranet 118 | 80.191.0.0,80.191.255.255,65536,23/07/02,Information Technology Company (ITC) 119 | 80.210.0.0,80.210.63.255,16384,12/12/01,Iran Telecommunication Company PJS 120 | 80.210.128.0,80.210.255.255,32768,12/12/01,Iran Telecommunication Company PJS 121 | 80.242.0.0,80.242.15.255,4096,27/04/09,Mobile Communication Company of Iran PLC 122 | 80.250.192.0,80.250.207.255,4096,27/08/12,Iran Telecommunication Company PJS 123 | 80.253.128.0,80.253.143.255,4096,13/12/01,Tose'h Fanavari Ertebabat Pasargad Arian Co. PJS 124 | 80.253.144.0,80.253.159.255,4096,28/05/02,Tose'h Fanavari Ertebabat Pasargad Arian Co. PJS 125 | 81.12.0.0,81.12.127.255,32768,27/05/02,Soroush Rasanheh Company Ltd 126 | 81.16.112.0,81.16.127.255,4096,21/01/04,Iran Telecommunication Company PJS 127 | 81.28.32.0,81.28.47.255,4096,17/04/02,IsIran 128 | 81.28.48.0,81.28.63.255,4096,22/12/04,IsIran 129 | 81.29.240.0,81.29.255.255,4096,17/06/09,Tose'h Fanavari Ertebabat Pasargad Arian Co. PJS 130 | 81.31.160.0,81.31.175.255,4096,03/06/02,Sharif University Of Technology 131 | 81.31.176.0,81.31.191.255,4096,08/12/03,Sharif University Of Technology 132 | 81.31.224.0,81.31.255.255,8192,29/08/11,Chapar Rasaneh LLC 133 | 81.90.144.0,81.90.159.255,4096,04/01/06,Afranet 134 | 81.91.128.0,81.91.143.255,4096,18/07/02,Datak Company LLC 135 | 81.91.144.0,81.91.159.255,4096,26/09/02,Farabord Dadeh Haye Iranian Co. 136 | 82.99.192.0,82.99.255.255,16384,12/12/03,Pars Online PJS 137 | 82.180.192.0,82.180.255.255,16384,09/10/03,Mobile Communication Company of Iran PLC 138 | 83.120.0.0,83.123.255.255,262144,06/01/04,Mobile Communication Company of Iran PLC 139 | 83.147.192.0,83.147.255.255,16384,14/06/07,Raya Sepehr Vira Data Processing Company Ltd. 140 | 84.47.192.0,84.47.223.255,8192,15/10/04,Iran Telecommunication Company PJS 141 | 84.47.240.0,84.47.255.255,4096,15/10/04,Iran Telecommunication Company PJS 142 | 84.241.0.0,84.241.63.255,16384,10/06/04,Aria Shatel Company Ltd 143 | 85.9.64.0,85.9.127.255,16384,11/02/05,Pishgaman Toseeh Ertebatat Company (Private Joint Stock) 144 | 85.15.0.0,85.15.63.255,16384,19/04/05,Aria Shatel Company Ltd 145 | 85.133.128.0,85.133.255.255,32768,06/12/05,Sepanta Communication Development Co. Ltd 146 | 85.185.0.0,85.185.255.255,65536,25/11/04,Information Technology Company (ITC) 147 | 85.198.48.0,85.198.63.255,4096,31/01/05,Sefroyek Pardaz Engineering PJSC 148 | 85.204.80.0,85.204.95.255,4096,13/01/05,Iran Telecommunication Company PJS 149 | 85.204.208.0,85.204.223.255,4096,13/01/05,Iran Telecommunication Company PJS 150 | 85.239.192.0,85.239.223.255,8192,21/06/05,Mobile Communication Company of Iran PLC 151 | 86.55.0.0,86.55.255.255,65536,13/05/05,Mobile Communication Company of Iran PLC 152 | 86.57.0.0,86.57.127.255,32768,08/01/10,Sefroyek Pardaz Engineering PJSC 153 | 86.104.32.0,86.104.47.255,4096,18/04/05,Afranet 154 | 86.104.80.0,86.104.95.255,4096,18/04/05,Iran Telecommunication Company PJS 155 | 86.104.96.0,86.104.111.255,4096,18/04/05,Iran Telecommunication Company PJS 156 | 86.105.128.0,86.105.143.255,4096,18/04/05,Iran Telecommunication Company PJS 157 | 86.107.0.0,86.107.15.255,4096,18/04/05,Mobile Communication Company of Iran PLC 158 | 86.107.80.0,86.107.95.255,4096,18/04/05,Iran Telecommunication Company PJS 159 | 86.107.144.0,86.107.159.255,4096,18/04/05,Iran Telecommunication Company PJS 160 | 86.107.208.0,86.107.223.255,4096,18/04/05,Mobile Communication Company of Iran PLC 161 | 86.109.32.0,86.109.63.255,8192,05/07/05,Tose'h Fanavari Ertebabat Pasargad Arian Co. PJS 162 | 87.107.0.0,87.107.255.255,65536,22/08/05,Soroush Rasanheh Company Ltd 163 | 87.248.128.0,87.248.159.255,8192,26/08/08,TOSE'EH ERTEBATAT NOVIN ARIA CO PJS 164 | 87.251.128.0,87.251.159.255,8192,13/09/05,Iran Telecommunication Company PJS 165 | 89.32.0.0,89.32.31.255,8192,29/11/05,"Rightel Communication Service Company PJS" 166 | 89.32.96.0,89.32.111.255,4096,29/11/05,"Rightel Communication Service Company PJS" 167 | 89.34.32.0,89.34.63.255,8192,29/11/05,"Rightel Communication Service Company PJS" 168 | 89.34.128.0,89.34.159.255,8192,29/11/05,"Rightel Communication Service Company PJS" 169 | 89.36.48.0,89.36.63.255,4096,29/11/05,Iran Telecommunication Company PJS 170 | 89.36.96.0,89.36.111.255,4096,29/11/05,Iran Telecommunication Company PJS 171 | 89.36.176.0,89.36.191.255,4096,29/11/05,Iran Telecommunication Company PJS 172 | 89.37.0.0,89.37.15.255,4096,29/11/05,Mobin Net Communication Company (Private Joint Stock) 173 | 89.37.240.0,89.37.255.255,4096,29/11/05,Iran Telecommunication Company PJS 174 | 89.38.80.0,89.38.95.255,4096,29/11/05,Iran Telecommunication Company PJS 175 | 89.40.240.0,89.40.255.255,4096,29/11/05,Iran Telecommunication Company PJS 176 | 89.41.192.0,89.41.223.255,8192,29/11/05,"Rightel Communication Service Company PJS" 177 | 89.43.0.0,89.43.15.255,4096,29/11/05,Mobin Net Communication Company (Private Joint Stock) 178 | 89.45.48.0,89.45.63.255,4096,29/11/05,Mobile Communication Company of Iran PLC 179 | 89.47.64.0,89.47.79.255,4096,29/11/05,"Rightel Communication Service Company PJS" 180 | 89.47.128.0,89.47.159.255,8192,29/11/05,"Rightel Communication Service Company PJS" 181 | 89.144.128.0,89.144.191.255,16384,27/01/06,ANDISHE SABZ KHAZAR CO. P.J.S. 182 | 89.165.0.0,89.165.127.255,32768,01/03/06,Parvaresh Dadeha Co. Private Joint Stock 183 | 89.196.0.0,89.196.255.255,65536,06/04/06,Mobile Communication Company of Iran PLC 184 | 89.198.0.0,89.198.127.255,32768,06/04/06,Mobile Communication Company of Iran PLC 185 | 89.198.128.0,89.198.255.255,32768,06/04/06,Mobile Communication Company of Iran PLC 186 | 89.199.0.0,89.199.255.255,65536,06/04/06,Mobile Communication Company of Iran PLC 187 | 89.219.64.0,89.219.127.255,16384,05/07/06,Iran Telecommunication Company PJS 188 | 89.219.192.0,89.219.255.255,16384,05/07/06,Iran Telecommunication Company PJS 189 | 89.221.80.0,89.221.95.255,4096,29/09/06,Dade Samane Fanava Company (PJS) 190 | 89.235.80.0,89.235.95.255,4096,30/05/06,Iran Telecommunication Company PJS 191 | 89.235.112.0,89.235.127.255,4096,30/05/06,Iran Telecommunication Company PJS 192 | 91.98.0.0,91.98.255.255,65536,11/09/06,Pars Online PJS 193 | 91.106.64.0,91.106.95.255,8192,21/06/12,PJSC "Badr Rayan Jonoob" 194 | 91.108.128.0,91.108.159.255,8192,15/06/12,Rayaneh Gostar Farzanegan Ahwaz Company LTD. 195 | 91.133.128.0,91.133.255.255,32768,30/10/06,Mobile Communication Company of Iran PLC 196 | 91.147.64.0,91.147.79.255,4096,27/10/06,Iran Telecommunication Company PJS 197 | 91.184.64.0,91.184.79.255,4096,11/10/06,Farabord Dadeh Haye Iranian Co. 198 | 91.184.80.0,91.184.95.255,4096,11/10/06,Datak Company LLC 199 | 91.185.128.0,91.185.159.255,8192,25/10/06,Iran Telecommunication Company PJS 200 | 91.186.192.0,91.186.223.255,8192,10/11/06,Raya Sepehr Vira Data Processing Company Ltd. 201 | 91.243.160.0,91.243.175.255,4096,07/08/12, 202 | 91.250.224.0,91.250.239.255,4096,14/09/12,Iran Telecommunication Company PJS 203 | 91.251.0.0,91.251.255.255,65536,14/09/12,Mobile Communication Company of Iran PLC 204 | 92.114.16.0,92.114.31.255,4096,15/10/07,Mobin Net Communication Company (Private Joint Stock) 205 | 92.114.64.0,92.114.79.255,4096,15/10/07,"Rightel Communication Service Company PJS" 206 | 92.242.192.0,92.242.223.255,8192,08/01/08,Respina Networks & Beyond PJSC 207 | 93.110.0.0,93.110.255.255,65536,24/04/08,Mobile Communication Company of Iran PLC 208 | 93.113.224.0,93.113.239.255,4096,21/12/07,Afranet 209 | 93.114.16.0,93.114.31.255,4096,21/12/07,"Rightel Communication Service Company PJS" 210 | 93.115.224.0,93.115.239.255,4096,21/12/07,Iran Telecommunication Company PJS 211 | 93.117.0.0,93.117.31.255,8192,21/12/07,Iran Telecommunication Company PJS 212 | 93.117.32.0,93.117.47.255,4096,21/12/07,Iran Telecommunication Company PJS 213 | 93.117.96.0,93.117.127.255,8192,21/12/07,Iran Telecommunication Company PJS 214 | 93.117.176.0,93.117.191.255,4096,21/12/07,Mobile Communication Company of Iran PLC 215 | 93.118.96.0,93.118.127.255,8192,21/12/07,Iran Telecommunication Company PJS 216 | 93.118.128.0,93.118.159.255,8192,21/12/07,Iran Telecommunication Company PJS 217 | 93.118.160.0,93.118.175.255,4096,21/12/07,Iran Telecommunication Company PJS 218 | 93.119.32.0,93.119.63.255,8192,21/12/07,Iran Telecommunication Company PJS 219 | 93.119.64.0,93.119.95.255,8192,21/12/07,Iran Telecommunication Company PJS 220 | 93.119.208.0,93.119.223.255,4096,21/12/07,Mobile Communication Company of Iran PLC 221 | 93.126.0.0,93.126.63.255,16384,09/07/08, 222 | 94.24.0.0,94.24.15.255,4096,02/06/08,"Rightel Communication Service Company PJS" 223 | 94.24.80.0,94.24.95.255,4096,02/06/08,"Rightel Communication Service Company PJS" 224 | 94.74.128.0,94.74.191.255,16384,14/07/08,Farahoosh Dena PLC 225 | 94.101.128.0,94.101.143.255,4096,15/08/08,Mobin Net Communication Company (Private Joint Stock) 226 | 94.101.176.0,94.101.191.255,4096,21/08/08,Noyan Abr Arvan Co. ( Private Joint Stock) 227 | 94.101.240.0,94.101.255.255,4096,26/08/08,Mobile Communication Company of Iran PLC 228 | 94.139.160.0,94.139.175.255,4096,26/11/08,Farabord Dadeh Haye Iranian Co. 229 | 94.139.176.0,94.139.191.255,4096,26/11/08,Datak Company LLC 230 | 94.182.0.0,94.183.255.255,131072,17/09/08,Aria Shatel Company Ltd 231 | 94.184.0.0,94.184.127.255,32768,11/08/08,Institute for Research in Fundamental Sciences 232 | 94.184.128.0,94.184.255.255,32768,15/07/09,Institute for Research in Fundamental Sciences 233 | 94.241.128.0,94.241.191.255,16384,30/09/08,Raya Sepehr Vira Data Processing Company Ltd. 234 | 95.38.0.0,95.38.255.255,65536,11/12/08,Fanava Group 235 | 95.64.0.0,95.64.127.255,32768,23/10/08,Mobile Communication Company of Iran PLC 236 | 95.80.128.0,95.80.191.255,16384,25/11/08,Bozorg Net-e Aria 237 | 95.81.64.0,95.81.127.255,16384,04/06/09,Hamara System Tabriz Engineering Company 238 | 95.142.224.0,95.142.239.255,4096,11/08/09,Armaghan Rahe Talaie 239 | 95.162.0.0,95.162.255.255,65536,24/12/08,"Rightel Communication Service Company PJS" 240 | 109.72.192.0,109.72.207.255,4096,21/09/09,khalij fars Ettela Resan Company J.S. 241 | 109.74.224.0,109.74.239.255,4096,12/11/09,Iran Telecommunication Company PJS 242 | 109.108.160.0,109.108.191.255,8192,29/10/09,Mobile Communication Company of Iran PLC 243 | 109.109.32.0,109.109.63.255,8192,03/11/09,ANDISHE SABZ KHAZAR CO. P.J.S. 244 | 109.110.160.0,109.110.191.255,8192,23/11/09,Shabdiz Telecom Network PJSC 245 | 109.122.224.0,109.122.239.255,4096,01/10/09,Asiatech Data Transmission company 246 | 109.122.240.0,109.122.255.255,4096,01/10/09,MIHAN COMMUNICATION SYSTEMS CO.,LTD 247 | 109.125.128.0,109.125.159.255,8192,12/11/09,Pishgaman Tejarat Sayar Company (Private Joint Stock) 248 | 109.125.160.0,109.125.191.255,8192,12/11/09,Pishgaman Toseeh Ertebatat Company (Private Joint Stock) 249 | 109.162.128.0,109.162.255.255,32768,25/03/10,Datak Company LLC 250 | 109.201.0.0,109.201.31.255,8192,11/02/10,Tose'h Fanavari Ertebabat Pasargad Arian Co. PJS 251 | 109.203.128.0,109.203.159.255,8192,05/03/10,Mobile Communication Company of Iran PLC 252 | 109.203.160.0,109.203.191.255,8192,31/03/10,Farahoosh Dena PLC 253 | 109.225.128.0,109.225.191.255,16384,20/01/10,Mobile Communication Company of Iran PLC 254 | 109.230.64.0,109.230.95.255,8192,17/02/10,Boomerang Rayaneh 255 | 109.238.176.0,109.238.191.255,4096,26/01/10,khalij fars Ettela Resan Company J.S. 256 | 109.239.0.0,109.239.15.255,4096,29/01/10,Mehvar Machine 257 | 113.203.0.0,113.203.127.255,32768,28/11/08,Mobile Communication Company of Iran PLC 258 | 128.65.160.0,128.65.175.255,4096,07/10/11,Shabakeh Gostar Dorna Cooperative Co. 259 | 128.65.176.0,128.65.191.255,4096,07/10/11,Asiatech Data Transmission company 260 | 130.255.192.0,130.255.255.255,16384,31/10/11,Mobile Communication Company of Iran PLC 261 | 151.232.0.0,151.235.255.255,262144,13/08/12,Iran Telecommunication Company PJS 262 | 151.238.0.0,151.239.255.255,131072,15/08/12,Aria Shatel Company Ltd 263 | 151.240.0.0,151.247.255.255,524288,15/08/12,Aria Shatel Company Ltd 264 | 158.58.0.0,158.58.127.255,32768,08/11/11,Mobile Communication Company of Iran PLC 265 | 159.20.96.0,159.20.111.255,4096,14/09/11,ANDISHE SABZ KHAZAR CO. P.J.S. 266 | 164.138.128.0,164.138.191.255,16384,19/03/12,Mobile Communication Company of Iran PLC 267 | 164.215.128.0,164.215.255.255,32768,25/11/11,Fanava Group 268 | 172.80.128.0,172.80.255.255,32768,05/07/15,Mobile Communication Company of Iran PLC 269 | 176.12.64.0,176.12.79.255,4096,18/05/11,ANDISHE SABZ KHAZAR CO. P.J.S. 270 | 176.46.128.0,176.46.159.255,8192,25/05/11,Farahoosh Dena PLC 271 | 176.65.160.0,176.65.191.255,8192,10/06/11,Iran Telecommunication Company PJS 272 | 176.65.192.0,176.65.223.255,8192,10/06/11,Mobile Communication Company of Iran PLC 273 | 176.65.224.0,176.65.239.255,4096,10/06/11,Iran Telecommunication Company PJS 274 | 176.67.64.0,176.67.79.255,4096,10/06/11,khalij fars Ettela Resan Company J.S. 275 | 176.101.32.0,176.101.47.255,4096,03/11/11, 276 | 176.102.224.0,176.102.255.255,8192,29/11/11, 277 | 176.123.64.0,176.123.127.255,16384,27/07/12, 278 | 178.131.0.0,178.131.255.255,65536,17/03/10,Mobile Communication Company of Iran PLC 279 | 178.169.0.0,178.169.31.255,8192,26/03/10,Pars Online PJS 280 | 178.173.128.0,178.173.191.255,16384,19/04/10,Shiraz Hamyar Co. 281 | 178.173.192.0,178.173.223.255,8192,19/04/10,Shiraz Hamyar Co. 282 | 178.215.0.0,178.215.63.255,16384,28/06/10, 283 | 178.219.224.0,178.219.239.255,4096,28/06/10, 284 | 178.236.96.0,178.236.111.255,4096,02/06/10,Iran Telecommunication Company PJS 285 | 178.238.192.0,178.238.207.255,4096,26/07/10,Iran Telecommunication Company PJS 286 | 178.239.144.0,178.239.159.255,4096,31/08/10,Toloe Rayaneh Loghman Educational and Cultural Co. 287 | 178.252.128.0,178.252.191.255,16384,27/05/10,GOSTARESH-E-ERTEBATAT-E MABNA COMPANY (Private Joint Stock) 288 | 178.253.0.0,178.253.63.255,16384,01/06/10,Raya Sepehr Vira Data Processing Company Ltd. 289 | 188.75.64.0,188.75.127.255,16384,24/08/09,Tose'h Fanavari Ertebabat Pasargad Arian Co. PJS 290 | 188.118.64.0,188.118.127.255,16384,22/06/09,University of Tehran 291 | 188.121.96.0,188.121.127.255,8192,11/05/09,Noyan Abr Arvan Co. ( Private Joint Stock) 292 | 188.121.128.0,188.121.159.255,8192,11/05/09,Farabord Dadeh Haye Iranian Co. 293 | 188.122.96.0,188.122.127.255,8192,04/01/11,Mobile Communication Company of Iran PLC 294 | 188.136.144.0,188.136.159.255,4096,15/05/09,Tose'h Fanavari Ertebabat Pasargad Arian Co. PJS 295 | 188.136.160.0,188.136.191.255,8192,15/05/09,Tose'h Fanavari Ertebabat Pasargad Arian Co. PJS 296 | 188.136.192.0,188.136.223.255,8192,15/05/09,Tose'h Fanavari Ertebabat Pasargad Arian Co. PJS 297 | 188.158.0.0,188.158.255.255,65536,09/06/09,Parvaresh Dadeha Co. Private Joint Stock 298 | 188.159.0.0,188.159.127.255,32768,09/06/09,Parvaresh Dadeha Co. Private Joint Stock 299 | 188.159.128.0,188.159.191.255,16384,09/06/09,Parvaresh Dadeha Co. Private Joint Stock 300 | 188.159.192.0,188.159.223.255,8192,09/06/09,Parvaresh Dadeha Co. Private Joint Stock 301 | 188.208.64.0,188.208.95.255,8192,08/05/09,"Rightel Communication Service Company PJS" 302 | 188.208.144.0,188.208.159.255,4096,08/05/09,"Rightel Communication Service Company PJS" 303 | 188.208.160.0,188.208.191.255,8192,08/05/09,"Rightel Communication Service Company PJS" 304 | 188.208.224.0,188.208.255.255,8192,08/05/09,"Rightel Communication Service Company PJS" 305 | 188.209.16.0,188.209.31.255,4096,08/05/09,Iran Telecommunication Company PJS 306 | 188.209.32.0,188.209.47.255,4096,08/05/09,Iran Telecommunication Company PJS 307 | 188.209.64.0,188.209.79.255,4096,08/05/09,Iran Telecommunication Company PJS 308 | 188.209.128.0,188.209.143.255,4096,08/05/09,Ideh Pardazan Tarh Sepidar co.(LTD) 309 | 188.209.192.0,188.209.207.255,4096,08/05/09,Mobile Communication Company of Iran PLC 310 | 188.210.64.0,188.210.79.255,4096,08/05/09,Mobile Communication Company of Iran PLC 311 | 188.210.96.0,188.210.127.255,8192,08/05/09,Iran Telecommunication Company PJS 312 | 188.210.128.0,188.210.191.255,16384,08/05/09,Iran Telecommunication Company PJS 313 | 188.210.192.0,188.210.207.255,4096,08/05/09,Mobile Communication Company of Iran PLC 314 | 188.211.0.0,188.211.15.255,4096,08/05/09,Mobile Communication Company of Iran PLC 315 | 188.211.32.0,188.211.63.255,8192,08/05/09,Iran Telecommunication Company PJS 316 | 188.211.64.0,188.211.127.255,16384,08/05/09,Iran Telecommunication Company PJS 317 | 188.211.128.0,188.211.159.255,8192,08/05/09,Iran Telecommunication Company PJS 318 | 188.211.176.0,188.211.191.255,4096,08/05/09,Iran Telecommunication Company PJS 319 | 188.211.192.0,188.211.223.255,8192,08/05/09,Iran Telecommunication Company PJS 320 | 188.212.48.0,188.212.63.255,4096,08/05/09,Mobile Communication Company of Iran PLC 321 | 188.212.64.0,188.212.95.255,8192,08/05/09,Iran Telecommunication Company PJS 322 | 188.212.160.0,188.212.191.255,8192,08/05/09,Iran Telecommunication Company PJS 323 | 188.212.208.0,188.212.223.255,4096,08/05/09,Iran Telecommunication Company PJS 324 | 188.212.224.0,188.212.239.255,4096,08/05/09,Iran Telecommunication Company PJS 325 | 188.213.64.0,188.213.79.255,4096,08/05/09,Mobin Net Communication Company (Private Joint Stock) 326 | 188.213.96.0,188.213.127.255,8192,08/05/09,Iran Telecommunication Company PJS 327 | 188.213.144.0,188.213.159.255,4096,08/05/09,Iran Telecommunication Company PJS 328 | 188.213.176.0,188.213.191.255,4096,08/05/09,Iran Telecommunication Company PJS 329 | 188.214.160.0,188.214.191.255,8192,08/05/09,Iran Telecommunication Company PJS 330 | 188.215.128.0,188.215.143.255,4096,08/05/09,Iran Telecommunication Company PJS 331 | 188.215.160.0,188.215.191.255,8192,08/05/09,Iran Telecommunication Company PJS 332 | 188.215.192.0,188.215.223.255,8192,08/05/09,Iran Telecommunication Company PJS 333 | 188.229.0.0,188.229.127.255,32768,29/07/09,Mobile Communication Company of Iran PLC 334 | 188.253.32.0,188.253.63.255,8192,09/02/11,Pishgaman Toseeh Ertebatat Company (Private Joint Stock) 335 | 188.253.64.0,188.253.95.255,8192,09/02/11,Pishgaman Toseeh Ertebatat Company (Private Joint Stock) 336 | 192.15.0.0,192.15.255.255,65536,23/10/84,Mobile Communication Company of Iran PLC 337 | 193.151.128.0,193.151.159.255,8192,09/08/12,Asiatech Data Transmission company 338 | 194.225.0.0,194.225.255.255,65536,29/12/95,Institute for Research in Fundamental Sciences 339 | 195.146.32.0,195.146.63.255,8192,22/07/97,Information Technology Company (ITC) 340 | 195.181.0.0,195.181.31.255,8192,31/01/97,Iran Telecommunication Company PJS 341 | 195.181.32.0,195.181.63.255,8192,20/03/97,Iran Telecommunication Company PJS 342 | 195.181.64.0,195.181.127.255,16384,20/03/97,Iran Telecommunication Company PJS 343 | 204.18.0.0,204.18.255.255,65536,04/10/94,Mobile Communication Company of Iran PLC 344 | 212.16.64.0,212.16.95.255,8192,29/05/08,Farhang Azma Communications Company LTD 345 | 212.33.192.0,212.33.207.255,4096,15/07/08,Asiatech Data Transmission company 346 | 212.33.208.0,212.33.223.255,4096,15/07/08,Iran Telecommunication Company PJS 347 | 212.80.0.0,212.80.31.255,8192,27/05/09,Farhang Azma Communications Company LTD 348 | 212.86.64.0,212.86.95.255,8192,03/06/10,Homaye Jahan Nama Co. ( Private Joint Stock) 349 | 212.120.192.0,212.120.223.255,8192,27/05/08,Hamara System Tabriz Engineering Company 350 | 213.109.240.0,213.109.255.255,4096,08/10/09,Iran Telecommunication Company PJS 351 | 213.176.0.0,213.176.31.255,8192,08/10/99,Iranian Research Organization for Science & Technology 352 | 213.176.32.0,213.176.63.255,8192,25/07/00,Iranian Research Organization for Science & Technology 353 | 213.176.64.0,213.176.127.255,16384,01/02/00,Iranian Research Organization for Science & Technology 354 | 213.195.0.0,213.195.15.255,4096,21/04/09,Tose'h Fanavari Ertebabat Pasargad Arian Co. PJS 355 | 213.195.32.0,213.195.47.255,4096,21/04/09,"Rightel Communication Service Company PJS" 356 | 213.207.192.0,213.207.207.255,4096,07/11/02,Farabord Dadeh Haye Iranian Co. 357 | 213.207.208.0,213.207.223.255,4096,07/11/02,Datak Company LLC 358 | 213.207.224.0,213.207.255.255,8192,07/11/02,Datak Company LLC 359 | 213.217.32.0,213.217.63.255,8192,19/02/01,Pars Online PJS 360 | 213.233.160.0,213.233.191.255,8192,04/04/03,Sharif University Of Technology 361 | 217.11.16.0,217.11.31.255,4096,21/11/02,Afranet 362 | 217.24.144.0,217.24.159.255,4096,20/03/03,Iran Telecommunication Company PJS 363 | 217.25.48.0,217.25.63.255,4096,24/03/03,IRNA 364 | 217.60.0.0,217.60.255.255,65536,01/11/00,Aria Shatel Company Ltd 365 | 217.66.192.0,217.66.207.255,4096,06/11/00,Tose'h Fanavari Ertebabat Pasargad Arian Co. PJS 366 | 217.66.208.0,217.66.223.255,4096,02/02/01,Tose'h Fanavari Ertebabat Pasargad Arian Co. PJS 367 | 217.77.112.0,217.77.127.255,4096,10/12/02,Iran Telecommunication Company PJS 368 | 217.146.208.0,217.146.223.255,4096,26/04/04,Tose'h Fanavari Ertebabat Pasargad Arian Co. PJS 369 | 217.170.240.0,217.170.255.255,4096,01/09/10,Petiak System Co JSC 370 | 217.174.16.0,217.174.31.255,4096,26/03/04,National Iranian Oil Company 371 | 217.218.0.0,217.219.255.255,131072,03/04/01,Information Technology Company (ITC) 372 | 373 | -------------------------------------------------------------------------------- /payment.py: -------------------------------------------------------------------------------- 1 | import json 2 | import requests 3 | from random import randint 4 | from unidecode import unidecode 5 | from selectolax.parser import HTMLParser 6 | 7 | API_main_address = "http://hd.ladokpro.pw:5000/usd" 8 | 9 | user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36" 10 | headers_json = {"Content-Type": "application/json"} 11 | headers = {"user-agent": user_agent} 12 | 13 | 14 | base_plisio_url = "https://plisio.net/api/v1/" 15 | 16 | 17 | def check_valid_api_plisio(API): 18 | forced = "?api_key=" + API 19 | url = base_plisio_url + "operations" + forced 20 | try: 21 | r = requests.get(url, headers=headers_json) 22 | except Exception as e: 23 | return False, "Error: " + str(e) 24 | 25 | if r.status_code == 200: 26 | return True, "Good" 27 | elif r.status_code == 401 or r.status_code == 403: 28 | return False, "Error: API Authentication Error" 29 | else: 30 | return False, "Error: " + str(r.status_code) 31 | 32 | 33 | def new_invoice_plisio(API, amount): 34 | order = str(randint(12345, 95325)) 35 | url = f"{base_plisio_url}invoices/new?source_currency=USD&source_amount={amount}&order_number={order}&order_name=buy{order}&api_key={API}" 36 | try: 37 | r = requests.get(url, headers=headers_json) 38 | except Exception as e: 39 | return "Error: " + str(e), "", "", 0, False 40 | if r.status_code == 200: 41 | data = json.loads(r.text) 42 | if data['status'] == "success": 43 | data = data['data'] 44 | txn_id = data['txn_id'] 45 | invoice_url = data['invoice_url'] 46 | invoice_total_sum = data['invoice_total_sum'] 47 | return "Good", txn_id, invoice_url, invoice_total_sum, True 48 | else: 49 | return "Error: " + data['status'], "", "", 0, False 50 | else: 51 | return "Error: " + str(r.status_code), "", "", 0, False 52 | 53 | 54 | def check_status_invoice_plisio(API, txn_id): 55 | forced = "?api_key=" + API 56 | url = base_plisio_url + "operations/" + txn_id + forced 57 | try: 58 | r = requests.get(url, headers=headers_json) 59 | except Exception as e: 60 | return "Error: " + str(e), "", False 61 | if r.status_code == 200: 62 | data = json.loads(r.text) 63 | if data['status'] == "success": 64 | data = data['data'] 65 | return data['status'], data.get("tx_url", None), True 66 | else: 67 | return "Error: " + data['status'], "", False 68 | else: 69 | return "Error: " + str(r.status_code), "", False 70 | 71 | 72 | def check_valid_perfect_money(account_id, passphrase): 73 | URL = f'https://perfectmoney.com/acct/balance.asp?AccountID={account_id}&PassPhrase={passphrase}&' 74 | try: 75 | text = "" 76 | r = requests.get(URL) 77 | if r.status_code == 200: 78 | html = HTMLParser(r.text) 79 | for data in html.css('input'): 80 | if data.attributes.get("name", None) is not None: 81 | if "ERROR" == data.attributes['name']: 82 | return False, "Error: " + data.attributes['value'] 83 | else: 84 | text += f"{data.attributes['name']} | {data.attributes['value']}\n" 85 | return True, text 86 | else: 87 | return False, "Error: HTTP " + str(r.status_code) 88 | except Exception as e: 89 | return False, "Error: " + str(e) 90 | 91 | 92 | def get_U_perfect_money(account_id, passphrase): 93 | URL = f'https://perfectmoney.com/acct/balance.asp?AccountID={account_id}&PassPhrase={passphrase}&' 94 | try: 95 | r = requests.get(URL) 96 | if r.status_code == 200: 97 | html = HTMLParser(r.text) 98 | for data in html.css('input'): 99 | if data.attributes.get("name", None) is not None: 100 | if "ERROR" == data.attributes['name']: 101 | return False, "Error: " + data.attributes['value'] 102 | elif "U" == data.attributes['name'][0]: 103 | return True, data.attributes['name'] 104 | return False, "Error: not found API error" 105 | else: 106 | return False, "Error: HTTP " + str(r.status_code) 107 | except Exception as e: 108 | return False, "Error: " + str(e) 109 | 110 | 111 | def validate_perfect_money_voucher(account_id, passphrase, ev_number, ev_code): 112 | url = "https://perfectmoney.com/acct/ev_activate.asp" 113 | try: 114 | status, Payee_Account = get_U_perfect_money(account_id, passphrase) 115 | if status is True: 116 | data = { 117 | "AccountID": account_id, 118 | "PassPhrase": passphrase, 119 | "ev_number": ev_number, 120 | "ev_code": ev_code, 121 | "Payee_Account": Payee_Account 122 | } 123 | r = requests.post(url, data=data) 124 | html = HTMLParser(r.text) 125 | VOUCHER_NUM = None 126 | for data in html.css('input'): 127 | if data.attributes.get("name", None) is not None: 128 | if "ERROR" == data.attributes['name']: 129 | return False, "Error: " + data.attributes['value'], 0.0 130 | elif "VOUCHER_NUM" == data.attributes['name']: 131 | VOUCHER_NUM = data.attributes['value'] 132 | elif "VOUCHER_AMOUNT" == data.attributes['name']: 133 | VOUCHER_AMOUNT = float(data.attributes['value']) 134 | if VOUCHER_NUM is not None: 135 | return True, VOUCHER_NUM, VOUCHER_AMOUNT 136 | else: 137 | return False, "Error: not found", 0.0 138 | else: 139 | return False, Payee_Account, 0.0 140 | except Exception as e: 141 | return False, "Error: " + str(e), 0.0 142 | 143 | 144 | def check_valid_zarinpal(name): 145 | try: 146 | url = f"https://zarinp.al/api/v4/personalLink/{name}.json" 147 | r = requests.get(url, headers=headers) 148 | if r.status_code == 200: 149 | return True, "Good" 150 | else: 151 | return False, "Error: HTTP " + str(r.status_code) 152 | except Exception as e: 153 | return False, "Error: " + str(e) 154 | 155 | 156 | def check_valid_idpay(name): 157 | try: 158 | url = "https://idpay.ir/" + name 159 | r = requests.get(url, headers=headers) 160 | if r.status_code == 200: 161 | return True, "Good" 162 | else: 163 | return False, "Error: HTTP " + str(r.status_code) 164 | except Exception as e: 165 | return False, "Error: " + str(e) 166 | 167 | 168 | def API_0(): 169 | try: 170 | r = requests.get(API_main_address, headers=headers) 171 | if r.status_code == 200: 172 | price = int(json.loads(r.text)['usd']) 173 | if len(str(price)) >= 5: 174 | if price == 49000: 175 | return False, 0 176 | else: 177 | return True, price 178 | else: 179 | return False, 0 180 | else: 181 | return False, 0 182 | except: 183 | return False, 0 184 | 185 | 186 | def API_1(): 187 | try: 188 | headers = { 189 | 'Content-type': 'application/json', 190 | 'Accept': 'text/plain', 191 | "user-agent": user_agent 192 | } 193 | r = requests.get("https://www.tasnimnews.com/fa/currency/table", headers=headers) 194 | if r.status_code == 200: 195 | datas = json.loads(json.loads(r.text))['currency'] 196 | for data in datas: 197 | if data['title'] == "price_dollar_rl": 198 | price = int(float(data['p'].replace(",", ""))) 199 | if len(str(price)) >= 6: 200 | return True, price // 10 201 | else: 202 | return False, 0 203 | else: 204 | return False, 0 205 | except: 206 | return False, 0 207 | 208 | 209 | def API_2(): 210 | try: 211 | data = {'signal': 'getdata'} 212 | r = requests.post("https://irarz.com/Aj.php", headers=headers, data=data) 213 | if r.status_code == 200: 214 | datas = json.loads(r.text) 215 | for data in datas: 216 | if data.get("price_dollar_rl", None) is not None: 217 | price = int(float(unidecode(data['price_dollar_rl'].encode().decode().replace(",", "")))) 218 | if len(str(price)) >= 6: 219 | return True, price // 10 220 | else: 221 | return False, 1 222 | else: 223 | return False, r.status_code 224 | except: 225 | return False, 0 226 | 227 | 228 | def API_3(): 229 | try: 230 | r = requests.get("https://api.sarmayex.com/api/v2/currency/87", headers=headers) 231 | if r.status_code == 200: 232 | price = int(float(json.loads(r.text)['currency']['buy']['price'])) 233 | if len(str(price)) >= 5: 234 | return True, price 235 | else: 236 | return False, 0 237 | else: 238 | return False, 0 239 | except: 240 | return False, 0 241 | 242 | 243 | def API_4(): 244 | try: 245 | r = requests.get("https://api.bitpin.ir/v1/mkt/markets/", headers=headers) 246 | if r.status_code == 200: 247 | datas = json.loads(r.text)['results'] 248 | for data in datas: 249 | if data['title'] == "Tether/Toman": 250 | price = int(float(data['price'])) 251 | if len(str(price)) >= 5: 252 | return True, price 253 | else: 254 | return False, 0 255 | else: 256 | return False, 0 257 | except: 258 | return False, 0 259 | 260 | 261 | def API_5(): 262 | try: 263 | r = requests.get("https://api.pooleno.ir/v1/token/chartData/currentPrice/tether", headers=headers) 264 | if r.status_code == 200: 265 | price = json.loads(r.text)['priceRial'] 266 | if len(str(price)) >= 6: 267 | return True, price // 10 268 | else: 269 | return False, 0 270 | else: 271 | return False, 0 272 | except: 273 | return False, 0 274 | 275 | 276 | def API_6(): 277 | try: 278 | r = requests.get("https://abantether.com/management/all-coins/?format=json", headers=headers) 279 | if r.status_code == 200: 280 | datas = json.loads(r.text) 281 | for data in datas: 282 | if data['symbol'] == "USDT": 283 | price = int(float(data['priceBuy'])) 284 | if len(str(price)) >= 5: 285 | return True, price 286 | else: 287 | return False, 0 288 | else: 289 | return False, 0 290 | except: 291 | return False, 0 292 | 293 | 294 | def GET_USD(): 295 | status, value = API_0() 296 | if status is True: 297 | return True, value 298 | status, value = API_1() 299 | if status is True: 300 | return True, value 301 | status, value = API_2() 302 | if status is True: 303 | return True, value 304 | status, value = API_3() 305 | if status is True: 306 | return True, value 307 | status, value = API_4() 308 | if status is True: 309 | return True, value 310 | status, value = API_5() 311 | if status is True: 312 | return True, value 313 | status, value = API_6() 314 | if status is True: 315 | return True, value 316 | 317 | return False, 0 318 | -------------------------------------------------------------------------------- /run.py: -------------------------------------------------------------------------------- 1 | import os 2 | import re 3 | import json 4 | import sqlite3 5 | from termcolor import colored 6 | from random import randint 7 | from pathlib import Path 8 | 9 | 10 | if not os.path.exists('ssh'): 11 | os.makedirs('ssh') 12 | 13 | if not os.path.exists('backup'): 14 | os.makedirs('backup') 15 | 16 | if not os.path.exists('cache'): 17 | os.makedirs('cache') 18 | 19 | 20 | new_dict = {} 21 | file = "data.json" 22 | 23 | 24 | def db_update(): 25 | conn = sqlite3.connect('ssh.db', check_same_thread=False) 26 | cur = conn.cursor() 27 | cur.execute("SELECT * FROM Settings WHERE ID=:ID", {'ID': 1}) 28 | records = cur.fetchall() 29 | s = records[0][1] 30 | s = s.replace("\'", "\"") 31 | p = re.compile('(?