How to Deface 404 pages Using Shell: Hello guys so today we will be talking about How to Deface 404 pages Using Shell, means if you have defaced index.html and if you open any directory which is not present in the site you will get your defaced page for example I have defaced www.site.com/index.html and if I open www.site.com/blahblah I will get my deface page!
NOTE: THIS IS ONLY FOR EDUCATION PURPOSES, AND FOR SAFETY PURPOSE. WE ARE NOT RESPONSIBLE ANY HARM DONE BY YOU.
ok for those who don't know about 404 pages, let me tell you.. If you get 404 Error pages then it means that the file like you are looking for does not exists on the website! for example, I look for
www.site.com/blahblah now the file name or directory blahblah is not there on the website so it will show 404 error.
Common Names for 404 Error pages:
NOTE: THIS IS ONLY FOR EDUCATION PURPOSES, AND FOR SAFETY PURPOSE. WE ARE NOT RESPONSIBLE ANY HARM DONE BY YOU.
What are 404 Error Pages?
www.site.com/blahblah now the file name or directory blahblah is not there on the website so it will show 404 error.
Common Names for 404 Error pages:
- 404 error page not found
- 404 error file not found
- 404 invalid directory etc...
- Not Found
How to Deface 404 pages Using Shell
Advantages of 404 pages in website hacking:
If someone try to find or access your shell by guessing like (c99.php, r57.php etc), if not found then it will show your custom 404 error page on Not found Link. In most of the cases we usually upload our deface page as index.html or anyname.html on hacked websites.and we can see our deface page on That custom link only where we uploaded our deface page
For example : site.com/index.html, site.com/r00t.html site.com/r00t.php
by adding deface page's code in 404 page you can see your deface page on every link
like site.com/xyz.php site.com/x.html site.com/xyz/,
How to Deface 404 pages Using Shell
All you have to do is just copy and paste the code given below in a notepad(or you can use your deface page's code) and save as 404.shtml and upload to public_html/ directory using shell..
now check any error link !! :) simple
Code for 404 Pages :
<style type="text/css">body { background-color: #000;}</style>(replace image link with your own image in this code)
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikpIAq_RRZIFZEPGhmZgMNHbpyON7v5hyRL_EXh6CSBx9QeLgOC6P2lUQQxMBGD4zuUehd7y8rKKGseyxjffbaEktYXPAObfMUw6n6FinvrUHfD_yqbXwQLGd7mF0T_YvJswCCII9U7C4/s1600/935389_169429133221158_1802310639_n.jpg" width="1198" height="765" />