Pin It

Finding A Spoofed Website With A Javascript


Lots of people think that Javascript is an inferior language but Javascript is an extremly powerful language and those people who think the other way they either don't know how to use it or are not familiar with it's capabilities, With javascript you can do lots of cool things such as edit any page, make an image fly etc, but it is a waste of time to spend your time on making images fly with javascripts or editing a page.
Anyways coming to the main topic, did you know that javascript can be used to detect if a page is a spoofed website or phishing website or a legit one, well if you don't know just paste the following code in to the address bar and a pop up will appear telling you whether the website is original or not
Here is the Javascript code:

javascript:alert("The actual URL is:\t\t" + location.protocol + "//" + location.hostname + "/" + "\nThe address URL is:\t\t" + location.href + "\n" + "\nIf the server names do not match, this may be a spoof.");



Subscribe to our Newsletter and receive updates directly via email - Get Ethical hacking and security tips directly to your inbox. Alternatively you can Join our Hackers Community on Facebook, Google+ and Twitter.
Subscribe to RHA


Enjoyed this article?
Subscribe to "Rafay Hacking Articles" and get daily updates in your inbox for free!


Tags:


Kindly Bookmark it and Share it with Friends:

11 comments:

Anonymous said...

hey rafay. you need a author for ur blog, i am ready for you, tell me what to submit..
After all . this javascript is great
Regards
karan chauhan
www.krackoworld.tk
krackoworld@gmail.com

krishna parmar on February 12, 2011 at 12:07 AM said...

amazing sir, pls one request keep your blog updated regularly hat will help us a lot
my small site on hacking
http://www.latest-hackers.co.cc

Hacker Arpit on February 12, 2011 at 12:44 AM said...

Great Post Like IT :)

Rafay Baloch on February 12, 2011 at 2:19 AM said...

@Karan
Kindly read the guidelines before submitting.

Anonymous said...

Plzzzz Rafay U Are Great Plzzz Share How to hack fanpage with javescript....U Really Rockkk

egyhacks on February 13, 2011 at 1:41 AM said...

Great rafay I see you site always provide unique article i have ever seen. this is my blog on free premium account

www.egyhacks.net

Love you.

Sandip Dev on February 15, 2011 at 2:19 PM said...

Two things
1. http://www.daniweb.com/forums/thread165903.html This same thing is written here too and the date is of 2009.
2. You are talking about Javascript while the logo is of Java. Come on dude. WTF

Sandip Dev on February 15, 2011 at 2:21 PM said...

Bravo, in Karan you have found another noob who think he is a hacker... And I must say, you are actually better than him.

Rafay Baloch on February 16, 2011 at 1:26 AM said...

@Karan
Why don't you decide it yourself...

Rafay Baloch on February 16, 2011 at 5:28 AM said...

@Sandep Dev
Well did I say I created the above javascript?, And the second thing is you need to look at the article rather than looking the logo.

Anonymous said...

Hello I have a problem....do you know how to Vote multiple times at "Online Voting POLL" its java.. and it records my IP add so i can only Vote Once a day.. I want to vote Multiple times.. do u know some software or anything that can help me?
PLS WRITE BACK RAFAY THANKS :)IL BE BACK HERE

Dare to ask? :)

Blog Archive

 

Popular Posts

Recent Comments

Stats

Receive all updates via Facebook. Just Click the Like Button Below

You can also receive Free Email Updates:

Followers

RHA © 2013. All Rights Reserved.

Design By My Blogger Tricks | Home | RSS

Click Here To Subscribe Now To Our RSS FEED.