/*** 1 ****/ /*** 2 ****/ /*** 3 ****/ /*** 4 ****/ /*** 5 ****/ /*** 6 ****/ /*** 7 ****/ /*** giriş çıkış ikonu ****/ /*** giriş çıkış ikonu ****/ /**** 9 ****/ /**** 10 ****/ /**** 11 ****/ /**** 12 ****/ /**** 13 ****/ /***** 14 ****/ /**** 15 *****/ /***** 16 *****/ /**** 17 ****/ /**** 18 *****/ /**** 19 ****/ /***** 20 *****/ /***** 21 ****/ / ***** 22 ****** / / ***** 23 *****/ /**** 24 ****/ /**** 25 ****/ /**** 26 *****/ /**** 27 *****/ /**** 28 *****/ /**** 29 *****/ /**** 30 *****/ /**** 31 ****/ /**** 32 ****/ /**** 33 *****/ /*** 34 ***/ /*** 35 ***/ /**** 36 ***/ /**** 37 ****/ /*** 38 ****/ /*** 39 ****/ /***** 40 ****/ /***** 41 *****/ /*** 42 ****/ /**** 43 ****/ /**** 44 ****/ /**** 45 ***/
Webmaster Forum
HABERLER

Blog Haberler

PHP Veriyi Bota post Etme

  • Konu Sahibi Konu Sahibi elchapo47
  • Başlangıç tarihi Başlangıç tarihi
  • Cevap Cevap : 0
  • Görüntüleme Görüntüleme : 592
  • Etiketler Etiketler
    php script

elchapo47

3+ Yıl 🥉
Başlangıç
Mesajlar
1
Beğeni
0
Puan
0
Selamın aleyküm

Benim Şimdi Php lisanslama Scriptim var.

Bu scriptin lisanlama kodunu başka bir scripte eklediğimde lisansızzsa eğer bildiğiniz üzere Lisans hatası verdiriyor.Şimdi asıl konuya geleyim Bu bunu checke yaparken eğer lisansızsa Bot aracılığıyla göndermesini istiyorum.

Daha net anlamanız için lisans kodunu ve checker.php kodunu vereceğim

Lisanslama Kodu ;

<?php



/*



EL CHAPO



Bu kodu yazılımınızda her dosyaya dahil edilen, önemli bir dosyanın en başına yapıştırın.



*/



if (!extension_loaded('curl')){

die("Sistemin çalışması için sunucunuzda cURL yüklü olmalıdır.");

}

function get_custom_date($timezone = "UTC", $format = "d.m.Y, H:i:s") {

$dt = new DateTime("now", new DateTimeZone($timezone));

$dt->setTimestamp(time());

return $dt->format($format);

unset($timezone, $format, $dt);

}

$mylisans_timezone = "Europe/Istanbul";

function curlCall($strURL)

{

$ch = curl_init();

curl_setopt($ch, CURLOPT_HEADER, 0);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

curl_setopt($ch, CURLOPT_URL, $strURL);

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);

$rsData = curl_exec($ch);

curl_close($ch);

return $rsData;

}

$domain = ltrim($_SERVER["HTTP_HOST"],"www.");

$json = json_decode(curlCall('https://elchapo47.ml/api/checker.php?domain=' . $domain . '&ip=' . $_SERVER["REMOTE_ADDR"] . ''));



if (!file_exists(__DIR__ . "/lisans.lis"))

touch(__DIR__ . "/lisans.lis");

$scriptFolder = (isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on')) ? 'https://' : 'http://';

$scriptFolder .= $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']);

$gecerli_yerel_hash = curlCall($scriptFolder . "/lisans.lis");

$hash_guvenlik_anahtari = "761f279b7c62be9e0a0d314714e886fd";

$yerel_hash = wordwrap(strtoupper(sha1(get_custom_date($mylisans_timezone, "Ymd") . $hash_guvenlik_anahtari)), 8, "-", true);

unset($hash_guvenlik_anahtari);

if ($gecerli_yerel_hash !== $yerel_hash) {



//KONTROL

if ($json->lisans == "error") {

if ($json->trial == "false") {

die(curlCall('https://elchapo47.ml/api/hatamsj/lisanssizkullanim.html'));

}

} else {

if ($json->ban) {

die(curlCall('https://elchapo47.ml/api/hatamsj/yasakli.html'));

} else {

if ($json->bitis != "UL") {

if ($json->bitis == "BAD") {

die(curlCall('https://elchapo47.ml/api/hatamsj/suredoldu.html'));

}

}

}

}



}

unset($json);

$lisans_aktiflik_durumu = true;

if ($lisans_aktiflik_durumu === false) {

file_put_contents(__DIR__ . "/lisans.lis", $yerel_hash);

}

unset($lisans_aktiflik_durumu);

unset($yerel_hash);

unset($hash_guvenlik_anahtari);

unset($gecerli_yerel_hash);

?>



BUDA checker.php DOSYASI

<?php

date_default_timezone_set("Europe/Istanbul");

header('Content-type: application/json');

include "../baglanti.php";

$domain = strip_tags($_GET['domain']);

$ip = strip_tags($_GET["ip"]);



$bugun = mktime(0, 0, 0, date("Y"), date("m"), date("d"));



if (empty($domain)) {

die("Geçersiz istek.");

}



$lidatasor=$db->prepare("SELECT * FROM lisanslar WHERE domain=:domain");

$lidatasor->execute(array('domain' => $domain));

$lidatacek=$lidatasor->fetch(PDO::FETCH_ASSOC);



if (!empty($lidatacek['lidata'])) {

$veri = json_decode($lidatacek['lidata']);

}



if (!empty($lidatacek['lidata'])) {

$bitisarray = explode("-", $veri->bitis);

$libitis = mktime(0, 0, 0, $bitisarray[0], $bitisarray[1], $bitisarray[2]);



if (empty($libitis)) {

$bstat = "UL";

}else{

if ($libitis >= $bugun) {

$bstat = "OK";

}else{

$bstat = "BAD";

}

}

echo json_encode(["bitis" => "$bstat", "ban" => $veri->ban, "adsoyad" => "$veri->adsoyad"]);



}else{

$ayar = $db->prepare("SELECT * FROM ayar");

$ayar->execute();

$ayarcek = $ayar->fetch();



if (!empty($ayarcek['trialtime'])) {



$tkayit = $db->prepare("SELECT count(*) FROM trials WHERE domain=:domain");

$tkayit->execute(array('domain' => $domain, ));

$tsay = $tkayit->fetchColumn();



if ($tsay == 0) {



$trialbaslangic = mktime(0, 0, 0, date("Y") , date("m"), date("d"));

$trialbitis = mktime(0, 0, 0, date("Y") , date("m"), date("d")+$ayarcek['trialtime']);



$tinsert = $db->prepare("INSERT INTO trials (domain, trialbaslangic, trialbitis) VALUES (?, ?,?)");

$tinsert->execute(array($domain,$trialbaslangic,$trialbitis));

$tdurum = "true";

}else{

$tsure = $db->prepare("SELECT * FROM trials WHERE domain=:domain");

$tsure->execute(array('domain' => $domain, ));

$tsurecek = $tsure->fetch();

$tbitis = $tsurecek['trialbitis'];

if ($bugun > $tbitis) {

$tdurum = "false";

}else{

$tdurum = "true";

}

}

echo json_encode(["lisans" => "error","trial" => $tdurum]);

}else{

$ikayit = $db->prepare("SELECT count(*) FROM ihbarlar WHERE ihbaralanadi=:durum");

$ikayit->execute(array('durum' => $domain, ));

$isay = $ikayit->fetchColumn();

if ($isay == 0) {

$iinsert = $db->prepare("INSERT INTO ihbarlar (ihbaralanadi, sebep, ilkip) VALUES (?, ?, ?)");

$isebep = "Lisanssız kullanım";

$iinsert->execute(array($domain,$isebep,$ip));

}

echo json_encode(["lisans" => "error","trial" => "false"]);

}

}

?>




Şimdiden teşekkür ederim
 
Geri
Üst
Forum Blog Dizin Giriş Yap