Sky's 自留地 - virtualizor
type: channel
link: https://03sec.com/tag/virtualizor/
items: Virtualizor破解

Virtualizor破解
type: item
date: 2018-07-03T02:30:00+08:00
description: license 验证函数的文件路径是：/usr/local/virtualizor/main/functions.phpfunctions.php<?php if( !defined("VIRTUALIZOR") ) { exit( "Hacking Attempt" ); } class ArrayToXML { public function toXML($data, $rootNodeName = "ResultSet", $xml = NULL) { if( ini_get("zend.ze1_compatibility_mode") == 1 ) { ini_set("zend.ze1_compatibility_mode", 0); } if( is_null($xml) ) { $xml = simplexml_load_string("<?xml version='1.0' encoding='utf-8'?><" . $rootNodeName . " />"); } foreach( $data as $key => $value ) { $numeric = false; if( is_numeric($key) ) { $numeric = 1; $key = $rootNodeName; } $key = preg_replace("/[^a-z0-9\\-\\_\\.\\:]/i", "", $key); if( is_array($value) ) { $node = (ArrayToXML::isAssoc($value) || $numeric ? $xml->addChild($key) : $xml); if( $numeric ) { $key = "anon"; } ArrayToXML::toXml($value, $key, $node); } else { $value = htmlentities($value); $xml->addChild($key, $value); } } return $xml->asXML(); } public function toArray($xml) { if( is_string($xml) ) { $xml = new SimpleXMLElement($xml); } $children = $xml->children(); if( !$children ) { return (string) $xml; } $arr = array( ); foreach( $children as $key => $node ) { $node = ArrayToXML::toArray($node); if( $key == "anon" ) { $key = count($arr); } if( isset($arr[$key]) ) { if( !is_array($arr[$key]) || $arr[$key][0] == NULL ) { $arr[$key] = array( $arr[$key] ); } $arr[$key][] = $node; } else { $arr[$key] = $node; } } return $arr; } public function isAssoc($array) { return is_array($array) && 0 !== count(array_diff_key($array, array_keys(array_keys($array)))); } } function microtime_float() { list($usec, $sec) = explode(" ", microtime()); return (double) $usec + (double) $sec; } function datify($timestamp, $today = true, $adjust = true, $format = false) { global $l; global $user; global $globals; if( !empty($adjust) ) { $timestamp = max(0, $timestamp - (@date("Z", @time()) / 3600 - $globals["pgtimezone"]) * 3600); } if( !empty($format) ) { return date($format, $timestamp); } $todaytime = max(0, time() - (@date("Z", @time()) /…