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 :
index4.php
<? ini_set('memory_limit', '512M'); $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; } $gid="15777"; for ($city=15;$city<26;$city++) { $s_path="http://postcode.in.ua/ua/codes/region/$city/"; $s_path_ru="http://postcode.in.ua/ru/codes/region/$city/"; $contents = file_get_contents($s_path); $contents_ru = file_get_contents($s_path_ru); preg_match("'<a href=\"http://postcode.in.ua/ua/codes/region/$city\" class=\"text_obl_link\">(.*?)</a>'",$contents,$obl_ua); preg_match("'<a href=\"http://postcode.in.ua/ru/codes/region/$city\" class=\"text_obl_link\">(.*?)</a>'",$contents_ru,$obl_ru); $sql="insert into regions_zip (gid,name_ua,name_ru,zipcode,rid) values ($gid,'".addslashes($obl_ua[1])."','".addslashes($obl_ru[1])."',0,0)"; echo($sql."<br>"); //$gid=mysql_insert_id(); $gid1=$gid; $gid++; preg_match_all("'<a href=\"http://postcode.in.ua/ua/codes/region/$city/(.*)\" class=\"text_tab_1\">(.*)</a>'",$contents,$regs_ua); preg_match_all("'<a href=\"http://postcode.in.ua/ru/codes/region/$city/(.*)\" class=\"text_tab_1\">(.*)</a>'",$contents_ru,$regs_ru); for ($k=0;$k<count($regs_ua[1]);$k++) { $sql="insert into regions_zip (gid,name_ua,name_ru,zipcode,rid) values ($gid,'".addslashes($regs_ua[2][$k])."','".addslashes($regs_ru[2][$k])."',0,$gid1)"; echo($sql."<br>"); $gid2=$gid; $gid++; $contents2 = file_get_contents($s_path.$regs_ua[1][$k]); $contents2_ru = file_get_contents($s_path_ru.$regs_ua[1][$k]); preg_match_all("'<a href=\"http://postcode.in.ua/ua/codes/city/(.*)\" class=\"text_tab_1\">(.*?)</td>'",$contents2,$regs2_ua); preg_match_all("'<a href=\"http://postcode.in.ua/ru/codes/city/(.*)\" class=\"text_tab_1\">(.*?)</td>'",$contents2_ru,$regs2_ru); for ($j=0;$j<count($regs2_ua[1]);$j++) { $contents3 = file_get_contents("http://postcode.in.ua/ru/codes/city/".$regs2_ua[1][$j]); preg_match_all("'image_c.php\?id=(.*?)\"'",$contents3,$indexes); for($m=0;$m<count($indexes[1]);$m++) $indexes[1][$m]=decode($indexes[1][$m]); $sql="insert into regions_zip (gid,name_ua,name_ru,zipcode,rid) values ($gid,'".addslashes($regs2_ua[2][$j])."','".addslashes($regs2_ru[2][$j])."','".implode(",",array_unique($indexes[1]))."',$gid2)"; $gid++; echo($sql."<br>"); } } } ?>