Industry guru Dave Taylor offers free tech support on a wide variety of technical and business topics, including HTML, Apple iPhone, online advertising, Cascading Style Sheets, Web design, management, Unix, Linux, search engine optimization, online dating, Mac OS X, shell script programming and Microsoft Windows.

How do I learn how to be a hacker?

I'm really wanting to get into the field of hacking. It's something I've always wanted to do. It seems, however, that whenever the question of "how do I learn to hack" is asked, it is usually responded to with the over-used statement "Teach yourself."

I know that hacking is a skill that is built over time, and I'm well aware that it cannot simply be taught. Still, there has to be some form of advice that you can give me as to where to begin. I simply have no idea how i would go about hacking a website or database. It's hard to teach yourself something when you don't even know the basics.

At this point, I'm still pretty clueless. I have a general working understanding of Batch and HTML coding, but nothing more. I'm just wondering if you can give me some tips on where to begin. Where can i learn the basics, and what sort of code/programs would be most helpful?


Dave's Answer:

Before I can answer this, I think it's critical to differentiate between what hackers call "white hat" and "black hat" hacking. A white hat is someone who is intensely curious about computers, computer networks and how things work and fit together. A black hat, by contrast, is interested in destruction, mischief and mayhem.

A virus that pops up a message encouraging you to pick better passwords for your network accounts is pretty much white hat. A virus that destroys your hard drive data or logs - and later transmits - all of your account and password pairs is deep in the black hat zone.

Good hackers, people who are interested in poking around and non-destructively figuring out how things work are the kind of people I like to hang around with. They're smart and can be quite tricky. Black hat folk? Not my bag, and I feel quite strongly about the punishment that should be meted out to those that cause mayhem and destroy or steal personal or business data.

If you want to learn how to be a bad guy, black hat hacker, I won't help you out whatsoever. If you want to learn how to poke around and figure out through experimentation how things work, however, that's cool, let's talk...

A first step for learning how to hack is unquestionably to install, run and learn everything you can about Linux. For many reasons, it's the operating system of choice for hackers and programmers, but the best reason is because it's so incredibly easy to learn how to write code with Linux systems.

Then, programming language-wise, I'd suggest that you start out learning Perl, then graduate to C or C++, and if you want to hack around with Web pages and widgets, PHP as a scripting language. I personally tend to do much of my experimentation with Linux shell scripts (all of which also run on a Mac OS X system) but if you're starting afresh, Perl is far more powerful Hackers I've talked with also recommend Python or Ruby / Ruby on Rails as good alternative languages.

There are also many online hacking communities, but I'd be careful as many of them are cliquish and, as you've already found out, are prone to saying "prove yourself" rather than actually answering any questions you might have.

Check Amazon.com for books on hacking [afflink]. There are a surprising number available, some of which are even pretty good.

There are also conferences you can attend if you want to get into the culture of hacking, the most well-known being Defcon. It's a mixed bag, though, and the FBI famously watch for black hat folk, so chose your friends careful at an event like that.

One more tip: Subscribe to the monthly magazine Linux Journal as it has lots of articles in each issue talking about how to mess around with name servers, web sites, and so on. Fun stuff and (fair disclosure) I write for the publication too.



Help others find this article at Del.icio.us, Digg, Netscape, Reddit, and Stumble Upon    

Subscribe!

Never miss another useful Q&A article again! Subscribe to AskDaveTaylor with Google Reader.

Comments

For more detail (while not contradicting anything Dave has said), check out Eric S Raymond's "How To Become A Hacker": http://www.catb.org/~esr/faqs/hacker-howto.html

Posted by: Shayne Power at March 4, 2009 5:53 PM

Dear Dave,

i have problem in my MS outlook 2003, when i recieve the email i canno't show the pictures from the mail. it s coming with red X. please give me a solution for this case. i tried with MS office SP2 and SP3.
please give me a solution for this case

Posted by: Gadhafy at March 16, 2009 11:46 PM

gadhafy, if you are still looking for answer, here it is: the host that hosts those images has either moved them or the person who sent the email made a mistake in the referencing of the images.

Posted by: jarrad at April 13, 2009 9:30 PM

I was wondering if I could get my e-mails back on my yahoo mail after they have been deleted my bf found my password & didnt like what he seen? But there was some things I need, so can I get them back either by some happen stands or maybe from my computer? please let me know soon!!!thanx kitty

Posted by: kitty at September 28, 2009 10:46 PM

Hy... Every time I try to sign in to my hotmail account, it displays a message to indicate dat I have typed a wrong password. I am confident about my password but I guess my e-mail account is either frozen or hacked. But unfortunately, I do not know much about hacking and freezing although I want to get back to my account..Could any one please help me out?? I need to access my account..

Posted by: dhon at November 23, 2009 12:39 PM

I have something to say, now that you mention it, but ...
Starbucks coffee cup I do have a lot to say, and questions of my own for that matter, but first I'd like to say thank you for all your efforts on this Web site by buying you a cup of coffee!

I do have a comment, now that you mention it!











Remember personal info?


Please note that I will never send you any unsolicited commercial email. Ever.

While I'm at it, please note that by submitting a question or comment you're agreeing to my terms of service, which are: you relinquish any subsequent rights of ownership to your material by submitting it on this site.








Ask Dave Taylor: The iPhone App: Advertisement


Uniblue: Get A Free Virus Scan!

Follow me on Twitter @DaveTaylor

Search
Find just the answers you seek from among our 2300+ free tech support articles by using our Lijit search engine.


Help!





Subscribe to
Ask Dave Taylor!

Add to Google Reader
Add to My Yahoo!
Subscribe in NewsGator Online

RDF   XML

Free Updates!
Sign up and get free weekly updates and special offers on books, seminars, workshops and more.


Recent Entries
Book Links
© 2002 - 2010 by Dave Taylor. All Rights Reserved.

Note: This web site is for the purpose of disseminating information for educational purposes, free of charge, for the benefit of all visitors. We take great care to provide quality information. However, we do not guarantee, and accept no legal liability whatsoever arising from or connected to, the accuracy, reliability, currency or completeness of any material contained on this web site or on any linked site.

[whiteboard marker tray]
"Ask Dave Taylor®" is a registered trademark of Intuitive Systems, LLC.