Раскодировать PHP old

Статус
В этой теме нельзя размещать новые ответы.
Помогите декодить

PHP:
<? eval(gzuncompress(base64_decode('eNqFVtuOmzAQ/ZU+VMquVFW5sdqoysPuQ+lGG6rdKgZcVRGYpCgBmoZIuXx9PWeAKJUNLzZhxnM553jIR/f1+/PT64+fveXYcR76zuPgcdn7NX3a76PzXRyVq4fxMlmpP8nqrpf0Pnzu+U4ZYafFoWXfu//0n6cavZPlnHx7mRqsZGs8aDN61R60GuOQQXudE3dSxqMkU7+n9MrgyRUPaE3lkDZBywYRcpHSjjwu3ucqnxzoISpofc7k0RZZ0vshTvVxwh/oDOKCjAEtu8xQD7xQxwZo5HhOE1f0VSGyEFGpK1PfEbBHnk08QoUOR0EdF1pCf3CMuaOtGbmq0l1cvGcqP6XhcGHPVSEn/ipXFLZ+xBZoBB7Q0Bg6LbUzblsZeNqTfpi84yBDN8o/rVUgMjyDk+203Zt2rmYGFTFONhXRSdWo+rSWVzT7IXhK1yHY9C4xfs8t+etKVWGpEAxxLp0nmOnKXizaipGRY0pWiK4mRW9hQJXMbap0v/bRw9vUaCWT9jBaY/+whT4CK1raw2yF4urzQN/kpXs4MIpvthi3vAMGjagVpwojRrMFd44JjmnRqN5yDGRZw4SupX+ZT47SH9ustECjyTkK3g23X+aevtle1qLFLhV199vgp3sk1aDfRsO4fab+1DAdcI+ybFFQnrFVTMDNymWl8qy23Q99ikylBOgTfUqfaPFGTD4ReLsV7uTCyklWYufYXBXmH+WYt/VAsY1xq+/UORjNMuXShKQXi5ZvFcJh0tQnbPXexEadbd7MOM8mBQ47J0ylD5y2aqTWB3Rfz7nmy+VBQ+Z7APREzWELf8yKxph2O4dVvEpNjS5s862bO40ts1HjC/QsGF+9u7hrPMFflydlB9su5o3Fs7nxCCy6Jx3PLrr9qMLKbv2Vya//T+j7EVqnG3Nmm26y0BOtad482aCbkuvCs/a6//IPEGHzwA=='))); ?>

Полный файл в аттаче.
Путем замены eval на echo получаем такое
PHP:
$GLOBALS['_455605818_']=Array(base64_decode('d' .'W5sa' .'W' .'5' .'r'),base64_decode('c3R' .'ydHI='),

Можно ли данный код привести в более менее, читаемый код?
 

Вложения

  • file.txt
    3,6 KB · Просмотры: 12
Помогите декодить
Можно ли данный код привести в более менее, читаемый код?
Набросал по-быстрому декодер:
PHP:
<?
$fp = fopen('1.txt', r);
while(!feof($fp)) {
    $text .= fread($fp, 1024);
}
fclose($fp);
$new = preg_replace_callback("|\\\$GLOBALS\['_455605818_'\]\[(\d{1,2})\]|", asd, $text);
echo $new;
function asd($matches) {
    $replace=Array(base64_decode('d' .'W5sa' .'W' .'5' .'r'),base64_decode('c3R' .'ydHI='),base64_decode('c' .'3R' .'ydH' .'I='),base64_decode('c3R' .'yd' .'HI='),base64_decode('' .'c3RydG9sb3dlcg=' .'='),base64_decode('a' .'W1' .'hZ2' .'V' .'j' .'cmVh' .'d' .'GV' .'mcm9t' .'an' .'BlZw=' .'='),base64_decode('Z' .'2V' .'0' .'aW1hZ2Vza' .'X' .'pl'),base64_decode('aW1hZ2' .'Vjc' .'m' .'VhdGV0cnVlY' .'29sb3I='),base64_decode('aW' .'1hZ2Vjb3' .'B5c' .'mV' .'z' .'YW1wb' .'GVk'),base64_decode('' .'aW1hZ2VpbnRlcmxhY2U='),base64_decode('aW' .'1' .'hZ2VqcGVn'),base64_decode('aW1hZ2VkZ' .'XN' .'0cm95'),base64_decode('aW' .'1hZ' .'2VkZXN0cm' .'95'),base64_decode('bXlz' .'cWxfcXVl' .'cn' .'k='),base64_decode('bXlz' .'cWxf' .'Z' .'XJ' .'yb3' .'I='),base64_decode('' .'bXlzc' .'W' .'xfZ' .'mV' .'0Y2' .'hfYX' .'Nzb2' .'M='),base64_decode('bXlzcWxfcXVlcnk='),base64_decode('bXl' .'zc' .'WxfZXJyb3I' .'='),base64_decode('bX' .'lzcWxfZm' .'V0Y2hf' .'YXNzb2M' .'='),base64_decode('ZGF0Z' .'Q=='),base64_decode('ZG' .'F0ZQ=='),base64_decode('bWtk' .'aXI='),base64_decode('' .'bWtkaXI='),base64_decode('b' .'Wtk' .'a' .'XI='),base64_decode('Y2htb2' .'Q='),base64_decode('b' .'Xlz' .'cWxfcXV' .'lcnk' .'='),base64_decode('bXlzcWxfZXJyb3I='),base64_decode('bXl' .'z' .'cW' .'x' .'fZmV' .'0Y2' .'hf' .'Y' .'XNzb2M='),base64_decode('' .'Zm9wZW4='),base64_decode('' .'Z' .'n' .'dyaXRl'),base64_decode('ZmNsb3Nl'),base64_decode('' .'bXlzcWxfcXVlcnk='),base64_decode('bXlzcWxfZXJyb3I='),base64_decode('bXlz' .'cWxfZmV0Y2h' .'fYX' .'Nzb' .'2M='),base64_decode('c2h1' .'ZmZsZ' .'Q=='),base64_decode('ZmlsZ' .'V9' .'leG' .'lzd' .'H' .'M='),base64_decode('Zml' .'sZV' .'9leGlzdH' .'M='),base64_decode('Zm' .'l' .'sZXNpe' .'mU='),base64_decode('' .'Zmls' .'ZV' .'9' .'le' .'GlzdHM='),base64_decode('ZmlsZ' .'XNpemU='),base64_decode('c' .'3RyX3JlcGxhY2' .'U='),base64_decode('c3R' .'y' .'X3' .'JlcGxhY2U='),base64_decode('' .'c' .'3RyX3Jlc' .'GxhY2U='),base64_decode('' .'bXlzcW' .'xfcX' .'Vlcnk='),base64_decode('bXl' .'zcWxfZXJy' .'b3I='),base64_decode('bXlzcWxfZmV0' .'Y2' .'hfY' .'X' .'Nz' .'b2M='),base64_decode('ZmlsZV9leGlzdHM='),base64_decode('Zm' .'ls' .'ZXNp' .'e' .'mU='),base64_decode('ZmlsZV9' .'leGlzdH' .'M' .'='),base64_decode('ZmlsZ' .'XNpemU='),base64_decode('c3Ry' .'X3Jlc' .'G' .'xhY2U='),base64_decode('c3Ry' .'X3' .'JlcGxhY2U='),base64_decode('c3Ry' .'X' .'3JlcGxhY2U='),base64_decode('c3RyX3Jl' .'cGx' .'hY2U='),base64_decode('bXlzcWxfc' .'XVlcnk' .'='),base64_decode('bXlzcWx' .'fZXJyb' .'3I='),base64_decode('bXlzc' .'WxfZmV' .'0' .'Y2hfYXNzb2M='),base64_decode('Zm' .'9wZW4='),base64_decode('Zndya' .'X' .'Rl'),base64_decode('Zm' .'Nsb' .'3' .'Nl'));
    return $replace[$matches[1]];
}
?>
В 1.txt сохраняем то, что выводит после замены eval на echo.
После удаления теперь уже ненужного массива $GLOBALS['_455605818_'] у меня получился вот такой код:
PHP:
require_once("header.php");echo "<b>Экспорт в csv c разбиением + все картинки</b><br />";$number=round(0);if($_POST['num']!= '')$number=$_POST['num'];@unlink('stop.txt');function encodestring($st){$st=strtr($st,"абвгдеёзийклмнопрстуфхъыэ_ ","abvgdeeziyklmnoprstufhiiei-");$st=strtr($st,"АБВГДЕЁЗИЙКЛМНОПРСТУФХЪЫЭ_","ABVGDEEZIYKLMNOPRSTUFH'IEI");$st=strtr($st,array("ж"=>"zh","ц"=>"ts","ч"=>"ch","ш"=>"sh","щ"=>"shch","ь"=>"","ю"=>"yu","я"=>"ya","Ж"=>"ZH","Ц"=>"TS","Ч"=>"CH","Ш"=>"SH","Щ"=>"SHCH","Ь"=>"","Ю"=>"YU","Я"=>"YA","ї"=>"i","Ї"=>"Yi","є"=>"ie","Є"=>"Ye"));$st=strtolower($st);return $st;}function jpgresize($in_file,$out_file,$larger){$old_img=imagecreatefromjpeg($in_file);$old_img_size=getimagesize($in_file);if($old_img_size[round(0)]>= $old_img_size[round(0+0.2+0.2+0.2+0.2+0.2)]){$new_size_w=$larger;$new_size_h=$old_img_size[round(0+0.25+0.25+0.25+0.25)]*$larger/$old_img_size[round(0)];}else{$new_size_h=$larger;$new_size_w=$old_img_size[round(0)]*$larger/$old_img_size[round(0+1)];}$img_new=imagecreatetruecolor($new_size_w,$new_size_h);imagecopyresampled($img_new,$old_img,round(0),round(0),round(0),round(0),$new_size_w,$new_size_h,$old_img_size[round(0)],$old_img_size[round(0+0.333333333333+0.333333333333+0.333333333333)]);imageinterlace($img_new,round(0+0.5+0.5));imagejpeg($img_new,$out_file,round(0+100));imagedestroy($img_new);imagedestroy($old_img);}include('config.php');$q=mysql_query("select * from `category`")or die(mysql_error());$i=round(0);while($q_r=mysql_fetch_assoc($q)){$ar[$i]=$q_r;$i++;}echo "<form action='' method=POST>
    Выберите категорию для экспорта:<br>
    <select class='textbox' name = 'cat'>";foreach($ar as $a){echo '<option value= "' .$a['id'] .'">' .$a['cat_name'] .'</option>';}echo "</select><br>Количество товаров для экспорта
    <input class='textbox' type='text' name='num' size=4 style='width:100px;'><br>Перемешать товары
    <input class='textbox' type='checkbox' name='rand'><br>
    <input class='button' type = 'submit' name='exp' value = 'Экспорт'>
    </form>";if($_POST['exp']){$q=mysql_query("select * from `category` where `id` = '" .$_POST['cat'] ."'")or die(mysql_error());while($q_r=mysql_fetch_assoc($q)){$cat_id=$q_r['id'];$cat_name=$q_r['cat_name'];}$cat_url=encodestring($cat_name);$dir="export/" .$cat_name .'_' .date('d-m-y');$fname=$dir ."/" .$cat_url .'_' .date('d-m-y') .'.csv';@mkdir($dir);@mkdir($dir ."/images/");@mkdir($dir ."/resized/");@chmod($dir,round(0+127.75+127.75+127.75+127.75));$to="category name;product name;brand;image1;image2;image3;image4;image5";$q=mysql_query("select * from `hars` where `cat_id` = '" .$cat_id ."'")or die(mysql_error());$i=round(0);while($q_r=mysql_fetch_assoc($q)){$har_ids[$i]=$q_r['id'];$har_names[$i]=$q_r['name'];$to=$to .";" .$q_r['name'];$i++;}$to=$to ."\n";$f=fopen($fname,'a+');fwrite($f,$to);fclose($f);$q=mysql_query("select * from `product` where `cat_id` = '" .$cat_id ."'")or die(mysql_error());$i=round(0);while($q_r=mysql_fetch_assoc($q)){$pr[$i]=$q_r;$i++;}if($_POST['rand']!= 'on')shuffle($pr);$j=round(0+0.25+0.25+0.25+0.25);foreach($pr as $p){if(file_exists('stope.txt'))die('Парсинг прерван по запросу пользователя.');if(file_exists("images/" .$p['image'])&& filesize("images/" .$p['image'])>round(0)){jpgresize("images/" .$p['image'],$dir ."/images/" .$p['image'],round(0+160+160+160+160));}if(file_exists($dir ."/images/" .$p['image'])&& filesize($dir ."/images/" .$p['image'])>round(0)){jpgresize($dir ."/images/" .$p['image'],$dir ."/resized/" .str_replace(".jpg","",$p['image']) ."_50.jpg",round(0+50));jpgresize($dir ."/images/" .$p['image'],$dir ."/resized/" .str_replace(".jpg","",$p['image']) ."_75.jpg",round(0+18.75+18.75+18.75+18.75));jpgresize($dir ."/images/" .$p['image'],$dir ."/resized/" .str_replace(".jpg","",$p['image']) ."_160.jpg",round(0+160));}$q=mysql_query("select `name` from `images` where `prod_id` = '" .$p['id'] ."'")or die(mysql_error());$fi=round(0+2);while($q_r=mysql_fetch_assoc($q)){$p['image' .$fi]=$q_r['name'];if(file_exists("images/" .$p['image' .$fi])&& filesize("images/" .$p['image' .$fi])>round(0)){jpgresize("images/" .$p['image' .$fi],$dir ."/resized/" .$p['image' .$fi],round(0+640));}if(file_exists($dir ."/images/" .$p['image' .$fi])&& filesize($dir ."/images/" .$p['image' .$fi])>round(0)){jpgresize($dir ."/images/" .$p['image' .$fi],$dir ."/resized/" .str_replace(".jpg","",$p['image' .$fi]) ."_50.jpg",round(0+10+10+10+10+10));}$fi++;}foreach($p as $key=>$value){$p[$key]=str_replace(";",",",$p[$key]);$p[$key]=str_replace("\n",",",$p[$key]);$p[$key]=str_replace("\r",",",$p[$key]);}$to=$cat_name .";" .$p['name'] .";" .$p['brand'] .";/images/" .$p['image'] .";" .$p['image2'] .";" .$p['image3'] .";" .$p['image4'] .";" .$p['image5'];foreach($har_ids as $hi){$hval='';$q=mysql_query("select * from `hars_values` where `har_id` = '" .$hi ."' and `prod_id` = '" .$p['id'] ."'")or die(mysql_error());while($q_r=mysql_fetch_assoc($q))$hval=$q_r['har_value'];$to=$to .";" .$hval;}$to=$to ."\n";$f=fopen($fname,'a+');fwrite($f,$to);fclose($f);if($number != round(0)and $j == $number)die("Создан файл <a href='" .$fname ."'>" .$fname ."</a>");$j++;}echo "Создан файл <a href='" .$fname ."'>" .$fname ."</a>";}require_once("footer.php");
 
Belial, подскажи function asd($matches) отрабатывает только до 99 значений.
В чем может быть проблема?
 
Belial, подскажи function asd($matches) отрабатывает только до 99 значений.
В чем может быть проблема?
в строчке
PHP:
$new = preg_replace_callback("|\\\$GLOBALS\['_455605818_'\]\[(\d{1,2})\]|", asd, $text);
в регулярном выражении \d{1,2} это означает что символ должен быть цифрой, в количестве от 1 до 2, т.е максимальное значение- 99. Измени второе значение-
PHP:
$new = preg_replace_callback("|\\\$GLOBALS\['_455605818_'\]\[(\d{1,5})\]|", asd, $text);
тогда максимальное число будет 99999
 
Это можно раскодировать?

Можно ли раскодировать такой файл? Всё испробовал, что советовали, но ничего не получается. Может лыжи не те надел?...
PHP:
<?php
$OOO000000=urldecode('%66%67%36%73%62%65%68%70%72%61%34%63%6f%5f%74%6e%64');$OOO0000O0=$OOO000000{4}.$OOO000000{9}.$OOO000000{3}.$OOO000000{5};$OOO0000O0.=$OOO000000{2}.$OOO000000{10}.$OOO000000{13}.$OOO000000{16};$OOO0000O0.=$OOO0000O0{3}.$OOO000000{11}.$OOO000000{12}.$OOO0000O0{7}.$OOO000000{5};$OOO000O00=$OOO000000{0}.$OOO000000{12}.$OOO000000{7}.$OOO000000{5}.$OOO000000{15};$O0O000O00=$OOO000000{0}.$OOO000000{1}.$OOO000000{5}.$OOO000000{14}.$OOO000000{3};$O0O00OO00=$OOO000000{0}.$OOO000000{8}.$OOO000000{5}.$OOO000000{9}.$OOO000000{16};$OOO00000O=$OOO000000{3}.$OOO000000{14}.$OOO000000{8}.$OOO000000{14}.$OOO000000{8};$OOO0O0O00=__FILE__;$OO00O0000=8868;eval($OOO0000O0('aWYoITApJE8wMDBPME8wMD0kT09PMDAwTzAwKCRPT08wTzBPMDAsJ3JiJyk7JE8wTzAwME8wMCgkTzAwME8wTzAwLDEwMjQpOyRPME8wMDBPMDAoJE8wMDBPME8wMCw0MDk2KTskT08wME8wME8wPSRPT08wMDAwTzAoJE9PTzAwMDAwTygkTzBPMDBPTzAwKCRP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hFMa0fbkVwtO0DolzRT5vFMlmDB5gCbkZK30YtMc1dMY0DB9VwoYvfB50b3fvFMOzhtl7eWPLfo1Xb2yZFJE9woyZFMy5htL7eWpMd3klCBYPwtILfoipFZ0+d3kpc2lVb2yZFJniFZELfMyShbSYtMlMwtizfukScB4PkucidtL+NUO0DolzRT5sDB5gf29Zcy9ScB5mfoIpGX0hkucidtE9wuY0FmOvdo93cbwPkucidtL7eWppcJEPCbkZCblgD2a5b2a4DbY0FZILfMySRtO0dbngCbkZhUl7eWPLfo1Xb2yZFlSLfMySbUSqK30YtMaSF2a7eWPLfo1Xb2yZFlSLfMySbUE9wer7gb19eWpiFmYvFmWIhtO0dbngCbkZhTSYtJO0DolzRT5sd2Opcl9iFmwINUELfo1Xb2yZFjs9eWpMfB5jfolvdJnmcbOgD2a5f29ZcuHPkuOlGuWpGX0hkoYqf3wINUwxHJw7eWPLfoipFZ0+cbiXdo9Lca9zfukgd25gf29ZcuHPkuOlGuWpKX0hkuOPDbHsNMYvfB50b3fvFMOzhtL7eWPLCbkZwe0ICbkZCblgF2xpC2APkuOPDbHsNM1vcolMb2yZFJXXRtOjD3fZhTSYtJOzfuwINUEJwjSYtMcvFMaiC2IIhtOiFmwICbHIkoslGT0+kucidtl7eWPLF3OZwt49wtOqcbLIRJwSwtw7gW0hFMa0fbkVwuOZDB0PF3aJF3OZhtOzfuwSHtxzfukScB4PkuY0FJLsHJLpKX0hgW0hgW0h
 
Можно ли раскодировать такой файл? Всё испробовал, что советовали, но ничего не получается. Может лыжи не те надел?...
PHP:
include ("db/als_setting.dat");
include ("db/news_set.dat");
include ("lang/$lang.php");
$set = $_GET['set'];
$mc = $_GET['mc'];
$cm = $_GET['cm'];
$page = $_GET['page'];
$id = $_GET['id'];
$do = $_GET['do'];
if (empty($set))
{
$set = $glav_module;
if (ereg("&mc=",$glav_module))
{
$q = explode("&",$glav_module);
$set = $q[0];
$mc = str_replace("mc=","",$q[1]);
}
}
$loader="<img src='images/loading.gif' border=0 title='Автоматическое перенаправление...'><script language='Javascript'>function reload() {location = \"als_design.php\"}; setTimeout('reload()', 2400);</script>";
$als_set="<?php
\$maxname = \"".$_POST["maxname"]."\";
\$maxmail = \"".$_POST["maxmail"]."\";
\$maxmsgt = \"".$_POST["maxmsgt"]."\"; 
\$maxkey = \"".$_POST["antispam"]."\";
\$mailref = \"".$_POST["mailref"]."\";
\$c_image = \"".$_POST["c_image"]."\";
\$c_dd = \"".$_POST["c_dd"]."\";
\$c_ht = \"".$_POST["c_ht"]."\";
\$c_hs = \"".$_POST["c_hs"]."\";
\$_a['ngbinvert'] = \"".$_POST["ngbinvert"]."\";
\$_a['ngbpp'] = \"".$_POST["ngbpp"]."\";
\$name_tpl = \"".$_POST["tpls"]."\";
\$_a['anons'] = \"".$_POST["anons"]."\";
\$_a['lgbinvert'] = \"".$_POST["lgbinvert"]."\";
\$_a['lgbpp'] = \"".$_POST["lgbpp"]."\";
?>";
function deltree($folder){
if (is_dir($folder)){
$handle = opendir($folder);
while ($subfile = readdir($handle)){
if ($subfile == '.'or $subfile == '..') continue;
if (is_file($subfile)) unlink("{$folder}/{$subfile}");
else deltree("{$folder}/{$subfile}");
}
closedir($handle);
rmdir ($folder);
}
else unlink($folder);
}
function lisense_key($d) {
$d = ($_SERVER['HTTP_HOST']);
$d = str_replace ("www.","",$d);
$sv=strtoupper(md5(md5($d)));
return substr($sv,27,1).substr($sv,26,1).substr($sv,4,1).'-'.substr($sv,15,4).substr($sv,24,1).'-'.substr($sv,1,2).substr($sv,8,3).'-'.substr($sv,3,5).'-'.substr($sv,25,3).substr($sv,2,2);
}
function rfile($url) {
$f = @fopen($url,"r");
$content = @fread($f,filesize($url));
fclose($f);
return $content;
}
function alias_exist($a) {
$f = file("../set/db/menu.dat");
foreach ($f as $v) 
{
$e = explode("::",$v);
$alias[] = $e[1];
}
if(in_array($a,$alias)) return true;
else return false;}
function alias_exist_ed($a) {
global $f;
$f = file("../set/db/menu.dat");
foreach ($f as $v) {
$e = explode("::",$v);
$alias[] = $e[1];
$ids[$e[1]] = $e[0];
}
if(in_array($a,$alias) &&$ids[$a]!=$_POST['id']) return true;
else return false;
}
function pins_gen($n) {
for($i=0;$i<$n;$i++) {
$_p = md5(time().rand().$i);
$pins[] = strtoupper(substr($_p,0,5).'-'.substr($_p,5,5).'-'.substr($_p,10,5).'-'.substr($_p,15,5));
}
return $pins;
}
function sh_sbm($msg,$title) {
print"<html><title>$title</title><HEAD<META content='text/html; charset=windows-1251' http-equiv=Content-Type><STYLE> a {color:#307DBC} body {font-size:12; font-family: tahoma;}</STYLE></HEAD><body><center>$msg<br></body></html>";
return true;}
function tree($elements,$parent,$ots,$count){
for($j = 0;$j <$count;$j++){
if( trim($elements[$j][3]) == $parent ){
echo('<option value="'.$elements[$j][0].'">'.$ots.trim($elements[$j][2]).'</option>');
tree($elements,$elements[$j][0],$ots."<b>.&nbsp;.&nbsp;</b>",$count);}}}
function tree_ed($elements,$parent,$ots,$count,$selected){
for($j = 0;$j <$count;$j++)	{
if( trim($elements[$j][3]) == $parent ){
if ( trim($elements[$j][0]) == $selected )
echo('<option value="'.$elements[$j][0].'" selected>'.$ots.trim($elements[$j][2]).'</option>');
else echo('<option value="'.$elements[$j][0].'">'.$ots.trim($elements[$j][2]).'</option>');
tree_ed($elements,$elements[$j][0],$ots."&nbsp;&nbsp;&nbsp;&nbsp;",$count,$selected);}}}
if (!function_exists('file_put_contents'))
{
function file_put_contents ($filename,$content){
if ($fp = @fopen($filename,'w'))
{
$result = fwrite($fp,$content);
fclose ($fp);
return $result;}
else{
return false;
}}}
function get_full_path($id,$array,$path){
global $t;
if ($id != 0) {
foreach ($array as $e) {
$elem = explode ('::',trim($e));
if ($id == $elem[0]) {
$path = "&nbsp;&nbsp;<img src='tpl/defalt/images/img10.gif' border=0>&nbsp;&nbsp;<a href='".$elem[1].".html'>".$elem[2]."</a>".$path ;
get_full_path($elem[3],$array,$path);
}
}
}else $t = $path;
}
function addSpace($num) {$strlen=17-strlen($num);$space=null;while($strlen) {$space.=" ";$strlen--;}return $space.$num;}
function read_file($path)
{if(!is_file($path))return false;
elseif(!filesize($path))return array();
elseif($array=file($path))return $array;
else while(!$array=file($path))sleep(1);
return $array;}
function normal_numeric($number)
{if(!isset($number))return false;
else{$strlen=strlen($number);
$new=null;
for ($i=$strlen-1;$i>-1;$i--)
{$n = $i;$n++;if(strstr($n/3,"."))$new.=$number[$strlen-1-$i];
else if($n!=$strlen)$new.=    " ".$number[$strlen-1-$i];
else$new.=$number[$strlen-1-$i];}
return $new;}}
class Count_kw{
var $origin_arr;
var $modif_arr;
var $min_word_length = 3;
function explode_str_on_words($text)
{
$search = array ("'<script[^>]*?>.*?</script>'si","'<[\/\!]*?[^<>]*?>'si","'([\r\n])[\s]+'","'&(quot|#34);'i","'&(amp|#38);'i","'&(lt|#60);'i","'&(gt|#62);'i","'&(nbsp|#160);'i","'&(iexcl|#161);'i","'&(cent|#162);'i","'&(pound|#163);'i","'&(copy|#169);'i","'ё'","'&#(\d+);'e");
$replace = array ("е"," "," ","\\1 ","\" "," "," "," "," ",chr(161),chr(162),chr(163),chr(169),"chr(\\1)");
$text = preg_replace ($search,$replace,$text);
$del_symbols = array(
",",".",";",":","\"","#","\$","%","^","!","@","`","~","*","-","=","+","\\","|","/",">","<","(",")","&","?","№","\t","\r","\n","{","}","[","]","'","“","”","•","как","для","что","или","это","этих","всех","вас","они","оно","еще","когда","где","эта","лишь","уже","вам","нет","если","надо","все","так","его","чем","при","даже","мне","есть","раз","два","если","порно","секс","сама","сам","том","ему","изза","0","1","2","3","4","5","6","7","8","9"
);
$text = str_replace($del_symbols,array(" "),$text);
$text = ereg_replace("( +)"," ",$text);
$this->origin_arr = explode(" ",trim($text));
return $this->origin_arr;}
function count_words(){
$tmp_arr = array();
foreach ($this->origin_arr as $val){
if (strlen($val)>=$this->min_word_length){
$val = strtolower($val);
if (array_key_exists($val,$tmp_arr)){
$tmp_arr[$val]++;}
else{
$tmp_arr[$val] = 1;}}}
arsort ($tmp_arr);
$this->modif_arr = $tmp_arr;}
function get_keywords($text){
$ckwr ="12";
$this->explode_str_on_words($text);
$this->count_words();
$arr = array_slice($this->modif_arr,0,$ckwr);
$str = "";
foreach ($arr as $key=>$val){
$str .= $key .", ";}
return trim(substr($str,0,strlen($str)-2));
}
}
 
Здравствуйте, если не трудно помогите раскодировать.
Файлы выложил атачем, зарание благодарю. :eek:
 

Вложения

  • index.txt
    3,6 KB · Просмотры: 8
  • core.txt
    5,3 KB · Просмотры: 6
Набросал по-быстрому декодер:
PHP:
<?
$fp = fopen('1.txt', r);
while(!feof($fp)) {
    $text .= fread($fp, 1024);
}
fclose($fp);
$new = preg_replace_callback("|\\\$GLOBALS\['_455605818_'\]\[(\d{1,2})\]|", asd, $text);
echo $new;
function asd($matches) {
    $replace=Array(base64_decode('d' .'W5sa' .'W' .'5' .'r'),base64_decode('c3R' .'ydHI='),base64_decode('c' .'3R' .'ydH' .'I='),base64_decode('c3R' .'yd' .'HI='),base64_decode('' .'c3RydG9sb3dlcg=' .'='),base64_decode('a' .'W1' .'hZ2' .'V' .'j' .'cmVh' .'d' .'GV' .'mcm9t' .'an' .'BlZw=' .'='),base64_decode('Z' .'2V' .'0' .'aW1hZ2Vza' .'X' .'pl'),base64_decode('aW1hZ2' .'Vjc' .'m' .'VhdGV0cnVlY' .'29sb3I='),base64_decode('aW' .'1hZ2Vjb3' .'B5c' .'mV' .'z' .'YW1wb' .'GVk'),base64_decode('' .'aW1hZ2VpbnRlcmxhY2U='),base64_decode('aW' .'1' .'hZ2VqcGVn'),base64_decode('aW1hZ2VkZ' .'XN' .'0cm95'),base64_decode('aW' .'1hZ' .'2VkZXN0cm' .'95'),base64_decode('bXlz' .'cWxfcXVl' .'cn' .'k='),base64_decode('bXlz' .'cWxf' .'Z' .'XJ' .'yb3' .'I='),base64_decode('' .'bXlzc' .'W' .'xfZ' .'mV' .'0Y2' .'hfYX' .'Nzb2' .'M='),base64_decode('bXlzcWxfcXVlcnk='),base64_decode('bXl' .'zc' .'WxfZXJyb3I' .'='),base64_decode('bX' .'lzcWxfZm' .'V0Y2hf' .'YXNzb2M' .'='),base64_decode('ZGF0Z' .'Q=='),base64_decode('ZG' .'F0ZQ=='),base64_decode('bWtk' .'aXI='),base64_decode('' .'bWtkaXI='),base64_decode('b' .'Wtk' .'a' .'XI='),base64_decode('Y2htb2' .'Q='),base64_decode('b' .'Xlz' .'cWxfcXV' .'lcnk' .'='),base64_decode('bXlzcWxfZXJyb3I='),base64_decode('bXl' .'z' .'cW' .'x' .'fZmV' .'0Y2' .'hf' .'Y' .'XNzb2M='),base64_decode('' .'Zm9wZW4='),base64_decode('' .'Z' .'n' .'dyaXRl'),base64_decode('ZmNsb3Nl'),base64_decode('' .'bXlzcWxfcXVlcnk='),base64_decode('bXlzcWxfZXJyb3I='),base64_decode('bXlz' .'cWxfZmV0Y2h' .'fYX' .'Nzb' .'2M='),base64_decode('c2h1' .'ZmZsZ' .'Q=='),base64_decode('ZmlsZ' .'V9' .'leG' .'lzd' .'H' .'M='),base64_decode('Zml' .'sZV' .'9leGlzdH' .'M='),base64_decode('Zm' .'l' .'sZXNpe' .'mU='),base64_decode('' .'Zmls' .'ZV' .'9' .'le' .'GlzdHM='),base64_decode('ZmlsZ' .'XNpemU='),base64_decode('c' .'3RyX3JlcGxhY2' .'U='),base64_decode('c3R' .'y' .'X3' .'JlcGxhY2U='),base64_decode('' .'c' .'3RyX3Jlc' .'GxhY2U='),base64_decode('' .'bXlzcW' .'xfcX' .'Vlcnk='),base64_decode('bXl' .'zcWxfZXJy' .'b3I='),base64_decode('bXlzcWxfZmV0' .'Y2' .'hfY' .'X' .'Nz' .'b2M='),base64_decode('ZmlsZV9leGlzdHM='),base64_decode('Zm' .'ls' .'ZXNp' .'e' .'mU='),base64_decode('ZmlsZV9' .'leGlzdH' .'M' .'='),base64_decode('ZmlsZ' .'XNpemU='),base64_decode('c3Ry' .'X3Jlc' .'G' .'xhY2U='),base64_decode('c3Ry' .'X3' .'JlcGxhY2U='),base64_decode('c3Ry' .'X' .'3JlcGxhY2U='),base64_decode('c3RyX3Jl' .'cGx' .'hY2U='),base64_decode('bXlzcWxfc' .'XVlcnk' .'='),base64_decode('bXlzcWx' .'fZXJyb' .'3I='),base64_decode('bXlzc' .'WxfZmV' .'0' .'Y2hfYXNzb2M='),base64_decode('Zm' .'9wZW4='),base64_decode('Zndya' .'X' .'Rl'),base64_decode('Zm' .'Nsb' .'3' .'Nl'));
    return $replace[$matches[1]];
}
?>
В 1.txt сохраняем то, что выводит после замены eval на echo.
После удаления теперь уже ненужного массива $GLOBALS['_455605818_'] у меня получился вот такой код:
PHP:
require_once("header.php");echo "<b>Экспорт в csv c разбиением + все картинки</b><br />";$number=round(0);if($_POST['num']!= '')$number=$_POST['num'];@unlink('stop.txt');function encodestring($st){$st=strtr($st,"абвгдеёзийклмнопрстуфхъыэ_ ","abvgdeeziyklmnoprstufhiiei-");$st=strtr($st,"АБВГДЕЁЗИЙКЛМНОПРСТУФХЪЫЭ_","ABVGDEEZIYKLMNOPRSTUFH'IEI");$st=strtr($st,array("ж"=>"zh","ц"=>"ts","ч"=>"ch","ш"=>"sh","щ"=>"shch","ь"=>"","ю"=>"yu","я"=>"ya","Ж"=>"ZH","Ц"=>"TS","Ч"=>"CH","Ш"=>"SH","Щ"=>"SHCH","Ь"=>"","Ю"=>"YU","Я"=>"YA","ї"=>"i","Ї"=>"Yi","є"=>"ie","Є"=>"Ye"));$st=strtolower($st);return $st;}function jpgresize($in_file,$out_file,$larger){$old_img=imagecreatefromjpeg($in_file);$old_img_size=getimagesize($in_file);if($old_img_size[round(0)]>= $old_img_size[round(0+0.2+0.2+0.2+0.2+0.2)]){$new_size_w=$larger;$new_size_h=$old_img_size[round(0+0.25+0.25+0.25+0.25)]*$larger/$old_img_size[round(0)];}else{$new_size_h=$larger;$new_size_w=$old_img_size[round(0)]*$larger/$old_img_size[round(0+1)];}$img_new=imagecreatetruecolor($new_size_w,$new_size_h);imagecopyresampled($img_new,$old_img,round(0),round(0),round(0),round(0),$new_size_w,$new_size_h,$old_img_size[round(0)],$old_img_size[round(0+0.333333333333+0.333333333333+0.333333333333)]);imageinterlace($img_new,round(0+0.5+0.5));imagejpeg($img_new,$out_file,round(0+100));imagedestroy($img_new);imagedestroy($old_img);}include('config.php');$q=mysql_query("select * from `category`")or die(mysql_error());$i=round(0);while($q_r=mysql_fetch_assoc($q)){$ar[$i]=$q_r;$i++;}echo "<form action='' method=POST>
    Выберите категорию для экспорта:<br>
    <select class='textbox' name = 'cat'>";foreach($ar as $a){echo '<option value= "' .$a['id'] .'">' .$a['cat_name'] .'</option>';}echo "</select><br>Количество товаров для экспорта
    <input class='textbox' type='text' name='num' size=4 style='width:100px;'><br>Перемешать товары
    <input class='textbox' type='checkbox' name='rand'><br>
    <input class='button' type = 'submit' name='exp' value = 'Экспорт'>
    </form>";if($_POST['exp']){$q=mysql_query("select * from `category` where `id` = '" .$_POST['cat'] ."'")or die(mysql_error());while($q_r=mysql_fetch_assoc($q)){$cat_id=$q_r['id'];$cat_name=$q_r['cat_name'];}$cat_url=encodestring($cat_name);$dir="export/" .$cat_name .'_' .date('d-m-y');$fname=$dir ."/" .$cat_url .'_' .date('d-m-y') .'.csv';@mkdir($dir);@mkdir($dir ."/images/");@mkdir($dir ."/resized/");@chmod($dir,round(0+127.75+127.75+127.75+127.75));$to="category name;product name;brand;image1;image2;image3;image4;image5";$q=mysql_query("select * from `hars` where `cat_id` = '" .$cat_id ."'")or die(mysql_error());$i=round(0);while($q_r=mysql_fetch_assoc($q)){$har_ids[$i]=$q_r['id'];$har_names[$i]=$q_r['name'];$to=$to .";" .$q_r['name'];$i++;}$to=$to ."\n";$f=fopen($fname,'a+');fwrite($f,$to);fclose($f);$q=mysql_query("select * from `product` where `cat_id` = '" .$cat_id ."'")or die(mysql_error());$i=round(0);while($q_r=mysql_fetch_assoc($q)){$pr[$i]=$q_r;$i++;}if($_POST['rand']!= 'on')shuffle($pr);$j=round(0+0.25+0.25+0.25+0.25);foreach($pr as $p){if(file_exists('stope.txt'))die('Парсинг прерван по запросу пользователя.');if(file_exists("images/" .$p['image'])&& filesize("images/" .$p['image'])>round(0)){jpgresize("images/" .$p['image'],$dir ."/images/" .$p['image'],round(0+160+160+160+160));}if(file_exists($dir ."/images/" .$p['image'])&& filesize($dir ."/images/" .$p['image'])>round(0)){jpgresize($dir ."/images/" .$p['image'],$dir ."/resized/" .str_replace(".jpg","",$p['image']) ."_50.jpg",round(0+50));jpgresize($dir ."/images/" .$p['image'],$dir ."/resized/" .str_replace(".jpg","",$p['image']) ."_75.jpg",round(0+18.75+18.75+18.75+18.75));jpgresize($dir ."/images/" .$p['image'],$dir ."/resized/" .str_replace(".jpg","",$p['image']) ."_160.jpg",round(0+160));}$q=mysql_query("select `name` from `images` where `prod_id` = '" .$p['id'] ."'")or die(mysql_error());$fi=round(0+2);while($q_r=mysql_fetch_assoc($q)){$p['image' .$fi]=$q_r['name'];if(file_exists("images/" .$p['image' .$fi])&& filesize("images/" .$p['image' .$fi])>round(0)){jpgresize("images/" .$p['image' .$fi],$dir ."/resized/" .$p['image' .$fi],round(0+640));}if(file_exists($dir ."/images/" .$p['image' .$fi])&& filesize($dir ."/images/" .$p['image' .$fi])>round(0)){jpgresize($dir ."/images/" .$p['image' .$fi],$dir ."/resized/" .str_replace(".jpg","",$p['image' .$fi]) ."_50.jpg",round(0+10+10+10+10+10));}$fi++;}foreach($p as $key=>$value){$p[$key]=str_replace(";",",",$p[$key]);$p[$key]=str_replace("\n",",",$p[$key]);$p[$key]=str_replace("\r",",",$p[$key]);}$to=$cat_name .";" .$p['name'] .";" .$p['brand'] .";/images/" .$p['image'] .";" .$p['image2'] .";" .$p['image3'] .";" .$p['image4'] .";" .$p['image5'];foreach($har_ids as $hi){$hval='';$q=mysql_query("select * from `hars_values` where `har_id` = '" .$hi ."' and `prod_id` = '" .$p['id'] ."'")or die(mysql_error());while($q_r=mysql_fetch_assoc($q))$hval=$q_r['har_value'];$to=$to .";" .$hval;}$to=$to ."\n";$f=fopen($fname,'a+');fwrite($f,$to);fclose($f);if($number != round(0)and $j == $number)die("Создан файл <a href='" .$fname ."'>" .$fname ."</a>");$j++;}echo "Создан файл <a href='" .$fname ."'>" .$fname ."</a>";}require_once("footer.php");
Напишу шо делал, может поправите.

Берем файл includes.php. Заменяем eval на echo. Открываем в браузере, сохраняям содержимое.
Получаем
Код:
$GLOBALS['_1773714188_']=Array(base64_decode('' .'c3Ry' .'d' .'HI='),base64_decode('c3R' .'ydHI='),base64_decode('c3' .'RydHI' .'='),base64_decode('c3' .'RydG9sb3dlcg=='),base64_decode('' .'aW1hZ' .'2VjcmVhdG' .'V' .'mcm9tanB' .'lZ' .'w=='),base64_decode('Z2V0a' .'W1h' .'Z2Vz' .'a' .'Xpl'),base64_decode('aW1' .'h' .'Z2V' .'jcmV' .'h' .'d' .'GV0' .'c' .'n' .'Vl' .'Y29sb3I='),base64_decode('aW1hZ' .'2' .'V' .'jb3' .'B5' .'cmVzYW' .'1wbGVk'),base64_decode('' .'aW1hZ' .'2Vpbn' .'Rlcm' .'xhY2U='),base64_decode('' .'aW1hZ2VqcGVn'),base64_decode('aW' .'1hZ2VkZXN0cm95'),base64_decode('aW1hZ' .'2' .'Vk' .'ZXN' .'0cm95'),base64_decode('bXl' .'zcWxf' .'cXVl' .'c' .'n' .'k='),base64_decode('bXlzcW' .'x' .'fZXJyb3I='),base64_decode('bXlzcW' .'xf' .'ZmV0Y' .'2hfYXN' .'z' .'b2' .'M='),base64_decode('bXlzcWx' .'fc' .'X' .'Vlcnk='),base64_decode('b' .'XlzcWxfZXJyb3I='),base64_decode('b' .'XlzcWxfZmV' .'0Y2hfYXN' .'zb2M='),base64_decode('ZG' .'F0' .'ZQ=='),base64_decode('ZGF0ZQ=='),base64_decode('bWt' .'kaXI='),base64_decode('bWtkaX' .'I='),base64_decode('bW' .'tkaXI='),base64_decode('Y2htb2Q='),base64_decode('bXlzcW' .'xfcXVlc' .'nk='),base64_decode('bXl' .'zc' .'WxfZXJyb3I='),base64_decode('' .'b' .'XlzcWxfZm' .'V0Y2' .'hfYXN' .'zb2M='),base64_decode('Z' .'m9wZW4='),base64_decode('Zndya' .'XRl'),base64_decode('Z' .'m' .'Nsb3Nl'),base64_decode('bXlz' .'c' .'W' .'xf' .'cXVlcnk='),base64_decode('b' .'X' .'l' .'z' .'c' .'WxfZXJyb3I='),base64_decode('bXlzcWxfZm' .'V0Y' .'2h' .'fYX' .'Nzb2M='),base64_decode('c2h1Zm' .'Z' .'sZQ=='),base64_decode('bX' .'l' .'zcWxfcXVlcnk' .'='),base64_decode('bXlzcWxfZXJyb3I' .'='),base64_decode('bXlzcW' .'xfZm' .'V0Y2hf' .'YXNzb2M' .'='),base64_decode('Y' .'291b' .'nQ='),base64_decode('bXl' .'zcWx' .'f' .'c' .'XVl' .'cn' .'k='),base64_decode('bXlzcWxfZ' .'XJyb3I='),base64_decode('bXlzc' .'Wxf' .'ZmV0Y2hfYXNzb2M='),base64_decode('aW5fYX' .'J' .'yYXk' .'='),base64_decode('' .'c3RyX3J' .'lc' .'GxhY2' .'U='),base64_decode('c3RyX' .'3J' .'l' .'cGxhY2U='),base64_decode('c3R' .'yX' .'3JlcGxhY2' .'U='),base64_decode('c3R' .'y' .'X3Jl' .'cGxh' .'Y2' .'U='),base64_decode('' .'bXlzcW' .'xfcXVlcnk' .'='),base64_decode('b' .'X' .'lzcWx' .'fZ' .'XJyb3' .'I' .'='),base64_decode('' .'bXlzcWx' .'fZm' .'V0Y2' .'hfYXN' .'zb2M='),base64_decode('Z' .'m' .'9w' .'Z' .'W4='),base64_decode('ZndyaX' .'Rl'),base64_decode('ZmNsb3' .'Nl'),base64_decode('Y29w' .'eQ=='),base64_decode('' .'Zmls' .'ZV9leGlzdHM' .'='),base64_decode('ZmlsZXNpemU='),base64_decode('ZmlsZV' .'9' .'wdXRfY29' .'udGVudH' .'M='));
Сохраняям в 1.txt
Создаем файл с кодом таким
Код:
<?
$fp = fopen('1.txt', r);\\имя нашего файла
while(!feof($fp)) {
    $text .= fread($fp, 1024);
}
fclose($fp);
$new = preg_replace_callback("|\\\$GLOBALS\['_1773714188_'\]\[(\d{1,5})\]|", asd, $text);\\сюда вставляем 
echo $new;
function asd($matches) {
    $replace=Array(base64_decode('' .'c3Ry' .'d' .'HI='),base64_decode('c3R' .'ydHI='),base64_decode('c3' .'RydHI' .'='),base64_decode('c3' .'RydG9sb3dlcg=='),base64_decode('' .'aW1hZ' .'2VjcmVhdG' .'V' .'mcm9tanB' .'lZ' .'w=='),base64_decode('Z2V0a' .'W1h' .'Z2Vz' .'a' .'Xpl'),base64_decode('aW1' .'h' .'Z2V' .'jcmV' .'h' .'d' .'GV0' .'c' .'n' .'Vl' .'Y29sb3I='),base64_decode('aW1hZ' .'2' .'V' .'jb3' .'B5' .'cmVzYW' .'1wbGVk'),base64_decode('' .'aW1hZ' .'2Vpbn' .'Rlcm' .'xhY2U='),base64_decode('' .'aW1hZ2VqcGVn'),base64_decode('aW' .'1hZ2VkZXN0cm95'),base64_decode('aW1hZ' .'2' .'Vk' .'ZXN' .'0cm95'),base64_decode('bXl' .'zcWxf' .'cXVl' .'c' .'n' .'k='),base64_decode('bXlzcW' .'x' .'fZXJyb3I='),base64_decode('bXlzcW' .'xf' .'ZmV0Y' .'2hfYXN' .'z' .'b2' .'M='),base64_decode('bXlzcWx' .'fc' .'X' .'Vlcnk='),base64_decode('b' .'XlzcWxfZXJyb3I='),base64_decode('b' .'XlzcWxfZmV' .'0Y2hfYXN' .'zb2M='),base64_decode('ZG' .'F0' .'ZQ=='),base64_decode('ZGF0ZQ=='),base64_decode('bWt' .'kaXI='),base64_decode('bWtkaX' .'I='),base64_decode('bW' .'tkaXI='),base64_decode('Y2htb2Q='),base64_decode('bXlzcW' .'xfcXVlc' .'nk='),base64_decode('bXl' .'zc' .'WxfZXJyb3I='),base64_decode('' .'b' .'XlzcWxfZm' .'V0Y2' .'hfYXN' .'zb2M='),base64_decode('Z' .'m9wZW4='),base64_decode('Zndya' .'XRl'),base64_decode('Z' .'m' .'Nsb3Nl'),base64_decode('bXlz' .'c' .'W' .'xf' .'cXVlcnk='),base64_decode('b' .'X' .'l' .'z' .'c' .'WxfZXJyb3I='),base64_decode('bXlzcWxfZm' .'V0Y' .'2h' .'fYX' .'Nzb2M='),base64_decode('c2h1Zm' .'Z' .'sZQ=='),base64_decode('bX' .'l' .'zcWxfcXVlcnk' .'='),base64_decode('bXlzcWxfZXJyb3I' .'='),base64_decode('bXlzcW' .'xfZm' .'V0Y2hf' .'YXNzb2M' .'='),base64_decode('Y' .'291b' .'nQ='),base64_decode('bXl' .'zcWx' .'f' .'c' .'XVl' .'cn' .'k='),base64_decode('bXlzcWxfZ' .'XJyb3I='),base64_decode('bXlzc' .'Wxf' .'ZmV0Y2hfYXNzb2M='),base64_decode('aW5fYX' .'J' .'yYXk' .'='),base64_decode('' .'c3RyX3J' .'lc' .'GxhY2' .'U='),base64_decode('c3RyX' .'3J' .'l' .'cGxhY2U='),base64_decode('c3R' .'yX' .'3JlcGxhY2' .'U='),base64_decode('c3R' .'y' .'X3Jl' .'cGxh' .'Y2' .'U='),base64_decode('' .'bXlzcW' .'xfcXVlcnk' .'='),base64_decode('b' .'X' .'lzcWx' .'fZ' .'XJyb3' .'I' .'='),base64_decode('' .'bXlzcWx' .'fZm' .'V0Y2' .'hfYXN' .'zb2M='),base64_decode('Z' .'m' .'9w' .'Z' .'W4='),base64_decode('ZndyaX' .'Rl'),base64_decode('ZmNsb3' .'Nl'),base64_decode('Y29w' .'eQ=='),base64_decode('' .'Zmls' .'ZV9leGlzdHM' .'='),base64_decode('ZmlsZXNpemU='),base64_decode('ZmlsZV' .'9' .'wdXRfY29' .'udGVudH' .'M='));
    return $replace[$matches[1]];
}
?>
Выполняю этот скрипт вывордит тоже самое, что и в файле 1.txt
В чем ошибка?
 

Вложения

  • includes.rar
    8,2 KB · Просмотры: 8
Статус
В этой теме нельзя размещать новые ответы.
Назад
Сверху