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 2018-12-21 10:26:59              | 
    |    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 GDw6P; } $database = DB::connection()->getDatabaseName(); if (file_exists($database)) { goto wMGyo; } touch($database); DB::reconnect(Config::get("database.default")); wMGyo: $outputLog->write("Using SqlLite database: " . $database, 1); GDw6P: } } 
 ?>

Did this file decode correctly?

Original Code

<?php
/*   __________________________________________________
    |  Obfuscated by YAK Pro - Php Obfuscator  2.0.1   |
    |              on 2018-12-21 10:26:59              |
    |    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\x69\147\162\x61\164\145", ["\55\55\x66\x6f\162\x63\x65" => true], $outputLog); } catch (Exception $e) { return $this->response($e->getMessage(), "\145\x72\162\x6f\162", $outputLog); } return $this->seed($outputLog); } private function seed($outputLog) { try { Artisan::call("\x64\142\72\163\x65\x65\x64", ["\55\55\x66\157\162\x63\x65" => true], $outputLog); } catch (Exception $e) { return $this->response($e->getMessage(), "\145\162\162\x6f\x72", $outputLog); } return $this->response(trans("\x69\156\163\x74\x61\x6c\154\x65\x72\x5f\155\145\163\x73\x61\x67\x65\x73\x2e\146\151\x6e\141\x6c\x2e\146\x69\x6e\x69\163\150\x65\x64"), "\x73\x75\143\x63\x65\163\x73", $outputLog); } public function seedDemoData() { ini_set("\x6d\x61\170\137\x65\x78\145\x63\x75\164\151\x6f\x6e\137\164\x69\x6d\x65", 1200); $outputLog = new BufferedOutput(); try { Artisan::call("\x69\x6e\x63\x65\x76\151\157\72\144\x65\x6d\157"); } catch (Exception $e) { return $this->response($e->getMessage(), "\x65\162\x72\157\162", $outputLog); } return $this->response(trans("\x69\156\x73\164\x61\x6c\x6c\145\x72\x5f\155\145\163\x73\x61\x67\145\163\x2e\x66\151\156\141\154\56\146\x69\156\x69\163\x68\145\144"), "\x73\x75\143\143\x65\163\x73", $outputLog); } private function response($message, $status = "\x64\141\156\147\x65\162", $outputLog) { return ["\x73\164\x61\x74\x75\163" => $status, "\155\x65\x73\x73\x61\x67\x65" => $message, "\144\x62\x4f\165\x74\160\x75\164\x4c\x6f\x67" => $outputLog->fetch()]; } private function sqlite($outputLog) { if (!DB::connection() instanceof SQLiteConnection) { goto GDw6P; } $database = DB::connection()->getDatabaseName(); if (file_exists($database)) { goto wMGyo; } touch($database); DB::reconnect(Config::get("\x64\x61\x74\x61\142\x61\163\x65\56\144\x65\146\x61\165\154\164")); wMGyo: $outputLog->write("\125\x73\151\x6e\x67\40\x53\161\x6c\114\x69\164\145\x20\x64\x61\x74\141\142\141\x73\145\72\40" . $database, 1); GDw6P: } }

Function Calls

None

Variables

None

Stats

MD5 b6bb2106e162c006cb876cfd9ec51aa7
Eval Count 0
Decode Time 89 ms