21.09.03 09:22 작성
·
235
1
입력, 저장 후 페이지 열면 500 에러가 뜨는데
문제가 뭘까요? ㅜ
좋은 강의 감사합니다. ^^
(코드는 전부 오타없이 적혀있습니다.)
<?
header("Content-Type: text/html; charset=UTF-8");
$mode = $_REQUEST["mode"]
$page = basename($_SERVER["PHP_SELF"]);
?>
<!DOCTYPE html>
<html lang="ko">
<head>
<title>Crehacktive Webshell</title>
<!-- 합쳐지고 최소화된 최신 CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<!-- 부가적인 테마 -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap-theme.min.css">
<!-- 합쳐지고 최소화된 최신 자바스크립트 -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-6">
<h3>Webshell <small>Created by Crehacktive</small></h3>
<hr>
<ul class="nav nav-tabs">
<li role="presentation" <?if(empty($mode)||$mode=="fileBrowser") echo "class=\"active\"";?>><a href="<?=$page?>?mode=fileBrowser">File Browser</a></li>
<li role="presentation"><?if($mode=="fileUpload") echo "class=\"active\"";?>><a href="<?=$page?>?mode=fileUpload">File Upload</a></li>
<li role="presentation"><?if($mode=="command") echo "class=\"active\"";?>><a href="<?=$page?>?mode=command">Command Execution</a></li>
<li role="presentation"><?if($mode=="db") echo "class=\"active\"";?>><a href="<?=$page?>?mode=db">DB Connector</a></li>
<li role="presentation"><a href="<?=$page?>?mode=logout">Logout</a></li>
</ul>
<hr>
<p class="text-muted text-center">Copyrightⓒ 2021,Crehacktive,All rights reserved</p>
</div>
<div class="col-md-3"></div>
</div>
</div>
</body>
</html>
2021. 09. 05. 22:20
ㅠ 한참 헤맸는데.. 등잔 불 밑이 어두운 격이었네요.. 정말 감사합니다. ㅜ 열심히 강의 따라가겠습니다.