How to bypass this version 4.4.0:
Open the file DomainController.php, located in:
Code:
..\app\Http\Controllers\
Step 01
Comment or delete those lines from #23 to #79
(Server Verify)
Code:
$api_server = 'license.dasinfomedia.com';
// $whitelist = [
// '192.168.1.62',
// ];
// if (!in_array($domain_name, $whitelist)) {
$fp = @fsockopen($api_server, 80, $errno, $errstr, 2);
if (!$fp) {
$server_rerror = 'Down';
} else {
$server_rerror = "up";
}
if ($server_rerror == "up") {
$url = '
https://license.dasinfomedia.com/admin/api/license/register';
$fields = array(
'pkey' => $licence_key,
'email' => $purchase_email,
'domain' => $domain_name
);
$ch = curl_init();
curl_setopt_array($ch, array(
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => $fields
));
$response = curl_exec($ch);
curl_close($ch);
// Parse the JSON response
$response_data = json_decode($response, true);
$result = $response_data['message'];
if ($result == 'Invalid license') {
return redirect('/domain')->with('message', '1');
die;
} elseif ($result == 'License already registered') {
return redirect('/domain')->with('message', '2');
die;
} elseif ($result == 'Please enter a valid URL') {
return redirect('/domain')->with('message', '3');
die;
} elseif ($result == 'Failed to register license') {
return redirect('/domain')->with('message', '4');
die;
}
} else {
return redirect('/domain')->with('message', '5');
die;
}
// }
Step 02
Open the file instaltionController.php, located in:
Code:
..\app\Http\Controllers\
(Server Verify and Whitelist)
Comment or delete those lines from #44 to #128
Step 03
Open the file CheckDomain.php, located in:
Code:
..\app\Http\Middleware\
Modify the line #33 to:
(remove the comma)
Code:
'localhost'
Comment or delete the line #34
(Whitelist and api licence)
Code:
// 'garagemaster_web.test',
Change the lines from #44 to #45
From:
Code:
$current_domain = $_SERVER['SERVER_NAME'];
$current_domain = preg_replace('/^www\./', '', $current_domain);
To:
Code:
$result = ($current_domain == $registered_domain);
if ($result) {
Comment or delete the lines from #46 to #90
it is okay, the script is bypassed