Hello There, Guest! Login Register
Logo
Dismiss this notice
MaDLeeTs is not responsible for any attacks that are carried out on networks, websites or servers.
MaDLeeTs staff members cannot be held responsible.
All information on this forum is for educational purposes only.


Laravel Checker

  • 0 Vote(s) - 0 Average


02-14-2018, 01:38 PM #1
8thbit Offline Programmers Of The Mad House ******
Mad Coder's
Posts:103 Threads:22 Joined:Jan 2013 Reputation: 3
Mood: None
hey guys , 
if you want to work with Laravel Framework , you will likely need this 
Code:
<?php
/*
gist.github.com/
 _  __                         _     _    
| |/ /                        | |   | |    
| ' / ___   ___  _ __ ___  ___| |__ | |__  
|  < / _ \ / _ \| '__/ _ \/ __| '_ \| '_ \
| . \ (_) | (_) | | | (_) \__ \ | | | | | |
|_|\_\___/ \___/|_|  \___/|___/_| |_|_| |_|
                                           
                                       
*/
function msgBox($msg){
   echo($msg . "\n") ;
}
msgBox("[+] Brought you by 8ThBiT :)");
if(!file_exists('artisan'))
{
 msgBox("[-] Copy this file beside your artisan");
 exit(0);
}
if (version_compare(phpversion(), '5.5.9', '<')) {
 msgBox("[-] Invalid PHP Version , Required : 5.5.9+");
 exit(0);
}
$flags = array('tokenizer' => false , 'openssl' => false , 'pdo' => false , 'mbstring' => false );
foreach (get_loaded_extensions() as $value) {
   if($value == 'PDO')
     $flags['pdo'] = true ;
   if($value == 'openssl')
     $flags['openssl'] = true;
   if($value == 'tokenizer')
     $flags['tokenizer'] = true;
   if($value == 'mbstring')
     $flags['mbstring'] = true ;
}
foreach ($flags as $key => $flag) {
 if($flag == false)
   msgBox("[-] $key is not loaded") ;
}
$storage =  substr(sprintf('%o', fileperms('storage')), -4);
if($storage != 777)
{
 msgBox("[-] Invalid Storage Permission");
}
$cache =  substr(sprintf('%o', fileperms('bootstrap/cache')), -4);
if($cache != 777)
{
 msgBox("[-] Invalid Cache Permission");
}
exec('chmod 777 bootstrap/cache -R');
exec('chmod 777 storage -R');
msgBox("[+] Done!");

Twitter
Facebook

Mess With The Best
Die Like The Rest






Forum Jump:


Users browsing this thread:1 Guest(s)