Skip to main content

Né Bug Nhẹ

Project description

PyPi Package Version Supported Python versions Documentation Status PyPi downloads PyPi status

huynhminhkhoi

Thư Viện Giúp Bạn Né Bug Nhẹ Hãy Cùng Khám Phá Thư Viện Để Sử Dụng Nhé!

Nội Dung

Cài Đặt Thư Viện

Thư viện này đã được thử nghiệm với Python 3.11. Cách cài đặt thư viện:

$ pip install huynhminhkhoi

Các Hàm Cơ Bản

Lớp huynhminhkhoi (được định nghĩa trong _init_.py) gói gọn 2 lệnh gọi API. Nó cung cấp các chức năng như get_keycheck_key

Get Key

Tạo 1 Tệp Có Tên Bất Kì Ví Dụ khoidz.py. Sau đó, mở tệp và tham khảo đoạn code dưới đây:

Kết nối client:

import huynhminhkhoi
import requests
ip_get = requests.get('http://ip-api.com/json/').json()['query']
list_token_link = ["your_token", "https://huynhminhkhoidev.x10.mx/key.html?keyhomnay="]
client = huynhminhkhoi.Api.client("name_key", list_obj = list_token_link)

Get link key với dữ liệu dict:

get_key = client.get_key(ip = ip_get)
print(get_key)

Note: name_key sẽ là tên key của bạn, list_token_link sẽ là danh sách lần lượt chứa token link1s và web chứa key của bạn.

Check Key

Để kiểm tra key đúng hay sai. Bạn có thể sử dụng đoạn code mẫu dưới đây:

Giữ nguyên client:

import huynhminhkhoi
list_token_link = ["your_token", "https://huynhminhkhoidev.x10.mx/key.html?keyhomnay="]
client = huynhminhkhoi.Api.client("name_key", list_obj = list_token_link)

Check key với dữ liệu dict:

ip_get = requests.get('http://ip-api.com/json/').json()['query']
check = client.check_key(ip = ip_get, key = "Your_Key")
print(check)

Code Demo

Nếu bạn cảm thấy khó khăn trong khi tham khảo các đoạn code trên. Tôi có 1 đoạn code mẫu để các bạn thuận tiện sử dụng hơn:

import os
try:
    import huynhminhkhoi, requests, datetime
except:
    os.system('pip install huynhminhkhoi')
    os.system('pip install requests')

ip_ = requests.get('http://ip-api.com/json/').json()
ip_get = ip_['query']
list_ = ['Your_Token', 'https://huynhminhkhoidev.x10.mx/key.html?keyhomnay=']
client = huynhminhkhoi.Api.client(name = 'KhoiHuynh1109', list_obj = list_)
while True:
    if not os.path.exists('key.txt'):
        print(f'Ip Của Bạn Là: {ip_get}')
        get_key = client.get_key(ip = ip_get)
        if get_key['status'] == 'error':
            quit(get_key['message'])
        print("Hello My World. I love you")
        print(f"Link Key Ngày Của Bạn Là: {get_key['url']}")
        password = input("Nhập Key Hôm Nay Để Sử Dụng: ")
        check_key = client.check_key(ip = ip_get, key = password)
        if check_key['status'] == 'success' and check_key['types'] == '1day':
            data = {
            'key': password,
            'types': '1day',
            'time_use': datetime.datetime.now(),
            'date': datetime.timedelta(days = 1)
            }
            open('key.txt', 'w').write(str(data))
        else:
            open('key.txt', 'w').write(str(check_key))
    with open('key.txt', 'r') as f:
        try:
            js = eval(f.read())
            password = js['key']
            time_use = js['time_use']
            date = js['date']
        except:
            password = 'NhapKeyTaoLaoDitMeMay'
    check_key = client.check_key(ip = ip_get, key = password)
    if check_key['status'] == 'success':
        if js['types'] == '1day':
            now = datetime.datetime.now()
            if now - time_use <= date:
                hsd = str(date - (now - time_use)).split('.')[0]
                print(f"Key Success | Loại Key: Free 1 Ngày | Sử Dụng Lúc: {time_use.strftime('%d/%m/%Y - %H:%M:%S')} | Hạn Sử Dụng: {hsd}")
                break
            else:
                print("Key Hết Hạn!")
                os.remove('key.txt')
                continue
        else:
            key_types = js['types'].replace('3day', '3 Ngày').replace('7day', '7 Ngày').replace('1month', '1 Tháng')
            print(f"Key Success | Loại Key: Key {key_types} | Sử Dụng Lúc: {time_use} | Hạn Sử Dụng: {check_key['date']}")
            break
    else:
        print("Sai Key Rồi Em")
        os.remove('key.txt')
        continue

#Tiến Trình Sẽ Chạy Bên Dưới

Lưu ý rằng nếu bạn code tool gộp dạng exec(). Hãy đặt check key ở sever đảm bảo né bug 1 chút

Bạn có thể tham khảo đoạn code này:

import huynhminhkhoi, sys, os, requests
if not os.path.exists('key.txt'):
    print("Bug Cái Gì Vậy Chú")
    os.remove(sys.argv[0])
    quit()
try:
    read = eval(open('key.txt', 'r').read())
except:
    print("Bug Cái Gì Vậy Chú")
    os.remove(sys.argv[0])
    quit()
ip_ = requests.get('http://ip-api.com/json/').json()
ip_get = ip_['query']
client = huynhminhkhoi.Api.client(name = 'KhoiHuynh1109', list_obj = [])
check = client.check_key(ip = ip_get, key = read['key'])
if check['status'] == 'error':
    print("Bug Cái Gì Vậy Chú")
    os.remove(sys.argv[0])
    quit()
# Nếu Đúng Key Sẽ Chạy Tiến Trình

Với việc sử dụng os.remove ở trên sẽ không ảnh hưởng đến các file khác mà chỉ xoá chính file kẻ bug run lên ví dụ python khoidz.py thì khi đó nó sẽ xoá khoidz.py

list_obj phía trên không hề có đối tượng tokenlong_url. Bởi vì chỉ gọi hàm check_key() nên nó sẽ không xuất hiện lỗi.

Lưu ý rằng đây là code đặt ở các file sever giảm thiểu việc crack bằng cách bug ra sever.

Các Hàm Dành Cho Admin

Hàm dành cho admin là gì? Nó là các hàm giúp admin add các key vip như 3 ngày, 7 ngày hay 1 tháng

Để sử dụng được hàm này ta cần key admin do Huỳnh Minh Khôi cấp cho. Bạn có thể liên hệ Facebook của Khôi để lấy key admin

Add Key

Kết nối client:

from huynhminhkhoi import Admin
client = Admin.client(admin = "Key_Admin")

Hàm add_key:

add = client.add_key(key = "Name_Key")

Với Key_Admin là key admin được Huỳnh Minh Khôi đưa cho bạn và Name_Key là tên key mà bạn muốn

Remove Key

Để xoá key người dùng hay bạn add nhầm key, bạn có thể sử dụng hàm remove để xoá nó.

Giữ nguyên client:

from huynhminhkhoi import Admin
client = Admin.client(admin = "Key_Admin")

Hàm Remove:

rmv = client.remove(key = "Name_Key")

Contact

Liên hệ Facebook để được support hoặc báo lỗi cho tôi fix nhé. Cảm ơn!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

huynhminhkhoi-0.5.0.tar.gz (9.0 kB view hashes)

Uploaded Source

Built Distribution

huynhminhkhoi-0.5.0-py3-none-any.whl (9.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page