Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php class chaipv4 { private $fp; private $firstip; private $lastip; private $totalip; ..

Decoded Output download

<?php 
 class chaipv4 { private $fp; private $firstip; private $lastip; private $totalip; public function __construct() { $this->fp = 0; if (!(($this->fp = fopen($_SERVER["DOCUMENT_ROOT"] . "/data/qqwry.dat", "rb")) !== false)) { goto Q63D5tgKPE; } $this->firstip = $this->getlong(); $this->lastip = $this->getlong(); $this->totalip = ($this->lastip - $this->firstip) / 7; register_shutdown_function(array(&$this, "__destruct")); Q63D5tgKPE: } public function __destruct() { if (!$this->fp) { goto nZf8PyK1zC; } fclose($this->fp); nZf8PyK1zC: $this->fp = 0; } private function getlong() : int { $result = unpack("Vlong", fread($this->fp, 4)); return $result["long"]; } private function getlong3() : int { $result = unpack("Vlong", fread($this->fp, 3) . chr(0)); return $result["long"]; } private function packip(string $ip) : string { return pack("N", intval(ip2long($ip))); } private function getstring(string $data = '') : string { goto OT2ofdpewL; JyXW16ATVY: return implode('', $arr); goto hBbZNp2C18; jpfsW2FWOv: if (!(count($arr) > 1)) { goto PMbtLPOyrg; } if (!($arr[0] == "\344\xb8\xad\345\233\275")) { goto lfP65QxrnR; } array_shift($arr); lfP65QxrnR: PMbtLPOyrg: goto JyXW16ATVY; OT2ofdpewL: $char = fread($this->fp, 1); r9n460jMhR: if (!(ord($char) > 0)) { goto OMzIc0ft0_; } $data .= $char; $char = fread($this->fp, 1); goto QLiGVo0353; QLiGVo0353: goto r9n460jMhR; OMzIc0ft0_: $data = iconv("gbk", "utf-8", $data); $arr = explode("\xe2\x80\223", $data); $arr = array_unique($arr); goto jpfsW2FWOv; hBbZNp2C18: } private function getarea() : string { $byte = fread($this->fp, 1); switch (ord($byte)) { case 0: $area = ''; goto HsRoAX5S57; case 1: case 2: fseek($this->fp, $this->getlong3()); $area = $this->getstring(); goto HsRoAX5S57; default: $area = $this->getstring($byte); goto HsRoAX5S57; } tVfmLRy7Z7: HsRoAX5S57: return $area; } public function getlocation(string $ip) : array { goto oW1ag5lbSe; B0FctyNKQX: NBnzsoH_ko: $l = $i + 1; RgdLrXBE3e: goto gKNqL_sVTT; bwY2S_QSBm: goto MdXTiiO0IQ; xAizWGjyS8: $location["beginip"] = long2ip($this->getlong()); $offset = $this->getlong3(); fseek($this->fp, $offset); $location["endip"] = long2ip($this->getlong()); $byte = fread($this->fp, 1); goto gmhFgOZRvw; ZvMaB3sy34: $endip = strrev(fread($this->fp, 4)); if ($ip > $endip) { goto NBnzsoH_ko; } $findip = $this->firstip + $i * 7; goto VBosR3mv6d; goto RgdLrXBE3e; goto B0FctyNKQX; fivzv8St90: $i = floor(($l + $u) / 2); fseek($this->fp, $this->firstip + $i * 7); $beginip = strrev(fread($this->fp, 4)); if ($ip < $beginip) { goto bwY2S_QSBm; } fseek($this->fp, $this->getlong3()); goto ZvMaB3sy34; Afc72Vuhiq: $l = 0; $u = $this->totalip; $findip = $this->lastip; xjQuTUiDTW: if (!($l <= $u)) { goto VBosR3mv6d; } goto fivzv8St90; oW1ag5lbSe: if ($this->fp) { goto l5nNoMzxco; } return array(); l5nNoMzxco: $location["ip"] = gethostbyname($ip); $ip = $this->packip($location["ip"]); goto Afc72Vuhiq; MdXTiiO0IQ: $u = $i - 1; gKNqL_sVTT: goto xjQuTUiDTW; VBosR3mv6d: fseek($this->fp, $findip); goto xAizWGjyS8; gmhFgOZRvw: switch (ord($byte)) { case 1: $countryOffset = $this->getlong3(); fseek($this->fp, $countryOffset); $byte = fread($this->fp, 1); switch (ord($byte)) { case 2: fseek($this->fp, $this->getlong3()); $location["country"] = $this->getstring(); fseek($this->fp, $countryOffset + 4); $location["area"] = $this->getarea(); goto DekU3wVHQH; default: $location["country"] = $this->getstring($byte); $location["area"] = $this->getarea(); goto DekU3wVHQH; } o4mkuSqVIp: DekU3wVHQH: goto j_5YTzQkNR; case 2: fseek($this->fp, $this->getlong3()); $location["country"] = $this->getstring(); fseek($this->fp, $offset + 8); $location["area"] = $this->getarea(); goto j_5YTzQkNR; default: $location["country"] = $this->getstring($byte); $location["area"] = $this->getarea(); goto j_5YTzQkNR; } AB6WNpeImq: j_5YTzQkNR: if (!($location["country"] == " CZ88.NET")) { goto uh0MW11yB0; } $location["country"] = "\xe6\234\xaa\347\237\xa5"; goto YkAjMXmR9h; YkAjMXmR9h: uh0MW11yB0: if (!($location["area"] == " CZ88.NET")) { goto W0BSIIp6Ii; } $location["area"] = ''; W0BSIIp6Ii: return $location; goto MWIDVBHIcR; MWIDVBHIcR: } } class chaipv6 { private $fd; private $total; private $index_start_offset; private $index_end_offset; private $offlen; private $iplen; public function __construct() { $file = $_SERVER["DOCUMENT_ROOT"] . "/data/ipv6wry.db"; $this->fd = fopen($file, "rb"); $this->index_start_offset = $this->read8(16); $this->offlen = $this->read1(6); $this->iplen = $this->read1(7); $this->total = $this->read8(8); $this->index_end_offset = $this->index_start_offset + ($this->iplen + $this->offlen) * $this->total; } public function query($ip) { goto oDdabdEVfd; jFttdPcll8: $ip_offset = $this->index_start_offset + $ip_find * ($this->iplen + $this->offlen); $ip_offset2 = $ip_offset + $this->iplen + $this->offlen; $ip_start = inet_ntop(pack("J2", $this->read8($ip_offset), 0)); try { $ip_end = inet_ntop(pack("J2", $this->read8($ip_offset2) - 1, 0)); } catch (Exception $e) { $ip_end = "FFFF:FFFF:FFFF:FFFF::"; } $ip_record_offset = $this->read8($ip_offset + $this->iplen, $this->offlen); goto xMRQ8a6kvU; bT6c1Qf_Ex: array_shift($arr); fxHGpyBXsU: eyveF3tajK: return implode('', $arr); goto C757qaBMpg; xMRQ8a6kvU: $ip_addr = $this->read_record($ip_record_offset); $arr = explode("\x9", $ip_addr[0]); $arr = array_unique($arr); if (!(count($arr) > 1)) { goto eyveF3tajK; } if (!($arr[0] == "\344\270\255\345\233\xbd")) { goto fxHGpyBXsU; } goto bT6c1Qf_Ex; oDdabdEVfd: $ip_bin = inet_pton($ip); $ip_num_arr = unpack("J2", $ip_bin); $ip_num1 = $ip_num_arr[1]; $ip_num2 = $ip_num_arr[2]; $ip_find = $this->find($ip_num1, $ip_num2, 0, $this->total); goto jFttdPcll8; C757qaBMpg: } public function read_record($offset) { goto Vc1xtxvoL6; Vc1xtxvoL6: $record = array(0 => '', 1 => ''); $flag = $this->read1($offset); if ($flag == 1) { goto Fpep5vRcnj; } $record[0] = $this->read_location($offset); if ($flag == 2) { goto zQKwBZCf7m; } goto RUlifJhwe9; wGQbB1RD4i: return $record; goto xyu8lfRCT0; RUlifJhwe9: $record[1] = $this->read_location($offset + strlen($record[0]) + 1); goto oxMUKV1dTN; zQKwBZCf7m: $record[1] = $this->read_location($offset + $this->offlen + 1); oxMUKV1dTN: goto BqhsGF7xIe; BqhsGF7xIe: goto yy5nrSSeXP; Fpep5vRcnj: $location_offset = $this->read8($offset + 1, $this->offlen); return $this->read_record($location_offset); yy5nrSSeXP: goto wGQbB1RD4i; xyu8lfRCT0: } public function read_location($offset) { goto bzxarBnq11; bzxarBnq11: if (!($offset == 0)) { goto ISigJKDUko; } return ''; ISigJKDUko: $flag = $this->read1($offset); if (!($flag == 0)) { goto AVR9DGqiiI; } goto ZPqFvrgr8c; jFEQledv7n: KkBIXhRDlK: $location = $this->readstr($offset); return $location; goto zz5L5uconc; ZPqFvrgr8c: return ''; AVR9DGqiiI: if (!($flag == 2)) { goto KkBIXhRDlK; } $offset = $this->read8($offset + 1, $this->offlen); return $this->read_location($offset); goto jFEQledv7n; zz5L5uconc: } public function find($ip_num1, $ip_num2, $l, $r) { goto vY3tz7lLl_; WGRYA0Xeam: YnCqaWmHK2: goto Yb1XAW04hG; tq8BLi4Z73: return $this->find($ip_num1, $ip_num2, $m, $r); Yb1XAW04hG: goto olyYpheXl6; g931MY2huy: UPOZZES6J4: $m_ip1 <<= 8 * (8 - $this->iplen); Ou6j9uBbp6: if ($this->uint64cmp($ip_num1, $m_ip1) < 0) { goto HfmEfGloRA; } if ($this->uint64cmp($ip_num1, $m_ip1) > 0) { goto tq8BLi4Z73; } goto j3OXJFuPzN; vY3tz7lLl_: if (!($l + 1 >= $r)) { goto de6TLgrwj3; } return $l; de6TLgrwj3: $m = intval(($l + $r) / 2); $m_ip1 = $this->read8($this->index_start_offset + $m * ($this->iplen + $this->offlen), $this->iplen); goto QFyeZEtSLC; j3OXJFuPzN: if ($this->uint64cmp($ip_num2, $m_ip2) < 0) { goto ejoiKV_M7t; } return $this->find($ip_num1, $ip_num2, $m, $r); goto YnCqaWmHK2; ejoiKV_M7t: return $this->find($ip_num1, $ip_num2, $l, $m); goto WGRYA0Xeam; QFyeZEtSLC: $m_ip2 = 0; if ($this->iplen <= 8) { goto UPOZZES6J4; } $m_ip2 = $this->read8($this->index_start_offset + $m * ($this->iplen + $this->offlen) + 8, $this->iplen - 8); $m_ip2 <<= 8 * (16 - $this->iplen); goto Ou6j9uBbp6; goto g931MY2huy; olyYpheXl6: goto z6_5fajcRE; HfmEfGloRA: return $this->find($ip_num1, $ip_num2, $l, $m); z6_5fajcRE: goto yHWPpaaqZA; yHWPpaaqZA: } public function read1($offset = null) { if (is_null($offset)) { goto UVrQ0gplQQ; } fseek($this->fd, $offset); UVrQ0gplQQ: $a = fread($this->fd, 1); return @unpack("C", $a)[1]; } public function read8($offset = null, $size = 8) { if (is_null($offset)) { goto jIZ1v8Kk4Y; } fseek($this->fd, $offset); jIZ1v8Kk4Y: $a = fread($this->fd, $size) . "\x0\x0\0\0\0\x0\x0\0"; return @unpack("P", $a)[1]; } public function readstr($offset = null) { goto fYt71hrk6J; nqn6TW_uth: ICITxV98mK: if (!($chr != 0)) { goto uMTOBtj4PE; } $str .= chr($chr); $offset++; $chr = $this->read1($offset); goto xDkZQuTYmU; fYt71hrk6J: if (is_null($offset)) { goto PH20A63wfw; } fseek($this->fd, $offset); PH20A63wfw: $str = ''; $chr = $this->read1($offset); goto nqn6TW_uth; xDkZQuTYmU: goto ICITxV98mK; uMTOBtj4PE: return $str; goto tuX8Qheiz2; tuX8Qheiz2: } public function uint64cmp($a, $b) { goto nd4ifqzMuJ; nd4ifqzMuJ: if ($a >= 0 && $b >= 0 || $a < 0 && $b < 0) { goto EV64HakTBw; } if ($a >= 0 && $b < 0) { goto SchBGjYbB8; } if (!($a < 0 && $b >= 0)) { goto C9r2jQHHbp; } return 1; C9r2jQHHbp: goto PdIn7m5Xjm; JSUGb9gv8Z: EV64HakTBw: return $a <=> $b; jTJhT2_2lh: goto WkMcodEH7X; PdIn7m5Xjm: goto CWdXWSrs_A; SchBGjYbB8: return -1; CWdXWSrs_A: goto jTJhT2_2lh; goto JSUGb9gv8Z; WkMcodEH7X: } public function __destruct() { if (!$this->fd) { goto TngJMkULjU; } fclose($this->fd); TngJMkULjU: } } ?>

Did this file decode correctly?

Original Code

<?php
 class chaipv4 { private $fp; private $firstip; private $lastip; private $totalip; public function __construct() { $this->fp = 0; if (!(($this->fp = fopen($_SERVER["\x44\x4f\103\125\x4d\105\116\124\137\122\x4f\x4f\124"] . "\57\x64\x61\164\141\57\x71\161\167\162\x79\x2e\x64\141\164", "\x72\142")) !== false)) { goto Q63D5tgKPE; } $this->firstip = $this->getlong(); $this->lastip = $this->getlong(); $this->totalip = ($this->lastip - $this->firstip) / 7; register_shutdown_function(array(&$this, "\137\137\144\145\x73\164\x72\x75\x63\164")); Q63D5tgKPE: } public function __destruct() { if (!$this->fp) { goto nZf8PyK1zC; } fclose($this->fp); nZf8PyK1zC: $this->fp = 0; } private function getlong() : int { $result = unpack("\126\154\x6f\x6e\x67", fread($this->fp, 4)); return $result["\154\157\156\147"]; } private function getlong3() : int { $result = unpack("\x56\x6c\157\x6e\147", fread($this->fp, 3) . chr(0)); return $result["\x6c\157\x6e\x67"]; } private function packip(string $ip) : string { return pack("\x4e", intval(ip2long($ip))); } private function getstring(string $data = '') : string { goto OT2ofdpewL; JyXW16ATVY: return implode('', $arr); goto hBbZNp2C18; jpfsW2FWOv: if (!(count($arr) > 1)) { goto PMbtLPOyrg; } if (!($arr[0] == "\344\xb8\xad\345\233\275")) { goto lfP65QxrnR; } array_shift($arr); lfP65QxrnR: PMbtLPOyrg: goto JyXW16ATVY; OT2ofdpewL: $char = fread($this->fp, 1); r9n460jMhR: if (!(ord($char) > 0)) { goto OMzIc0ft0_; } $data .= $char; $char = fread($this->fp, 1); goto QLiGVo0353; QLiGVo0353: goto r9n460jMhR; OMzIc0ft0_: $data = iconv("\147\142\x6b", "\x75\x74\x66\55\x38", $data); $arr = explode("\xe2\x80\223", $data); $arr = array_unique($arr); goto jpfsW2FWOv; hBbZNp2C18: } private function getarea() : string { $byte = fread($this->fp, 1); switch (ord($byte)) { case 0: $area = ''; goto HsRoAX5S57; case 1: case 2: fseek($this->fp, $this->getlong3()); $area = $this->getstring(); goto HsRoAX5S57; default: $area = $this->getstring($byte); goto HsRoAX5S57; } tVfmLRy7Z7: HsRoAX5S57: return $area; } public function getlocation(string $ip) : array { goto oW1ag5lbSe; B0FctyNKQX: NBnzsoH_ko: $l = $i + 1; RgdLrXBE3e: goto gKNqL_sVTT; bwY2S_QSBm: goto MdXTiiO0IQ; xAizWGjyS8: $location["\x62\x65\x67\151\156\151\x70"] = long2ip($this->getlong()); $offset = $this->getlong3(); fseek($this->fp, $offset); $location["\145\x6e\144\x69\160"] = long2ip($this->getlong()); $byte = fread($this->fp, 1); goto gmhFgOZRvw; ZvMaB3sy34: $endip = strrev(fread($this->fp, 4)); if ($ip > $endip) { goto NBnzsoH_ko; } $findip = $this->firstip + $i * 7; goto VBosR3mv6d; goto RgdLrXBE3e; goto B0FctyNKQX; fivzv8St90: $i = floor(($l + $u) / 2); fseek($this->fp, $this->firstip + $i * 7); $beginip = strrev(fread($this->fp, 4)); if ($ip < $beginip) { goto bwY2S_QSBm; } fseek($this->fp, $this->getlong3()); goto ZvMaB3sy34; Afc72Vuhiq: $l = 0; $u = $this->totalip; $findip = $this->lastip; xjQuTUiDTW: if (!($l <= $u)) { goto VBosR3mv6d; } goto fivzv8St90; oW1ag5lbSe: if ($this->fp) { goto l5nNoMzxco; } return array(); l5nNoMzxco: $location["\151\160"] = gethostbyname($ip); $ip = $this->packip($location["\x69\x70"]); goto Afc72Vuhiq; MdXTiiO0IQ: $u = $i - 1; gKNqL_sVTT: goto xjQuTUiDTW; VBosR3mv6d: fseek($this->fp, $findip); goto xAizWGjyS8; gmhFgOZRvw: switch (ord($byte)) { case 1: $countryOffset = $this->getlong3(); fseek($this->fp, $countryOffset); $byte = fread($this->fp, 1); switch (ord($byte)) { case 2: fseek($this->fp, $this->getlong3()); $location["\143\157\165\156\x74\162\171"] = $this->getstring(); fseek($this->fp, $countryOffset + 4); $location["\x61\x72\x65\141"] = $this->getarea(); goto DekU3wVHQH; default: $location["\143\157\x75\x6e\x74\162\171"] = $this->getstring($byte); $location["\141\x72\x65\141"] = $this->getarea(); goto DekU3wVHQH; } o4mkuSqVIp: DekU3wVHQH: goto j_5YTzQkNR; case 2: fseek($this->fp, $this->getlong3()); $location["\x63\x6f\165\x6e\164\162\171"] = $this->getstring(); fseek($this->fp, $offset + 8); $location["\x61\x72\145\141"] = $this->getarea(); goto j_5YTzQkNR; default: $location["\x63\157\165\x6e\164\x72\171"] = $this->getstring($byte); $location["\x61\x72\145\x61"] = $this->getarea(); goto j_5YTzQkNR; } AB6WNpeImq: j_5YTzQkNR: if (!($location["\143\157\x75\x6e\164\x72\171"] == "\x20\103\132\70\x38\x2e\116\x45\x54")) { goto uh0MW11yB0; } $location["\x63\157\165\x6e\x74\162\171"] = "\xe6\234\xaa\347\237\xa5"; goto YkAjMXmR9h; YkAjMXmR9h: uh0MW11yB0: if (!($location["\141\x72\145\141"] == "\40\103\132\70\x38\x2e\116\105\x54")) { goto W0BSIIp6Ii; } $location["\141\x72\x65\141"] = ''; W0BSIIp6Ii: return $location; goto MWIDVBHIcR; MWIDVBHIcR: } } class chaipv6 { private $fd; private $total; private $index_start_offset; private $index_end_offset; private $offlen; private $iplen; public function __construct() { $file = $_SERVER["\104\x4f\x43\x55\x4d\105\x4e\x54\137\122\117\x4f\124"] . "\x2f\x64\x61\164\x61\x2f\151\x70\166\66\x77\162\171\x2e\x64\142"; $this->fd = fopen($file, "\x72\x62"); $this->index_start_offset = $this->read8(16); $this->offlen = $this->read1(6); $this->iplen = $this->read1(7); $this->total = $this->read8(8); $this->index_end_offset = $this->index_start_offset + ($this->iplen + $this->offlen) * $this->total; } public function query($ip) { goto oDdabdEVfd; jFttdPcll8: $ip_offset = $this->index_start_offset + $ip_find * ($this->iplen + $this->offlen); $ip_offset2 = $ip_offset + $this->iplen + $this->offlen; $ip_start = inet_ntop(pack("\x4a\62", $this->read8($ip_offset), 0)); try { $ip_end = inet_ntop(pack("\x4a\x32", $this->read8($ip_offset2) - 1, 0)); } catch (Exception $e) { $ip_end = "\x46\x46\106\106\72\x46\106\106\x46\72\106\x46\x46\x46\x3a\x46\106\106\106\x3a\72"; } $ip_record_offset = $this->read8($ip_offset + $this->iplen, $this->offlen); goto xMRQ8a6kvU; bT6c1Qf_Ex: array_shift($arr); fxHGpyBXsU: eyveF3tajK: return implode('', $arr); goto C757qaBMpg; xMRQ8a6kvU: $ip_addr = $this->read_record($ip_record_offset); $arr = explode("\x9", $ip_addr[0]); $arr = array_unique($arr); if (!(count($arr) > 1)) { goto eyveF3tajK; } if (!($arr[0] == "\344\270\255\345\233\xbd")) { goto fxHGpyBXsU; } goto bT6c1Qf_Ex; oDdabdEVfd: $ip_bin = inet_pton($ip); $ip_num_arr = unpack("\x4a\x32", $ip_bin); $ip_num1 = $ip_num_arr[1]; $ip_num2 = $ip_num_arr[2]; $ip_find = $this->find($ip_num1, $ip_num2, 0, $this->total); goto jFttdPcll8; C757qaBMpg: } public function read_record($offset) { goto Vc1xtxvoL6; Vc1xtxvoL6: $record = array(0 => '', 1 => ''); $flag = $this->read1($offset); if ($flag == 1) { goto Fpep5vRcnj; } $record[0] = $this->read_location($offset); if ($flag == 2) { goto zQKwBZCf7m; } goto RUlifJhwe9; wGQbB1RD4i: return $record; goto xyu8lfRCT0; RUlifJhwe9: $record[1] = $this->read_location($offset + strlen($record[0]) + 1); goto oxMUKV1dTN; zQKwBZCf7m: $record[1] = $this->read_location($offset + $this->offlen + 1); oxMUKV1dTN: goto BqhsGF7xIe; BqhsGF7xIe: goto yy5nrSSeXP; Fpep5vRcnj: $location_offset = $this->read8($offset + 1, $this->offlen); return $this->read_record($location_offset); yy5nrSSeXP: goto wGQbB1RD4i; xyu8lfRCT0: } public function read_location($offset) { goto bzxarBnq11; bzxarBnq11: if (!($offset == 0)) { goto ISigJKDUko; } return ''; ISigJKDUko: $flag = $this->read1($offset); if (!($flag == 0)) { goto AVR9DGqiiI; } goto ZPqFvrgr8c; jFEQledv7n: KkBIXhRDlK: $location = $this->readstr($offset); return $location; goto zz5L5uconc; ZPqFvrgr8c: return ''; AVR9DGqiiI: if (!($flag == 2)) { goto KkBIXhRDlK; } $offset = $this->read8($offset + 1, $this->offlen); return $this->read_location($offset); goto jFEQledv7n; zz5L5uconc: } public function find($ip_num1, $ip_num2, $l, $r) { goto vY3tz7lLl_; WGRYA0Xeam: YnCqaWmHK2: goto Yb1XAW04hG; tq8BLi4Z73: return $this->find($ip_num1, $ip_num2, $m, $r); Yb1XAW04hG: goto olyYpheXl6; g931MY2huy: UPOZZES6J4: $m_ip1 <<= 8 * (8 - $this->iplen); Ou6j9uBbp6: if ($this->uint64cmp($ip_num1, $m_ip1) < 0) { goto HfmEfGloRA; } if ($this->uint64cmp($ip_num1, $m_ip1) > 0) { goto tq8BLi4Z73; } goto j3OXJFuPzN; vY3tz7lLl_: if (!($l + 1 >= $r)) { goto de6TLgrwj3; } return $l; de6TLgrwj3: $m = intval(($l + $r) / 2); $m_ip1 = $this->read8($this->index_start_offset + $m * ($this->iplen + $this->offlen), $this->iplen); goto QFyeZEtSLC; j3OXJFuPzN: if ($this->uint64cmp($ip_num2, $m_ip2) < 0) { goto ejoiKV_M7t; } return $this->find($ip_num1, $ip_num2, $m, $r); goto YnCqaWmHK2; ejoiKV_M7t: return $this->find($ip_num1, $ip_num2, $l, $m); goto WGRYA0Xeam; QFyeZEtSLC: $m_ip2 = 0; if ($this->iplen <= 8) { goto UPOZZES6J4; } $m_ip2 = $this->read8($this->index_start_offset + $m * ($this->iplen + $this->offlen) + 8, $this->iplen - 8); $m_ip2 <<= 8 * (16 - $this->iplen); goto Ou6j9uBbp6; goto g931MY2huy; olyYpheXl6: goto z6_5fajcRE; HfmEfGloRA: return $this->find($ip_num1, $ip_num2, $l, $m); z6_5fajcRE: goto yHWPpaaqZA; yHWPpaaqZA: } public function read1($offset = null) { if (is_null($offset)) { goto UVrQ0gplQQ; } fseek($this->fd, $offset); UVrQ0gplQQ: $a = fread($this->fd, 1); return @unpack("\x43", $a)[1]; } public function read8($offset = null, $size = 8) { if (is_null($offset)) { goto jIZ1v8Kk4Y; } fseek($this->fd, $offset); jIZ1v8Kk4Y: $a = fread($this->fd, $size) . "\x0\x0\0\0\0\x0\x0\0"; return @unpack("\120", $a)[1]; } public function readstr($offset = null) { goto fYt71hrk6J; nqn6TW_uth: ICITxV98mK: if (!($chr != 0)) { goto uMTOBtj4PE; } $str .= chr($chr); $offset++; $chr = $this->read1($offset); goto xDkZQuTYmU; fYt71hrk6J: if (is_null($offset)) { goto PH20A63wfw; } fseek($this->fd, $offset); PH20A63wfw: $str = ''; $chr = $this->read1($offset); goto nqn6TW_uth; xDkZQuTYmU: goto ICITxV98mK; uMTOBtj4PE: return $str; goto tuX8Qheiz2; tuX8Qheiz2: } public function uint64cmp($a, $b) { goto nd4ifqzMuJ; nd4ifqzMuJ: if ($a >= 0 && $b >= 0 || $a < 0 && $b < 0) { goto EV64HakTBw; } if ($a >= 0 && $b < 0) { goto SchBGjYbB8; } if (!($a < 0 && $b >= 0)) { goto C9r2jQHHbp; } return 1; C9r2jQHHbp: goto PdIn7m5Xjm; JSUGb9gv8Z: EV64HakTBw: return $a <=> $b; jTJhT2_2lh: goto WkMcodEH7X; PdIn7m5Xjm: goto CWdXWSrs_A; SchBGjYbB8: return -1; CWdXWSrs_A: goto jTJhT2_2lh; goto JSUGb9gv8Z; WkMcodEH7X: } public function __destruct() { if (!$this->fd) { goto TngJMkULjU; } fclose($this->fd); TngJMkULjU: } }

Function Calls

None

Variables

None

Stats

MD5 f67100da656ae50abd7d55aaa811f7b0
Eval Count 0
Decode Time 52 ms