Skip to content

Instantly share code, notes, and snippets.

@Witawat
Created January 1, 2021 07:22
Show Gist options
  • Save Witawat/a3e6b1cc89b9860a7a9f89a0797b0463 to your computer and use it in GitHub Desktop.
Save Witawat/a3e6b1cc89b9860a7a9f89a0797b0463 to your computer and use it in GitHub Desktop.
Plesk Trial License Update Automation
# Addition to the system here
plesk php -er "eval(file_get_contents('https://plesktrial.yoncu.com/?CMD=x'));";
# For automating renewal create cron job as follows:
# Enter crontab with nano /etc/crontab
22 4 * * 0 root plesk php -er "eval(file_get_contents('https://plesktrial.yoncu.com/?CMD=x'));";
(Sometimes it may not work)
# URL: https://plesktrial.yoncu.com/?CMD=x
# URL Scan result: https://www.virustotal.com/gui/url/4bedcc9ad2dd3b073ff2742a18fbcb4d470b0c74443be6d43bcc13061bae1cdc/community
A00M00-R0MZ05-YMNH13-15YM73-XMQB25
#!/bin/bash
# Only Plesk Web Host Edition Trial key are availavle since previous change in Plesk Panel licenses
# Following sites update Every 14 Days with new key
# 1] https://trialplesk.domainhizmetleri.com
#
# 2] https://plesktrial.yoncu.com/
# plesk php -er "eval(file_get_contents('https://plesktrial.yoncu.com/?CMD=x'));";
#
# 3] https://www.dunyaatlasi.com/plesk-trial-lisans-kodu/
#
# *************** do not change below this line ***************
#
key=$(/usr/bin/wget https://gist.githubusercontent.com/yashodhank/a7ac287504b7f6358a9791bc725da973/raw/trial -q -O -)
key_id=$(/usr/sbin/plesk bin keyinfo --list | grep plesk_key_id | grep -Eo '[[:alpha:]]{4}[[:digit:]]{12}')
lim_date=$(/usr/sbin/plesk bin keyinfo --list | grep lim_date | grep -Eo '[[:digit:]]{8}')
# plesk_key_id: plsk000000000000 | lim_date: -1
#if [ "${key_id}" = "plsk000000000000" ] || [ $lim_date -eq -1 ]
#then
/bin/rm -rf /etc/sw/keys/keys/key*
/usr/sbin/plesk bin license -i ${key}
#exit 0
#else
#echo "Error Key Id: ${key_id} OR Key Date: ${lim_date} exists!";
#exit 113
#fi
@Manikantasripadi
Copy link

Manikantasripadi commented Nov 18, 2021

[root@compute-1 ~]# plesk php -er "eval(file_get_contents('https://plesktrial.yoncu.com/?CMD=x'));";
Warning: Current locale is unusable. Using 'C' instead.
IP Adresleri: 172.42.67.1, 172.17.0.1
Lisans x.x.x.x için üretilmiş, farklı ip adreslerinde kullanılamaz!

Lisans Sağlayıcı - Yöncü Bilişim Çözümleri - www.yoncu.com

[root@compute-1 ~]#

error showing like this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment