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 /* __________________________________________________ | Obfuscated by YAK P..

Decoded Output download

<?php 
/*   __________________________________________________ 
    |  Obfuscated by YAK Pro - Php Obfuscator  2.0.1   | 
    |              on 2020-01-04 16:58:11              | 
    |    GitHub: https://github.com/pk-fr/yakpro-po    | 
    |__________________________________________________| 
*/ 
/* 
* Copyright (C) Incevio Systems, Inc - All Rights Reserved 
* Unauthorized copying of this file, via any medium is strictly prohibited 
* Proprietary and confidential 
* Written by Munna Khan <[email protected]>, September 2018 
*/ 
 namespace App\Http\Controllers\Installer\Helpers; use Exception; use Illuminate\Database\SQLiteConnection; use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\Config; use Illuminate\Support\Facades\DB; use Symfony\Component\Console\Output\BufferedOutput; class DatabaseManager { public function migrateAndSeed() { $outputLog = new BufferedOutput(); $this->sqlite($outputLog); return $this->migrate($outputLog); } private function migrate($outputLog) { try { Artisan::call("migrate", ["--force" => true], $outputLog); } catch (Exception $e) { return $this->response($e->getMessage(), "error", $outputLog); } return $this->seed($outputLog); } private function seed($outputLog) { try { Artisan::call("db:seed", ["--force" => true], $outputLog); } catch (Exception $e) { return $this->response($e->getMessage(), "error", $outputLog); } return $this->response(trans("installer_messages.final.finished"), "success", $outputLog); } public function seedDemoData() { ini_set("max_execution_time", 1200); $outputLog = new BufferedOutput(); try { Artisan::call("incevio:demo"); } catch (Exception $e) { return $this->response($e->getMessage(), "error", $outputLog); } return $this->response(trans("installer_messages.final.finished"), "success", $outputLog); } private function response($message, $status = "danger", $outputLog) { return ["status" => $status, "message" => $message, "dbOutputLog" => $outputLog->fetch()]; } private function sqlite($outputLog) { if (!DB::connection() instanceof SQLiteConnection) { goto T1dLw; } $database = DB::connection()->getDatabaseName(); if (file_exists($database)) { goto mo7fw; } touch($database); DB::reconnect(Config::get("database.default")); mo7fw: $outputLog->write("Using SqlLite database: " . $database, 1); T1dLw: } } 
 ?>

Did this file decode correctly?

Original Code

<?php
/*   __________________________________________________
    |  Obfuscated by YAK Pro - Php Obfuscator  2.0.1   |
    |              on 2020-01-04 16:58:11              |
    |    GitHub: https://github.com/pk-fr/yakpro-po    |
    |__________________________________________________|
*/
/*
* Copyright (C) Incevio Systems, Inc - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* Written by Munna Khan <[email protected]>, September 2018
*/
 namespace App\Http\Controllers\Installer\Helpers; use Exception; use Illuminate\Database\SQLiteConnection; use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\Config; use Illuminate\Support\Facades\DB; use Symfony\Component\Console\Output\BufferedOutput; class DatabaseManager { public function migrateAndSeed() { $outputLog = new BufferedOutput(); $this->sqlite($outputLog); return $this->migrate($outputLog); } private function migrate($outputLog) { try { Artisan::call("\x6d\151\147\162\x61\x74\145", ["\55\x2d\x66\x6f\x72\x63\145" => true], $outputLog); } catch (Exception $e) { return $this->response($e->getMessage(), "\x65\x72\x72\157\x72", $outputLog); } return $this->seed($outputLog); } private function seed($outputLog) { try { Artisan::call("\x64\x62\x3a\x73\x65\x65\x64", ["\55\x2d\x66\157\x72\x63\145" => true], $outputLog); } catch (Exception $e) { return $this->response($e->getMessage(), "\145\x72\x72\x6f\x72", $outputLog); } return $this->response(trans("\x69\x6e\163\x74\141\154\x6c\145\x72\x5f\155\x65\163\163\x61\x67\x65\163\56\x66\151\156\141\154\x2e\146\151\x6e\x69\163\150\x65\144"), "\163\165\143\x63\x65\x73\x73", $outputLog); } public function seedDemoData() { ini_set("\155\x61\x78\137\145\x78\145\x63\165\164\151\x6f\156\137\x74\x69\155\x65", 1200); $outputLog = new BufferedOutput(); try { Artisan::call("\x69\156\143\145\166\151\x6f\72\144\145\155\157"); } catch (Exception $e) { return $this->response($e->getMessage(), "\x65\x72\x72\x6f\x72", $outputLog); } return $this->response(trans("\151\156\163\x74\x61\154\x6c\x65\162\137\x6d\145\163\x73\141\147\x65\x73\x2e\146\x69\x6e\141\154\56\146\151\156\x69\x73\150\x65\144"), "\163\165\143\x63\145\163\x73", $outputLog); } private function response($message, $status = "\x64\141\156\147\145\162", $outputLog) { return ["\163\x74\141\x74\x75\x73" => $status, "\x6d\x65\x73\x73\x61\x67\145" => $message, "\144\x62\x4f\165\164\160\165\x74\114\157\x67" => $outputLog->fetch()]; } private function sqlite($outputLog) { if (!DB::connection() instanceof SQLiteConnection) { goto T1dLw; } $database = DB::connection()->getDatabaseName(); if (file_exists($database)) { goto mo7fw; } touch($database); DB::reconnect(Config::get("\144\x61\164\141\x62\141\x73\x65\56\x64\145\x66\141\165\154\x74")); mo7fw: $outputLog->write("\125\x73\151\156\147\x20\123\x71\x6c\114\151\x74\145\40\144\x61\x74\x61\x62\x61\163\145\72\x20" . $database, 1); T1dLw: } }

Function Calls

None

Variables

None

Stats

MD5 e3239a2f2977010b97fcf5b3bd26d1ff
Eval Count 0
Decode Time 79 ms