How to Hack a Website Ever wanted to know how to hack a website? While it is not possible to hack every site, you may be able to hack a vulnerable one, such as a message board. This wikiHow will show you how to hack a site using cross site scripting as well as injection attacks. It will also give you tips on how to set yourself up for success. Note: This Blog is strictly for educational purposes, either to help people begin to learn white hat hacking or to see how hackers work in order to protect their own sites better. 1 Find a vulnerable site where you can post content. A message board is a good example. Remember, if the site is secure then this will not work. window.alert(“test”) window.alert(“test”)window.alert(“test”) 2 Go to create a post. You will need to type some special code into the “post” which will capture the data of all who click on it. You’ll want to test to see if the system filters out code. Post <script>window.alert(...