• You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.

    Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"

LicenseBox - PHP License and Updates Manager By CodeMonks

LicenseBox - PHP License and Updates Manager By CodeMonks 1.6.4

No permission to download
to check license key I created below codes regarding author documentation , it will use licensebox api as internal but with nulled version we dont have original api key and product id so If I enter any value in these areas ,code will work ?
Code:
import requests
import json

# LicenseBox API anahtarı ve ürün ID'si
licensebox_api_key = "YOUR_LICENSEBOX_API_KEY"
licensebox_product_id = "YOUR_LICENSEBOX_PRODUCT_ID"
license_key = "USER_LICENSE_KEY"  # Kullanıcının lisans anahtarı

# Kullanıcının lisansını kontrol eden fonksiyon
def check_license():
    # LicenseBox API'nin istek URL'si (A.com üzerinde LicenseBox kurulu olduğunu varsayalım)
    url = "https://A.com/api/licenses/verify"
   
    # API isteği için gereken header bilgileri
    headers = {
        "Authorization": f"Bearer {licensebox_api_key}",
        "Content-Type": "application/json"
    }

    # API isteği için gerekli verilerin oluşturulması
    data = json.dumps({"key": license_key, "product_id": licensebox_product_id})

    # LicenseBox API'sine istek yapılıyor
    response = requests.post(url, headers=headers, data=data)
   
    # API yanıtı işleniyor
    result = response.json()
   
    # Lisans durumunu kontrol et
    if result.get("status") == "active":
        return True  # Lisans geçerli
    else:
        return False  # Lisans geçersiz veya hata

# Lisansı kontrol edin
if check_license():
    print("Lisans doğrulandı. Uygulamayı kullanabilirsiniz.")
else:
    print("Lisans doğrulanamadı. Uygulamayı kullanamazsınız.")
 
Last edited:
to check license key I created below codes regarding author documentation , it will use licensebox api as internal but with nulled version we dont have original api key and product id so If I enter any value in these areas ,code will work ?
Code:
import requests
import json

# LicenseBox API anahtarı ve ürün ID'si
licensebox_api_key = "YOUR_LICENSEBOX_API_KEY"
licensebox_product_id = "YOUR_LICENSEBOX_PRODUCT_ID"
license_key = "USER_LICENSE_KEY"  # Kullanıcının lisans anahtarı

# Kullanıcının lisansını kontrol eden fonksiyon
def check_license():
    # LicenseBox API'nin istek URL'si (A.com üzerinde LicenseBox kurulu olduğunu varsayalım)
    url = "https://A.com/api/licenses/verify"
 
    # API isteği için gereken header bilgileri
    headers = {
        "Authorization": f"Bearer {licensebox_api_key}",
        "Content-Type": "application/json"
    }

    # API isteği için gerekli verilerin oluşturulması
    data = json.dumps({"key": license_key, "product_id": licensebox_product_id})

    # LicenseBox API'sine istek yapılıyor
    response = requests.post(url, headers=headers, data=data)
 
    # API yanıtı işleniyor
    result = response.json()
 
    # Lisans durumunu kontrol et
    if result.get("status") == "active":
        return True  # Lisans geçerli
    else:
        return False  # Lisans geçersiz veya hata

# Lisansı kontrol edin
if check_license():
    print("Lisans doğrulandı. Uygulamayı kullanabilirsiniz.")
else:
    print("Lisans doğrulanamadı. Uygulamayı kullanamazsınız.")
It will work with your own credentials :

licensebox_api_key = "YOUR_LICENSEBOX_API_KEY"
licensebox_product_id = "YOUR_LICENSEBOX_PRODUCT_ID"

First: install the nulled version in one of your sub-domain. Then create your product and api key,

Second: thereafter create a fresh copy and go to :

application\core\core_init.php.

then fill these in line 49,50 and 51 which you have generated in first step.

$this->product_id = "your produt id";
$this->api_url = "your api url";
$this->api_key = "your api key";



It's like activating licensebox api from your own licensebox.

Third: now you save it and install it on any website and activate it with your own license key. Now you are the owner of this script and even sell it and activate it and monitor it..

Good Luck...!!!
 
It will work with your own credentials :

licensebox_api_key = "YOUR_LICENSEBOX_API_KEY"
licensebox_product_id = "YOUR_LICENSEBOX_PRODUCT_ID"

First: install the nulled version in one of your sub-domain. Then create your product and api key,

Second: thereafter create a fresh copy and go to :

application\core\core_init.php.

then fill these in line 49,50 and 51 which you have generated in first step.

$this->product_id = "your produt id";
$this->api_url = "your api url";
$this->api_key = "your api key";



It's like activating licensebox api from your own licensebox.

Third: now you save it and install it on any website and activate it with your own license key. Now you are the owner of this script and even sell it and activate it and monitor it..

Good Luck...!!!
Can you guide with pictures? Thanks!
 
lets try to do it together ;

first I went to api settings

1713607691301.png


I have selected related settings and click add api button ( I have chosen external client , software will connect to api and check license ,I think correct selection but we will see . )

1713607802106.png


Our Product is like below ,so we will take Product ID form this page;

1713608150182.png

Now we will open application\core\core_init.php.

and change line 49 , 50 and 51 ,

1713608328055.png


in the software I added below codes ;

# LicenseBox API anahtarı ve ürün ID'si
licensebox_api_key = "AF37FE893A4*****"
licensebox_product_id = "24*****"

def check_license(license_key):
url = "https://abc.com/license/verify"
headers = {
"Authorization": f"Bearer {licensebox_api_key}",
"Content-Type": "application/json"
}
data = json.dumps({"key": license_key, "product_id": licensebox_product_id})
response = requests.post(url, headers=headers, data=data)
print("API request sent.")
print("API answer:", response.text)
try:
result = response.json()
print("JSON rendered as :", result)

if result.get("status") == "active":
return True
else:
return False
except json.JSONDecodeError as e:
print("Error:", e)
return False

# Lisans anahtarı girişi için buton
open_license_button = ttk.Button(root, text="Lisans Anahtarı Girişi", command=open_license_window)
open_license_button.grid(row=0, column=0, padx=5, pady=5)

# Sonuç etiketi
result_label = ttk.Label(root, text="")
result_label.grid(row=1, column=0, padx=5, pady=5)




and after user clicking check licanse button I got below message ;

1713610542440.png
1713610955396.png
 
Last edited:
I have changed url and I got below message ;

url = "https://abc.com/license/api/verify_license"

API isteği gönderildi.
API yanıtı: {"status":false,"message":"Provided API key is invalid."}
JSON olarak işlenen API yanıtı: {'status': False, 'message': 'Provided API key is invalid.'}


I can see api calls in the dashbord so somehow I will solve this

1713613389191.png
 
I have done it , now it works

API yanıtı: {"status":true,"message":"Activated! Thanks for purchasing king of commentator.","data":null,"lic_response":"f48d5d4f802c75b114acc218ebe99dd5f25ce0d6cdc9f3d26a7d7a5a43d0b4ec3f1e2ecf2ed7c00e79bc178ee5716701f518176cae18dc3b1f88f16b8f3c507cTU16DDPH5PtZ4g\/wGS1CYshr\/IOjTV3eN+lgrw6jBdLkNFCTIKWVmMUc35sC7t7leqK7C1JcJw0hsN1+9Uh6tPUzuaVMDHTSt+vGkvLUi58="}
JSON olarak işlenen API yanıtı: {'status': True, 'message': 'Activated! Thanks for purchasing king of commentator.', 'data': None, 'lic_response':

I will collect steps and share .
 
I have integrated licensebox api but still I couldnt find a way to add envato api . May be it works but envato doesnt have any sandbox and I couldnt decide my codes work . So If you have tşme and give your opinion is important for my below codes.

Python:
def check_license(license_key, status_label):
    if not license_key:
        show_license_entry_warning()
        return

    envato_personal_token = "cFAKETOKENabcREPLACEME*******"  # Envato kişisel erişim belirtecinizi buraya ekleyin
    licensebox_product_id = "2******"  # Licensebox ürün kimliğinizi buraya ekleyin

    # Envato API'sini kullanarak lisansı doğrulama
    envato_verification_result = verify_with_envato(license_key, envato_personal_token)

    # Licensebox API'sini kullanarak lisansı doğrulama
    licensebox_verification_result = verify_with_licensebox(license_key, licensebox_product_id)

    # Her iki doğrulama sonucunu da değerlendirme
    if envato_verification_result.get("status") or licensebox_verification_result.get("status"):
        status_label.config(text="License successful! Thank you.")
    else:
        envato_message = envato_verification_result.get("message", "")
        licensebox_message = licensebox_verification_result.get("message", "")
        combined_message = "Envato: {}\nLicense Control: {}".format(envato_message, licensebox_message)

        status_label.config(text=combined_message)
        messagebox.showwarning("Invalid License", "The license key is invalid. The program will now close.")






def verify_with_envato(license_key, envato_personal_token):
    url = "https://****/v3/market/author/sale?code="
    headers = {
        "Authorization": f"Bearer {envato_personal_token}"
    }
    params = {
        "code": license_key
    }
    response = requests.get(url, headers=headers, params=params)
    print(response.text)  # Yanıtın metnini yazdır
    result = response.json()
    print("Envato API Response:", result)  # API'den gelen cevabı yazdırma
    return result

def verify_with_licensebox(license_key, licensebox_product_id):
    url = "https://****.com/license/api/activate_license"
    headers = {
        "LB-API-KEY": "****4DA****",  # Licensebox API anahtarınızı buraya ekleyin
        "LB-URL": "https://*****.com",
        "LB-IP": "127.0.0.1",
        "LB-LANG": "english",
        "Content-Type": "application/json",
    }
    data = {
        "verify_type": "envato",
        "product_id": licensebox_product_id,
        "license_code": license_key,
    }
    response = requests.post(url, headers=headers, json=data)
    result = response.json()
    print("Licensebox API Response:", result)  # API'den gelen cevabı yazdırma
    return result
 
AdBlock Detected

We get it, advertisements are annoying!

However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.

If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.

I've Disabled AdBlock