|  | 
 
| Hiện tại có khá nhiều website đang sử dụng mã nguồn wowonder ( phiên bản mới nhất 2.2.2) , ví dụ như : biztime, ola... Cũng từ đó có nhiều nơi chia sẻ mã nguồn này, đã được nulled và chèn các mã quảng cáo. Hôm nay mình sẽ hướng dẫn cách bypass purchase code của wowonder.
 1. Tải một bản fresh mới nhất của mã nguồn: codecanyon-13785302-wowonder-the-ultimate-php-social-network-platform-2.2.2.zip
 2. Thực hiện gỡ bỏ toàn bộ phần kiểm tra purchase code.
 Tác động tới 2 files: install/index.php và requests.php
 + Sửa file install/index.php:
 Bước 1: Xóa bỏ từ dòng 9-40
 
 Bước 2: Sau khi xóa 9-40, thì xóa tiếp dòng 35-42 của file install/index.php ( vừa thực hiện ở bước 1 )Sao chép mãfunction check_($check) {
$siteurl = urlencode(getBaseUrl());
$arrContextOptions = array(
"ssl" => array(
"verify_peer" => false,
"verify_peer_name" => false
)
);
$file = file_get_contents('http://www.wowonder.com/purchase.php?code=' . $check . '&url=' . 
$siteurl, false, stream_context_create($arrContextOptions));
if ($file) {
$check = json_decode($file, true);
} else {
$check = array('status' => 'SUCCESS', 'url' => $siteurl, 'code' => $check);
}
return $check;
}
function check_success($check) {
$siteurl = urlencode(getBaseUrl());
$arrContextOptions = array(
"ssl" => array(
"verify_peer" => false,
"verify_peer_name" => false
)
);
$file = file_get_contents('http://www.wowonder.com/purchase.php?code=' . $check .     '&success=true&url=' . $siteurl, false, stream_context_create($arrContextOptions));
if ($file) {
$check = json_decode($file, true);
} else {
$check = array('status' => 'SUCCESS', 'url' => $siteurl, 'code' => $check);
}
return $check;
}
 Thêm vào trước dòng:Sao chép mã$p = check_(trim($_POST['purshase_code']));
if (isset($p['status'])) {
if ($p['status'] == 'ERROR') {
$ServerErrors[] = $p['ERROR_NAME'];
}
} else {
$ServerErrors[] = 'Failed to connect to server, please try again later, or contact us.';
}
 Sao chép mãif (empty($ServerErrors)) {
giá trị sau:
 
 Rồi thay
 
 Sao chép mãif (empty($ServerErrors)) {
bằng dòng:
 
 Bước 3: Sửa tiếp file install/index.php sau khi đã save xong bước 2. Xóa bỏ dòng 91-96
 
 Sao chép mã$p2 = check_success(trim($_POST['purshase_code']));
if(isset($p2['status'])) {
if ($p2['status'] == 'SUCCESS') {
$can = 1;
}
}
Thêm vào trước dòng 91:
 
 giá trị:
 
 Lưu lại file install/index.php.
 2. Sửa file requests.php
 Sửa các dòng 2913-2915:
 
 Sao chép mã$data['android_status'] = 0;
$data['windows_status'] = 0;
$data['android_native_status'] = 0;
Biến 0 thành 1
 
 Sao chép mã$data['android_status'] = 1;
$data['windows_status'] = 1;
$data['android_native_status'] = 1;
Rồi xóa các dòng từ 3957-4012.
 Lưu lại files.
 3. Với các bạn chỉ download được bản NULLED:
 Trong file requests.php xóa bỏ toàn bộ các dòng: 2916-2971
 
 * Bài hướng dẫn này là kết quả sau khi đã so sánh mã nguồn NULLED và bản Fresh từ codecayon bằng ultra compare.
 * Thank to: reishi & rxgliitch & CRIMSON501
 
 
 
 | 
 |