• 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"

SaleBot - WhatsApp And Telegram Marketing SaaS - ChatBot & Bulk Sender

SaleBot - WhatsApp And Telegram Marketing SaaS - ChatBot & Bulk Sender v1.0

No permission to download
PHP:
<?php

use Carbon\Carbon;
use App\Models\Country;
use App\Models\EmailTemplate;
use App\Utility\AppSettingUtility;
use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\File;
use Illuminate\Support\Facades\Http;
use GeoSot\EnvEditor\Facades\EnvEditor;
use Illuminate\Support\Facades\Request;
use Illuminate\Support\Facades\Storage;
use PHPOpenSourceSaver\JWTAuth\Facades\JWTAuth;

if (!function_exists('curlRequest')) {
    function curlRequest($url, $fields, $method = 'POST', $headers = [], $is_array = false)
    {
        $client   = new \GuzzleHttp\Client(['verify' => false]);

        if (is_string($fields)) {
            $data = [
                'body'    => $fields,
                'headers' => $headers,
            ];
        } else {
            $data = [
                'form_params' => $fields,
                'headers'     => $headers,
            ];
        }

        $response = $client->request($method, $url, $data);

        $result   = $response->getBody()->getContents();

        return json_decode($result, $is_array);
    }
}
if (!function_exists('httpRequest')) {
    function httpRequest($url, $fields, $headers = [], $is_form = false, $method = 'POST')
    {
        if ($is_form) {
            $response = Http::withHeaders($headers)->asForm()->$method($url, $fields);
        } else {
            $response = Http::withHeaders($headers)->$method($url, $fields);
        }

        return $response->json();
    }
}
if (!function_exists('validate_purchase')) {
    function validate_purchase($code, $data)
    {
        $script_url    = str_replace('install/process', '', (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 'https' : 'http') . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]");

        $fields        = [
            'item_id'           => '51330626',
            'activation_code'   => urlencode($code),
            'current_version'   => setting('current_version'),
        ];
        $response      = false;

        if (config('app.dev_mode')) {
            $url = 'https://license.spagreen.net/version-check-including-beta';
        } else {
            $url = 'https://license.spagreen.net/version-check';
        }

        $request       = curlRequest($url, $fields);
        if (property_exists($request, 'status') && $request->status) {
            $response = $request->release_info;
        }

        if (is_bool($response)) {
            $latest_version = isAppMode() ? '116' : '167';
        } else {
            $latest_version = $response->version;
        }

        $fields        = [
            'domain'            => urlencode($_SERVER['SERVER_NAME']),
            'version'           => $latest_version,
            'item_id'           => '51330626',
            'url'               => urlencode($script_url),
            'activation_code'   => urlencode($code),
            'is_beta'           => 1,
        ];

        $curl_response = curlRequest('https://license.spagreen.net/verify-installation-v3', $fields);

        if (property_exists($curl_response, 'status') && $curl_response->status) {
            envWrite('DB_HOST', $data['DB_HOST']);
            envWrite('DB_DATABASE', $data['DB_DATABASE']);
            envWrite('DB_USERNAME', $data['DB_USERNAME']);
            envWrite('DB_PASSWORD', $data['DB_PASSWORD']);
            sleep(3);

            $zip_file = $curl_response->release_zip_link;

            if ($zip_file) {
                try {
                    $file_path = base_path('public/install/installer.zip');
                    file_put_contents($file_path, file_get_contents($zip_file));
                } catch (Exception $e) {
                    return 'Zip file cannot be Imported. Please check your server permission or Contact with Script Author.';
                }
            }

            return 'success';
        } else {
            return $curl_response->message;
        }
    }
}
if (!function_exists('hasPermission')) {

    function hasPermission($key_word)
    {
        if (in_array($key_word, auth()->user()->permissions ?? []) || auth()->user()->role_id == 1) {
            return true;
        }

        return false;
    }
}
if (!function_exists('isDemoMode')) {

    function isDemoMode(): bool
    {
        return config('app.demo_mode');
    }
}
if (!function_exists('isInstalled')) {

    function isInstalled(): bool
    {
        return config('app.app_installed');
    }
}
if (!function_exists('is_file_exists')) {
    function is_file_exists($item, $storage = 'local')
    {
        if (!blank($item) && !blank($storage)) {
            if ($storage == 'local') {
                if (file_exists(base_path('public/' . $item))) {
                    return true;
                }
            } elseif ($storage == 'aws_s3') {
                if (Storage::disk('s3')->exists($item)) {
                    return true;
                }
            } elseif ($storage == 'wasabi') {
                if (Storage::disk('wasabi')->exists($item)) {
                    return true;
                }
            }
        }

        return false;
    }
}


Take a look has a zip file from the server, after verify license code for install, only with a valid license can take a zip file for install, simple. Sorry i dont have license key to do this and put here nulled
 
the archive Helper.php inside app/Helpers folder has a verify to server and get info to make a zip archive called installer.zip and after this can install, only with a valid license key can get the installer.zip and install in another server... tks
 
  • Like
Reactions: grimvik90
El archivo Helper.php dentro de la carpeta app/Helpers tiene una verificación en el servidor y obtiene información para crear un archivo zip llamado installer.zip y después de esto se puede instalar, solo con una clave de licencia válida se puede obtener installer.zip e instalarlo en otro servidor. ...gracias
Thanks presidents, can you recommend a script similar to this one here?
 
Plz update to latest version

07 April 2024 V1.3

- Added:
- Failed message resend option added to campaign.
- Improvement:
- Meaasge broadcast improved

- Fixed:
- Website lang issue fixed(auto EN add).
- Website unique image fixed.
- Fixes a few known bugs.
 
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