Thursday, 18 October 2012

XSS tutorial

Just learned XSS but i dont think its affective here is the tutorial.....

To test if the website is vulnerable to XSS we want to go to a search box and inject some Javascript. We've found a search box and now we want to use Javascript to alert a message so we can see if the Javascript was successfully executed.

**<*script*>alert('XSS');</*script*>

(remove every * )
We now see a pop up message on our screen saying "XSS". This is what it should look like:http://img845.imageshack.us/img845/7924/xss1.png

In some cases, a message might not pop up. If it doesn't work, check the source code and have a look at the output. Most of the time the error requires you to make a little change.


"*>*<script*>alert('XSS');</*script*>
(remove every * )
Okay, we have found out that it is vulnerable. We can now move on.

How can I deface a webpage with XSS?
I will be showing you methods for persistent, and non-persistent XSS.

Persistent XSS.

First I will be starting with persistent XSS. Since it's persistent I want to redirect my victims to a deface page. We simply just inject this some more Javascript like we did before:

<*script*>window.location="*http://yourdefacepage.com/index.html";<*/script*>
(remove every * )
Remember, you can always alter the code if it doesn't work.
You can do many things with XSS, you just need all the right strings. I'm only focusing on defacing, since most people just deface sites these days.

Non-persistent XSS.
Okay. Obviously we can't redirect users with non-persistent. But with basic web-based programming knowledge we can make a cookie logger. We may also need advanced social engineering skills for people to open our cookie logger.


Wednesday, 17 October 2012

Today i m going to show u the simplest way of hacking a site. The thing is u cant hack all the sites it should be vulnerable for that attack u r using. So today i will teach u IIS which is an old method but it is very simple that a noob can also do it.. :D. So here we go ...{For windows 7 users only}
 1st>>>> Go to my computer
2nd>>>>right click and select the option "ADD A NETWORK LOCATION" 
3rd>>>>Click NEXT
4th>>>>Click NEXT
5th>>>>Enter the vulnerable site's url
6th>>>>Select a name .
7th>>>>U r done. 
Now u should see a folder that u named in 6th step. Waha u hacked a site..
Now u can copy and paste whatever u want in the folder the file will  be transferd in the site for e.g i have a html file which i want in that site then i will just simply copy and paste in the folder like my html file name is index.html then after transfering it to that folder i will need to open www.hacked site.com/index.html..
Have a nice day bye u will get more tutorials when i will learn....

Tuesday, 16 October 2012

Learned SQLinjection but throug havij...:(. Dont take tension its the start.. Ha ha ha ha. (Y)

Monday, 15 October 2012

Hmm. I m very happy this day i hacked my 1st site. I love this feeling. I know it was a simple attack but for a beginner simple things are the most useful things. Today i learned IIS. I know some hackers will make joke but they dont know they also started from here...:) www.dz365.com/index.html

Sunday, 14 October 2012

Chapter 1.The start.

Hmmm this is my 1st post and i want to tell u that i am a beginner who is trying to learn ethical hacking and i will post everything that i will learn everyday it willl help me and u to remember and tell other beginners from where to start. Ok next tutorial tomorrow i m going to sleep. Bye good night ...:) :)