ヤミRoot VoidGate
User / IP
:
216.73.216.143
Host / Server
:
146.88.233.70 / dev.loger.cm
System
:
Linux hybrid1120.fr.ns.planethoster.net 3.10.0-957.21.2.el7.x86_64 #1 SMP Wed Jun 5 14:26:44 UTC 2019 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
logercm
/
dev.loger.cm
/
src
/
Controller
/
Admin
/
Viewing: SecurityController.php
<?php namespace App\Controller\Admin; use App\Entity\User; use App\Security\BackendAuthenticator; use Doctrine\ORM\EntityManagerInterface; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Annotation\Route; use Symfony\Component\Security\Http\Authentication\AuthenticationUtils; class SecurityController extends AbstractController { const LOGIN_ROUTE = ""; private $backAuth; private $entityManager; public function __construct(BackendAuthenticator $backendAuthenticator, EntityManagerInterface $entityManager) { $this->backAuth=$backendAuthenticator; $this->entityManager=$entityManager; } /** * * @Route({"es": "/login","en": "/login"}, name="app_login") */ public function login(AuthenticationUtils $authenticationUtils,Request $request): Response { $error = $authenticationUtils->getLastAuthenticationError(); $lastUsername = $authenticationUtils->getLastUsername(); $local=$request->getLocale(); $body=""; $language=""; $onlinePath=$request->getBasePath(); if(strcmp($local,"fr")==0) { $language=" <a href=\"#!\" class=\"dropdown-button white-text\" data-activates='choose_language' style=\"font-size: 18px\"><img src=\"".$onlinePath."/img/french_flag.png\" style=\"height: 24px; width: 24px;margin-right: 10px; margin-bottom: -6px\" alt=\"\"> Français</a>"; $body=' <li> <a href="'.$onlinePath.'/change_locale/en" class="white-text" style="font-size: 18px"><img src="'.$onlinePath.'/img/flag_england.png" style="height: 27px; width: 24px;margin-right: 10px; margin-bottom: -6px" alt=""> Anglais</a></li> <li> <a href="'.$onlinePath.'/change_locale/es" class="white-text" style="font-size: 18px"><img src="'.$onlinePath.'/img/flag_spanish.png" style="height: 24px; width: 24px;margin-right: 10px; margin-bottom: -6px" alt=""> Espagnol</a></li> <li> <a href="'.$onlinePath.'/change_locale/it" class="white-text" style="font-size: 18px"><img src="'.$onlinePath.'/img/italiano_flag.png" style="height: 24px; width: 24px;margin-right: 10px; margin-bottom: -6px" alt=""> Italien</a></li> <li> <a href="'.$onlinePath.'/change_locale/zh_CN" class="white-text" style="font-size: 18px"><img src="'.$onlinePath.'/img/china_flag.png" style="height: 24px; width: 24px;margin-right: 10px; margin-bottom: -6px" alt=""> Chinois</a></li> '; }else if(strcmp($local,"es")==0) { $language=" <a href=\"#!\" class=\"dropdown-button white-text\" data-activates='choose_language' style=\"font-size: 18px\"><img src=\"".$onlinePath."/img/flag_spanish.png\" style=\"height: 24px; width: 24px;margin-right: 10px; margin-bottom: -6px\" alt=\"\"> Español</a>"; $body=' <li> <a href="'.$onlinePath.'/change_locale/fr" class="white-text" style="font-size: 18px"><img src="'.$onlinePath.'/img/french_flag.png" style="height: 24px; width: 24px;margin-right: 10px; margin-bottom: -6px" alt=""> Francés</a></li> <li> <a href="'.$onlinePath.'/change_locale/en" class="white-text" style="font-size: 18px"><img src="'.$onlinePath.'/img/flag_england.png" style="height: 27px; width: 24px;margin-right: 10px; margin-bottom: -6px" alt=""> Inglés</a></li> <li> <a href="'.$onlinePath.'/change_locale/it" class="white-text" style="font-size: 18px"><img src="'.$onlinePath.'/img/italiano_flag.png" style="height: 24px; width: 24px;margin-right: 10px; margin-bottom: -6px" alt=""> Italiano</a></li> <li> <a href="'.$onlinePath.'/change_locale/zh_CN" class="white-text" style="font-size: 18px"><img src="'.$onlinePath.'/img/china_flag.png" style="height: 24px; width: 24px;margin-right: 10px; margin-bottom: -6px" alt=""> Chinise</a></li> '; }else if (strcmp($local,"en")==0) { $language=" <a href=\"#!\" class=\"dropdown-button white-text\" data-activates='choose_language'style=\"font-size: 18px\"><img src=\"".$onlinePath."/img/flag_england.png\" style=\"height: 27px; width: 24px;margin-right: 10px; margin-bottom: -6px\" alt=\"\"> English</a>"; $body=' <li> <a href="'.$onlinePath.'/change_locale/fr" class="white-text" style="font-size: 18px"><img src="'.$onlinePath.'/img/french_flag.png" style="height: 24px; width: 24px;margin-right: 10px; margin-bottom: -6px" alt=""> French</a></li> <li> <a href="'.$onlinePath.'/change_locale/it" class="white-text" style="font-size: 18px"><img src="'.$onlinePath.'/img/italiano_flag.png" style="height: 24px; width: 24px;margin-right: 10px; margin-bottom: -6px" alt=""> Italiano</a></li> <li> <a href="'.$onlinePath.'/change_locale/zh_CN" class="white-text" style="font-size: 18px"><img src="'.$onlinePath.'/img/china_flag.png" style="height: 24px; width: 24px;margin-right: 10px; margin-bottom: -6px" alt=""> Chinise</a></li> <li> <a href="'.$onlinePath.'/change_locale/es" class="white-text" style="font-size: 18px"><img src="'.$onlinePath.'/img/flag_spanish.png" style="height: 27px; width: 24px;margin-right: 10px; margin-bottom: -6px" alt=""> Spanish</a></li>'; }else if (strcmp($local,"it")==0) { $language=" <a href=\"#\" class=\"dropdown-button white-text\" data-activates='choose_language'style=\"font-size: 18px\"><img src=\"".$onlinePath."/img/italiano_flag.png\" style=\"height: 27px; width: 24px;margin-right: 10px; margin-bottom: -6px\" alt=\"\"> Italiano</a>"; $body=' <li> <a href="'.$onlinePath.'/change_locale/fr" class="white-text" style="font-size: 18px"><img src="'.$onlinePath.'/img/french_flag.png" style="height: 24px; width: 24px;margin-right: 10px; margin-bottom: -6px" alt=""> Francese</a></li> <li> <a href="'.$onlinePath.'/change_locale/en" class="white-text" style="font-size: 18px"><img src="'.$onlinePath.'/img/flag_england.png" style="height: 24px; width: 24px;margin-right: 10px; margin-bottom: -6px" alt=""> inglese</a></li> <li> <a href="'.$onlinePath.'/change_locale/zh_CN" class="white-text" style="font-size: 18px"><img src="'.$onlinePath.'/img/china_flag.png" style="height: 24px; width: 24px;margin-right: 10px; margin-bottom: -6px" alt=""> Cinese</a></li> <li> <a href="'.$onlinePath.'/change_locale/es" class="white-text" style="font-size: 18px"><img src="'.$onlinePath.'/img/flag_spanish.png" style="height: 27px; width: 24px;margin-right: 10px; margin-bottom: -6px" alt=""> Spagnolo</a></li>'; }else if (strcmp($local,"zh_CN")==0) { $language=" <a href=\"#!\" class=\"dropdown-button white-text\" data-activates='choose_language'style=\"font-size: 18px\"><img src=\"".$onlinePath."/img/china_flag.png\" style=\"height: 27px; width: 24px;margin-right: 10px; margin-bottom: -6px\" alt=\"\"> 中國人</a>"; $body=' <li> <a href="'.$onlinePath.'/change_locale/fr" class="white-text" style="font-size: 18px"><img src="'.$onlinePath.'/img/french_flag.png" style="height: 24px; width: 24px;margin-right: 10px; margin-bottom: -6px" alt=""> 法語</a></li> <li> <a href="'.$onlinePath.'/change_locale/it" class="white-text" style="font-size: 18px"><img src="'.$onlinePath.'/img/italiano_flag.png" style="height: 24px; width: 24px;margin-right: 10px; margin-bottom: -6px" alt=""> 意大利語</a></li> <li> <a href="'.$onlinePath.'/change_locale/en" class="white-text" style="font-size: 18px"><img src="'.$onlinePath.'/img/flag_england.png" style="height: 24px; width: 24px;margin-right: 10px; margin-bottom: -6px" alt=""> 中國人</a></li> <li> <a href="'.$onlinePath.'/change_locale/es" class="white-text" style="font-size: 18px"><img src="'.$onlinePath.'/img/flag_spanish.png" style="height: 27px; width: 24px;margin-right: 10px; margin-bottom: -6px" alt=""> 西班牙語</a></li>'; } return $this->render('security/login.html.twig', [ // parameters usually defined in Symfony login forms 'error' => $error, 'exception' => $error, 'language' => $language, 'languageChoose' => $body, 'last_username' => $lastUsername, 'companyName' => $this->getParameter('app_client'), 'translation_domain' => 'admin', 'page_title' => 'ACME login', // the string used to generate the CSRF token. If you don't define // this parameter, the login form won't include a CSRF token 'csrf_token_intention' => 'authenticate_token', // the URL users are redirected to after the login (default: '/admin') 'target_path' => $this->generateUrl('admin_dashboard'), // the label displayed for the username form field (the |trans filter is applied to it) 'username_label' => 'Your username', // the label displayed for the password form field (the |trans filter is applied to it) 'password_label' => 'Your password', // the label displayed for the Sign In form button (the |trans filter is applied to it) 'sign_in_label' => 'Log in', // the 'name' HTML attribute of the <input> used for the username field (default: '_username') 'username_parameter' => 'my_custom_username_field', // the 'name' HTML attribute of the <input> used for the password field (default: '_password') 'password_parameter' => 'my_custom_password_field', // whether to enable or not the "forgot password?" link (default: false) 'forgot_password_enabled' => true, // the path (i.e. a relative or absolute URL) to visit when clicking the "forgot password?" link (default: '#') // 'forgot_password_path' => $this->generateUrl('...', ['...' => '...']), // the label displayed for the "forgot password?" link (the |trans filter is applied to it) 'forgot_password_label' => 'Forgot your password?', // whether to enable or not the "remember me" checkbox (default: false) 'remember_me_enabled' => true, // remember me name form field (default: '_remember_me') 'remember_me_parameter' => 'custom_remember_me_param', // whether to check by default the "remember me" checkbox (default: false) 'remember_me_checked' => true, // the label displayed for the remember me checkbox (the |trans filter is applied to it) 'remember_me_label' => 'Remember me', ]); } protected function getAdminUrl(): string { return $this->urlGenerator->generate(self::LOGIN_ROUTE); } /** * @Route("/{_locale}/logout", name="app_logout", * requirements = { * "_locale"= "en|fr|es" * }) */ public function logout(){ throw new \LogicException("this methode can't be blank, it will been intercept by logout method."); } }
Coded With 💗 by
0x6ick