php sürümüm : 5.3.3
1.php
ob_start();
set_time_limit(0);
error_reporting(0);
echo '';
if($_POST){
$1 = htmlspecialchars($_POST['1']);
$2 = explode("\n",$_POST['2']);
foreach($2 as $yeni2){
$trim=trim($yeni2);
$trim = htmlspecialchars($trim);
$exec = trim(file_get_contents("2.php?site=$1&domain=$trim"));
if(!$exec==""){
$hata01 = 'site Adi veya Site Adresi Bos Olmamali.';
$hata02 = 'Kaynak Okunamadi.';
$hata03 = 'Bu kaydi Bu site daha onceden almis.';
$hata04 = 'Kayit basarili';
$hata05 = 'Kayit Basarisiz.';
$hata06 = 'Sunucuda Problem Var.';
$hata07 = 'icerikte index Bulunamadi..';
if($exec=="01"){
echo ''.$trim.' - '.$hata01.'
';
}elseif($exec=="02"){
echo ''.$trim.' - '.$hata02.'
';
}elseif($exec=="03"){
echo ''.$trim.' - '.$hata03.'
';
}elseif($exec=="04"){
echo ''.$trim.' - '.$hata04.'
';
}elseif($exec=="05"){
echo ''.$trim.' - '.$hata05.'
';
}elseif($exec=="06"){
echo ''.$trim.' - '.$hata06.'
';
}elseif($exec=="07"){
echo ''.$trim.' - '.$hata07.'
';
}else{
echo 'harbi hata';
}
ob_flush();
flush();
}
}
}
?>
2.php
session_start();
$_SESSION['ddos_sessionu'] = 1;
$sitezz = strip_tags(addslashes(trim($_REQUEST['sitezz'])));
$domain = strip_tags(trim($_REQUEST['domain']));
if($sitezz=="asd"){
echo 'bu kisinin bu siteden kayit almasi yasaklanmistir.';
exit();
}
//$domain = urldecode($domain);
if($sitezz==""||$domain==""){
$halt = '01';
}else{
$gonder = curl_init();
curl_setopt($gonder, CURLOPT_URL, $domain);
curl_setopt($gonder, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($gonder, CURLOPT_REFERER, $domain);
curl_setopt ($gonder, CURLOPT_USERAGENT, "Mozilla 2003, that coolish version");
$data = curl_exec ($gonder);
curl_close ($gonder);
if($data==""){
$halt = '02';
}else{
$veri = array('sdasd','sadas','sadasd','asdasd','asdasdas','sadasd','asdasd','dsasdas','asdasd','sadasd','asdasd','sadasd','owadasdsadned','asdasd','sitezz','sitezz',$cikti['sitezz']);
$metin = $data;
$sp = array();
foreach($veri as $veriler){
if(ereg($veriler,$metin)){
$sp[] = "var";
}
}
$say = count($sp);
if($say>0){
include "settings.php";
include "class/class.inc.php";
//$sitezz = $seo->sef($sitezz);
$dbo->setSql("select name from sitezz where name='$sitezz'")->runSql();
$varmi = $dbo->numRows();
$site = $Golge->DomainReplace($domain);
if($varmi>0){
$kontrol = control($site, $sitezz);
}else{
$dbo->setSql("insert into sitezz(name,h,n,g)values('$sitezz','0','0','0')")->runSql();
}
if($kontrol > 0){
$halt = "03";
}else{
$data = addslashes($data);
$server = $server->os($site);
$hng = $hng->hng($domain);
$halt = $hng;
$ip = gethostbyname($site);
$zaman = date("d:m:Y - h:i:s");
$uip = $_SERVER['REMOTE_ADDR'];
$dbo->setSql("insert into
onhold(sitezz,url,kaynak,hng,os,zaman,domain,ip,user_ip)values('$sitezz','$domain','$data','$hng','$server','$zaman','$site','$ip','$uip')")->runSql();
if($dbo->result()){
$table = $hng;
if($table == 0){
$table = "g";
}elseif($table==1){
$table = "h";
}else{
$table = "n";
}
$dbo->setSql("update sitezz set $table = $table+1 where name = '$sitezz'")->runSql();
if($dbo->result()){
$halt = '04';
}else{
$halt = "05";
}
}else{
$halt = "06";
}
}
}else{
$halt = '07';
}
}
}
echo $halt;
?>
Ek Olarak: // güncell