![]() |
|
[Tutorial] Basic XSS - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45) +--- Forum: Grayhat • Purple Team • Hybrid Security (https://hackforums.net/forumdisplay.php?fid=449) +---- Forum: Beginner Hacking (https://hackforums.net/forumdisplay.php?fid=4) +----- Forum: Hacking Tutorials (https://hackforums.net/forumdisplay.php?fid=47) +----- Thread: [Tutorial] Basic XSS (/showthread.php?tid=1511446) |
[Tutorial] Basic XSS - Inso - Jul 22, 2011 Okay, in this tutorial I aim to give you a very basic understanding of cross-site scripting, also known on XSS. I advise you do this on Mozilla's Firefox web browser, as newer versions of Internet Explorer edit the site to prevent XSS.
Finding your target. Obviously, before you can hack a site, you need to find a site vulnerable to what you want to do, in this case, XSS. We can do this using a search engine. I recommend google. What we want to search is: Quote:inurl:guestbook html enabled What you should see as a list of results is many websites containing "guestbooks". A guestbook is a page of website, where users may leave comments, it is recommended the guestbook you choose doesn't send posts for moderation before they are publically shown. Is my target vulnerable? To find this out, we need to do a small XSS test. Doing this is simple. Go into the guestbook and add a post. In the comment/content/post box, send the following line of code. Quote:"><script>alert("Vulnerability Test")</script> If the site is vulnerable, a popup window saying "Vulnerability Test" will appear. Injecting HTML. Now we want to take advantage of the XSS vulnerability. Type in the following: Quote:"><script>alert("I have hacked your site")</script> You can put as much HTML as you want in it, and if you have a good understanding of HTML, you can edit the page itself, but I won't go into that, as this is just a basic XSS Tutorial. I hope you understood and learned something from my tutorial. Any questions? PM me! * - Lamassue - Jul 22, 2011 Good tutorial brother I love the colors and the <code> it really helped me understand :) Very simple, 4/5 * - PoS3!DoN - Jul 22, 2011 nice tutorial...help it in good way..keep posting.... * - Inso - Jul 22, 2011 Thank you for the feedback! Once I learn more advanced XSS myself I'll add a tutorial on it! ^^ * - J0hnSmith - Jul 22, 2011 This is solid. Thanks heaps. * - Inso - Jul 22, 2011 No problem. Thanks for the feedback. * - P-Kito - Sep 24, 2011 nice nice :D keep writing stuff like this greets kito * - Inso - Sep 28, 2011 Thanks Kito ^^ I've never actually seen you on Hackforums before xD * - ๖ۣۜInVaDeR - Sep 28, 2011 Great Job Dude Keep It Up .. <3 ur Thread!! * - Inso - Sep 30, 2011 Thanks a lot. Every bit of feedback is appreciated, positive or negative. ^^ I'm disappointed with the amount of views and the small amount of replies though! * - strandquist - Feb 26, 2012 Great job, short and simple tutorial. Thanks * - Germans - Feb 27, 2012 good tut, easy to read and not complicated. perfect for the amount of knowledge most people have. :) |