SET is great when you have a short space of time at hand, however sometimes you want to know whats actually going on under the hood or have found a site you can't clone with SET.
Step 1: Select Your Target!
The First Thing You're Going to Want to Do Is Select the Site Login You Wish to Clone! For This Tutorial I Will Be Using Facebook, However This Can Be Whatever You Like. Some Sites Use Some Javascript Obfuscation Magic to Hide the Elements (Like the login.live.com Page). But Most Major Sites Use the Traditional Element Method.
Step 2: Use Wget to Download the Login Page
Now You Have Your Site in Mind, You Will Need to Download the Login Page. This Can Be Done with Wget.
wget -U "Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.0" https://www.facebook.com/ -O facebook.html
Wget is the command used to download files.
-U means custom useragent, if we leave this out many sites will redirect us to other custom sites as Wget isn't a browser!
-O means we save the file with a custom name.
Step 3: Modify the Exisiting Page Source.
This is where you will get your hands dirty, can be a little confusing at times, however is probably one of the most important steps. You will need to locate the form located on the page. My main editor is vim/atom, but I will be using atom for this tutorial. Open the facebook.html or file you downloaded with your editor and locate the form tag with a search.
With a simple search I was able to locate the form, you will need to modify this to post to a custom PHP script. Our PHP script is called post.php, and is located in the same directory as our login html. So change the
Comments
No Comments Exist
Be the first, drop a comment!