LoscardosMandoza

Shell Scanner

Jan 14th, 2017
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.46 KB | None | 0 0
  1. <script language="JavaScript" type="text/JavaScript">
  2. <!--
  3. function MM_openBrWindow(theURL,winName,features) { //v2.0
  4. window.open(theURL,winName,features)
  5. }
  6. //-->
  7. </script>
  8. <style type="text/css">
  9. <!--
  10. .single{
  11. border: 1px solid #00ff00;box-shadow: 0px 0px 15px #55FF55;
  12. padding: 5px;
  13. }
  14. .me {
  15. font-size:11px; font-family:Tahoma,Verdana,Arial; color:#ccff99;
  16. border: 0px;
  17. padding: 5px;
  18. }
  19.  
  20. .isi{
  21. padding: 2px;
  22. border:1px solid #666666;
  23. font-family: Tahoma;
  24. color: #ccff99;
  25. background-color: #666666;
  26. font-size: 10px;
  27. font-weight: bold;
  28. }
  29. -->
  30. </style>
  31. <style type="text/css">
  32. #patch {position:absolute; height:1; width:1px; top:0; left:0;}
  33. </style>
  34. </head>
  35. <body>
  36. <center>
  37. <img src="http://i1159.photobucket.com/albums/p622/dvildance/aSSD_zps055e1ce7.gif">
  38. <center><font color="#339900" size="14" face="arial">Backdoor Scanner</font></center><br>
  39. <?php
  40. if(isset($_REQUEST['edit']) && $_REQUEST['edit']=='file'){
  41. if(isset($_POST['yes'])){
  42. $filename = $_GET['file'];
  43. echo "<br><br><br><font color=red size=3><b><center>".$filename." deleted...</b></font><br><br><br><br><br><br><br>";
  44. unlink($filename);
  45. echo "<META HTTP-EQUIV=Refresh CONTENT=\"2; URL=javascript:window.close();\">";
  46. }else{
  47. if($_POST['update']) {
  48. $filename = $_POST['file'];
  49. if(is_writable($filename)) {
  50. $handle = fopen($filename, "w+");
  51. $isi=$_POST['content'];
  52. fwrite($handle, stripslashes($isi));
  53. fclose($handle);
  54. $stat= "<center><strong>edited successfully<br>";
  55. } else {
  56. $stat= "<center><font color=red><strong>Error! File may not be writable.</font></center>";
  57. }
  58. }
  59. if($_POST['close']) {
  60. echo "<META HTTP-EQUIV=Refresh CONTENT=\"0; URL=javascript:window.close();\">";
  61. }
  62. $filename = $_GET['file'];
  63. if (file_exists($filename)){
  64. $vuln = $_GET['bug'];
  65. $handle = fopen($filename, "r");
  66. $contents = fread($handle, filesize($filename));
  67. ?>
  68. <center>
  69. <table>
  70. <tr><td align="left" class="me"><strong><?=$filename?>&nbsp;&nbsp;>> Contains :&nbsp;<?=$vuln?></strong></td></tr>
  71. <tr><td class="me">
  72. <form method="post" action="">
  73. <input type="hidden" name="file" value="<?=$filename?>">
  74. <textarea name="content" cols="80" rows="15"><?=htmlspecialchars($contents)?></textarea><br>
  75. </td></tr>
  76. <tr><td align="center" class="me">
  77. <?php
  78. if($_POST['delete']) {
  79. echo "Are you sure to delete ".$filename." ?";
  80. ?>
  81. <tr><td align="center" class="me">
  82. <input type="submit" name="yes" value=" Y E S ">
  83. <input type="submit" name="no" value=" N O ">
  84. </td></tr>
  85. <?php
  86. }else{
  87. echo $stat;
  88. ?>
  89. </td></tr>
  90. <tr><td align="right" class="me">
  91. <input type="submit" name="close" value=" C l o s e ">
  92. <input type="submit" name="delete" value=" D e l e t e ">
  93. <input type="submit" name="update" value=" S a v e ">
  94. </td></tr>
  95. <?php
  96. }
  97. fclose($handle);
  98. ?>
  99. </table>
  100. </form>
  101. <?php
  102. }else{
  103. echo "<br><br><br><font color=red size=3><b><center>".$filename." not exist...</b></font><br><br><br><br><br><br><br>";
  104. echo "<META HTTP-EQUIV=Refresh CONTENT=\"4; URL=javascript:window.close();\">";
  105. }
  106. ?>
  107. </center>
  108. <?php
  109. }
  110. }elseif(isset($_POST['Submit'])){
  111. $ceks = array('base64_decode','system','passthru','popen','exec','shell_exec','eval','move_uploaded_file');
  112. foreach($ceks as $ceker){
  113. if($_POST[$ceker]<>""){
  114. $six.=$_POST[$ceker].".";
  115. }
  116. }
  117.  
  118. $cek = explode('.', $six);
  119.  
  120. function ListFiles($dir) {
  121. if($dh = opendir($dir)) {
  122.  
  123. $files = Array();
  124. $inner_files = Array();
  125.  
  126. while($file = readdir($dh)) {
  127. if($file != "." && $file != "..") {
  128. if(is_dir($dir . "/" . $file)) {
  129. $inner_files = ListFiles($dir . "/" . $file);
  130. if(is_array($inner_files)) $files = array_merge($files, $inner_files);
  131. } else {
  132. array_push($files, $dir . "/" . $file);
  133. }
  134. }
  135. }
  136.  
  137. closedir($dh);
  138. return $files;
  139. }
  140. }
  141. ?>
  142. <center>
  143. <table border="0" width="90%" cellpadding="5">
  144. <tr>
  145. <td align="right" width="30"><b>No</b></td>
  146. <td align="center" width="105"><b> T y p e </b></td>
  147. <td align="center"><b> F i l e&nbsp;&nbsp;L o c a t i o n </b></td>
  148. <td align="center" width="150"><b> L a s t&nbsp;&nbsp;E d i t </b></td>
  149. <td align="right" width="80"><b>F i l e&nbsp;&nbsp;S i z e</b></td>
  150. </tr><br>
  151. <?php
  152. $target=$_SERVER['DOCUMENT_ROOT'];
  153. foreach (ListFiles($target) as $key=>$file){
  154. $nFile = substr($file, -4, 4);
  155. if($nFile == ".php"){
  156. if($file==$_SERVER['DOCUMENT_ROOT'].$_SERVER['PHP_SELF']){
  157. }else{
  158. $ops = @file_get_contents($file);
  159. $op=strtolower($ops);
  160. $arr = array('c99_buff_prepare' => 'c 9 9',
  161. 'abcr57' => 'r 5 7');
  162. $sis=0;
  163. if($op)
  164. $size=filesize($file);
  165.  
  166. $last=date("M-d-Y H:i", $last_modified);
  167. foreach($arr as $key => $val) {
  168. if(@preg_match("/$key/", $op)) {
  169. $sis=1;
  170. $i++;
  171. ?>
  172. <tr style ="background-color: Your background Color;" onmouseover="mover(this)" onmouseout="mout(this)">
  173. <td align="right"><font color="red"><blink><?=$i?></blink></font></td>
  174. <td align="center"><font color="red"><blink><?=$val?></blink></font></td>
  175. <td align="left"><blink>
  176. <a href="#" class="abunai" onclick="MM_openBrWindow('?edit=file&file=<?=$file?>&bug=<?=$val?>','File view','status=yes,scrollbars=yes,width=700,height=600')" rel="nofollow"><?=$file?></a>
  177. </blink></td>
  178. <td align="center"><font color="red"><blink><?=$last?> GMT+9</blink></font></td>
  179. <td align="right"><font color="red"><blink><?=$size?> byte</blink></font></td>
  180. <script language="javascript">
  181. var bgcolor = "transparent";
  182. var change_color = "#444444"
  183. function mover(aa) {
  184. aa.style.backgroundColor = change_color;
  185. }
  186. function mout(aa) {
  187. aa.style.backgroundColor = bgcolor;
  188. }
  189. </script>
  190. </tr>
  191. <?php
  192. }
  193. }
  194. if($sis<>"1"){
  195. if((@preg_match("/system\((.*?)\)/", $op))&&(@preg_match("/<pre>/", $op))&&(@preg_match("/empty\((.*?)\)/", $op))) {
  196. $sis="2";
  197. $i++;
  198. $val="hidden shell";
  199. ?>
  200. <tr style ="background-color: Your background Color;" onmouseover="mover(this)" onmouseout="mout(this)">
  201. <td align="right"><font color="blue"><?=$i?></font></td>
  202. <td align="center"><font color="blue"><?=$val?></font></td>
  203. <td align="left">
  204. <a href="#" class="xxx" onclick="MM_openBrWindow('?edit=file&file=<?=$file?>&bug=<?=$val?>','File view','status=yes,scrollbars=yes,width=700,height=600')" rel="nofollow"><?=$file?></a>
  205. </td>
  206. <td align="center"><font color="blue"><?=$last?> GMT+9</font></td>
  207. <td align="right"><font color="blue"><?=$size?> byte</font></td>
  208. <script language="javascript">
  209. var bgcolor = "transparent";
  210. var change_color = "#444444"
  211. function mover(aa) {
  212. aa.style.backgroundColor = change_color;
  213. }
  214. function mout(aa) {
  215. aa.style.backgroundColor = bgcolor;
  216. }
  217. </script>
  218. </tr>
  219. <?php
  220. }
  221. }
  222. if($sis=="0"){
  223. foreach($cek as $bugs) {
  224. if ($bugs<>""){
  225. if(@preg_match("/$bugs\((.*?)\)/", $op)) {
  226. $i++;
  227. ?>
  228. <tr style ="background-color: Your background Color;" onmouseover="mover(this)" onmouseout="mout(this)">
  229. <td align="right"><?=$i?></td>
  230. <td align="center"><?=$bugs?></td>
  231. <td align="left">
  232. <a href="#" onclick="MM_openBrWindow('?edit=file&file=<?=$file?>&bug=<?=$bugs?>','File view','status=yes,scrollbars=yes,width=700,height=600')" rel="nofollow"><?=$file?></a>
  233. </td>
  234. <td align="center"><?=$last?> GMT+9</td>
  235. <td align="right"><?=$size?> byte</td>
  236. <script language="javascript">
  237. var bgcolor = "transparent";
  238. var change_color = "#444444"
  239. function mover(aa) {
  240. aa.style.backgroundColor = change_color;
  241. }
  242. function mout(aa) {
  243. aa.style.backgroundColor = bgcolor;
  244. }
  245. </script>
  246. </tr>
  247. <?php
  248. }
  249. }
  250. }
  251. }
  252. if($_POST['textV']<>""){
  253. $text=$_POST['textV'];
  254. if(@preg_match("/$text/", $op)) {
  255. $i++;
  256. ?>
  257. <tr style ="background-color: Your background Color;" onmouseover="mover(this)" onmouseout="mout(this)">
  258. <td align="right"><?=$i?></td>
  259. <td align="center"><?=$text?></td>
  260. <td align="left">
  261. <a href="#" onclick="MM_openBrWindow('?edit=file&file=<?=$file?>&bug=<?=$text?>','File view','status=yes,scrollbars=yes,width=700,height=600')" rel="nofollow"><?=$file?></a>
  262. </td>
  263. <td align="center"><?=$last?> GMT+9</td>
  264. <td align="right"><?=$size?> byte</td>
  265. <script language="javascript">
  266. var bgcolor = "transparent";
  267. var change_color = "#444444"
  268. function mover(aa) {
  269. aa.style.backgroundColor = change_color;
  270. }
  271. function mout(aa) {
  272. aa.style.backgroundColor = bgcolor;
  273. }
  274. </script>
  275. </tr>
  276. <?php
  277. }
  278.  
  279.  
  280. }
  281. }
  282. }
  283. }
  284. if($i==0){
  285. foreach($cek as $bugs) {
  286. if ($bugs<>""){
  287. $x++;
  288. ?>
  289. <tr style ="background-color: Your background Color;" onmouseover="mover(this)" onmouseout="mout(this)">
  290. <td align="right"><?=$x?></td>
  291. <td align="center"><?=$bugs?></td>
  292. <td align="center"> not exist </td>
  293. <td align="center"> no record </td>
  294. <td align="right"> -&nbsp;&nbsp;&nbsp;&nbsp;byte </td>
  295. </tr>
  296. <?php
  297. }
  298. }
  299. }
  300. ?>
  301. </table>
  302. <?php
  303. }else{
  304. $find = array('default','base64_decode','system','passthru','popen','exec','shell_exec','eval','move_uploaded_file');
  305. ?>
  306. <form id="fCheck" name="fCheck" method="post" action="" autocomplete="off">
  307. <center>
  308. <table class="single" width="400" border="1" -webkit-box-shadow: 0px 0px 15px #55FF55; cellpadding="10">
  309. <tr><td class="me"><center>
  310.  
  311. <table class="me" width="200">
  312. <tr><td class="me">
  313. <script language="javascript">
  314. function cekKlik(){
  315. if (!document.fCheck.cekV.checked)
  316. document.fCheck.textV.disabled=true;
  317. else
  318. document.fCheck.textV.disabled=false;
  319. if(document.fCheck.cekV.checked){
  320. master = master + 1;
  321. }else{
  322. if(master > 0 ){
  323. master = master - 1;
  324. }else{
  325. master = master;
  326. }
  327. }
  328. if(master != 0){
  329. document.fCheck.Submit.disabled=false;
  330. }else{
  331. document.fCheck.Submit.disabled=true;
  332. }
  333. }
  334. </script>
  335. <?php
  336. //dari sini
  337. foreach($find as $bug) {
  338. ?>
  339. <script language="javascript">
  340. var master = 0;
  341. function checkValue<?=$bug?>(){
  342. if(document.fCheck.<?=$bug?>.checked){
  343. master = master + 1;
  344. }else{
  345. if(master > 0 ){
  346. master = master - 1;
  347. }else{
  348. master = master;
  349. }
  350. }
  351. if(master != 0){
  352. document.fCheck.Submit.disabled=false;
  353. }else{
  354. document.fCheck.Submit.disabled=true;
  355. }
  356. }
  357. </script>
  358. <input onclick="checkValue<?=$bug?>();" name="<?=$bug?>" type="checkbox" id="<?=$bug?>" value="<?=$bug?>" />&nbsp;<?=$bug?><br>
  359. <?php
  360. }
  361. ?>
  362. <input name="cekV" type="checkbox" onClick="cekKlik();" id="cekV" value="cekV">
  363. <input class="isi" disabled="disabled" name="textV" value="other key word" onFocus="this.select()" type="text" id="textV">
  364. <br><br>
  365. <input type="hidden" name="asal" value="abcd">
  366. <input disabled="disabled" type="submit" name="Submit" value=" Start " />
  367. </td></tr>
  368. </table>
  369. </td></tr></table>
  370. </form>
  371. <?php
  372. }
  373. ?>
  374. <br><br><hr width="300">
Advertisement
Add Comment
Please, Sign In to add comment