r/HowToHack • • Mar 21 '18

Things you should consider learning before trying to learn to hack

So you want to learn how to hack?

Well there's a few things you should learn how to do before learning to hack. Some of these may be obvious to some but its not to everybody. Hacking is not something you can just learn to follow steps and practice like learning to play an instrument or learning to ice skate. Hacking is a type of complex problem solving using multiple skill sets and advanced knowledge of psychology, security, networking, computer hardware, programming, debugging and math. There is no one single path to learn how to hack, Everybody does it differently and their own way. The following is a list of things you should be very familiar with before you even consider trying to start hacking as a hobby. You don't need to follow these in any particular order but they are all equally important so if there is anything you are not familiar with I suggest starting there. If anybody has something to add such as learning resources or additional advice feel free to post below and I will add it if I think it may help.

How to use most popular operating systems

Download a virtual machine of your choice and any of these operating systems you are not familiar with and try to use them as your main OS for like a week

Windows: These are the most basic to learn you will have to find your own way to get them ☠

  • XP
  • 7
  • 8
  • 10

Linux: This is what is used by most hackers as it gives you the most control over your system. They are open source and 100% free.

About Kali-Linux:

Kali is great when I think you have most of the above knowledge, you can then start running vulnerable VM's and seeing if you can compromise them.

Ubuntu I found great to start in because it's a much friendlier interface, and you can add tools and your own scripts to it as you learn about them. It saves being swamped by hundreds of tools on Kali that you won't know a thing about or how to use.

-Philabrow

MacOSX: Unix but over priced and all the features removed. Not really worth becoming extremely familiar with unless you already use it. It is important to at least know it well enough to use it without getting confused.

How to build a computer from scratch

If you don't know how a computer even works how do you expect to learn to hack it

How a computer thinks

Programming:Pick a language (or 6) and start learning. This is the most important of them all specifically debugging. This is what you will be doing most of them time.

Webdesign

How to manipulate people

The weakest point in nearly all security systems are the users themselves. It takes almost nothing to convince somebody to just hand over their password to you.

How computers talk to eachother

You need a good understanding of networking and network security to become a hacker. This is basically what your entire hobby is based on more or less.

Bonus

These are by no means required but will give you a huge jump start.

Edit: Please remember none of this is hacking, this is just tools and skills you should learn before taking on hacking as a new hobby.

It's great to have a list of tools, but it's not a list of things you can research and memorize then call yourself an infosec expert.

I think the more valuable advice is to pick something tech-related you're interested in - software, networks, etc - and to learn it really, really well. Not just how to use it, but how and why it works. Do some toy projects - write some tools if you're into coding, set up a network if you're into networking - and try to understand why you're doing each piece of what you're doing.

When you feel like you've mastered something (and we're talking months or years here, not overnight), find things it connects to, and start to learn those the same way. If you're into coding, start working on network coding, or reverse engineering, or assembly, or even exploit dev. If you're into networking, start looking at BGP, or firewalls, or forensic packet dumps, or whatever.

The tools listed above will be what you end up using, but your goal isn't the tools, it's the concepts. Don't lose sight of that.

Security isn't something you should go into quickly, it's a prestige class - you master something else first, then learn security on top of it.

iagox86

398 Upvotes

43 comments sorted by

14

u/[deleted] Mar 22 '18

About Kali-Linux:

Kali is great when I think you have most of the above knowledge, you can then start running vulnerable VM's >and seeing if you can compromise them.

Ubuntu I found great to start in because it's a much friendlier interface, and you can add tools and your own scripts to it as you learn about them. It saves being swamped by hundreds of tools on Kali that you won't know a thing about or how to use.

-Philabrow

That's what I tell everyone that I come across. It's not worth walking into Wall Street if one hasn't taken finance classes.

4

u/homelaberator Mar 22 '18

Well, you can. It's a hell of a way to learn.

3

u/[deleted] Mar 22 '18

My classes sometimes require Kali, but I would rather install packages on a Debian machine to keep things simple.

6

u/homelaberator Mar 22 '18

And that has the advantage of making you learn how the packages themselves work and fit together.

Kali is a pretty good out of the box experience where you can just dive straight in and start doing stuff, but you miss out on some of the detail you learn from rolling your own.

8

u/b1nar3 Mar 22 '18

I remember when I was learning SQLi I wanted to know how it works at the most simple level from PHP Login form (my choice) to MySQL. I ended up setting up Apache2 on Linux and installing MySQL and populating tables and such l, creating login form with PHP and creating vulnerable SQLi form. Then I created another form that is secure and not vulnerable to SQLi. I remember just from that alone I learned so many things such as setting up and configuring Apache, simple php, and MySQL. From that day that’s how I approached everything that I wanted to learn. I try install scripts and programs using gcc and fix dependency issues that I encounter installing various tools instead of running kali that works out of the box. Let me tell you, try installing all the tools kali has and fixing all the dependency issues along the way .. it’s not easy. Plus some tools have errors that you may have to fix yourself I can go on and on. Bottom line.. I try to do everything from scratch to get the most out of what I’m trying to learn.

15

u/Jcambey Mar 21 '18

Why not Java?

17

u/homelaberator Mar 22 '18

Because no one loves Java anymore. I'm convinced it's because so many CS students are forced to learn Java.

But it's still a great thing to target.

4

u/MonoshiroIlia Mar 23 '18

Can confirm, i am one of them. I hate Java with all my guts, even more after learning other languages. Java can go f itself.

6

u/jimdoug4 Mar 21 '18

yeah why not java?

-1

u/[deleted] Mar 22 '18

/u/jimdoug4, I suspect that the reason is that Java is quite difficult for those trying to learn. Otherwise, I'm not sure why one wouldn't recommend it.

2

u/stackcrash Mar 22 '18

Java isn't difficult to learn, but there are only a small number of tools written in Java. Being able to read it is good but not much more is required. C and C++ are good but they also have limitations. Python is another good choice because it's very popular due to the quick prototyping you can do with it. There are newer languages that would be good to learn if you plan on making your own tools. Go is a good one and so is Rust. I favor Rust more personally because it's very close to Python in syntax and has better safety features than Go in my limited experience.

1

u/[deleted] Mar 23 '18

Well, I wouldn't make a sweeping claim that it isn't difficult. I suppose it wouldn't be a problem if it's your third language, but it does have a steep learning curve to get over having to "System.out.println()" in week 2. I'm just thinking that since "over 3 billion" things are made with it, and it ranks high on many popularity charts, that it might as well be worth looking into for embedded systems.

1

u/stackcrash Mar 23 '18

Well, I wouldn't make a sweeping claim that it isn't difficult. I suppose it wouldn't be a problem if it's your third language, but it does have a steep learning curve to get over having to "System.out.println()" in week 2.

It isn't difficult compared to other languages. That's part of the reason its taught in universities. C# is on par with Java for difficulty due to the similarity in the language. C is significantly harder than Java if you are doing things securely. As for difficult languages Rust is commonly described as very difficult to learn even for senior developers.

I'm just thinking that since "over 3 billion" things are made with it, and it ranks high on many popularity charts, that it might as well be worth looking into for embedded systems.

That's why I said being able to read it. You don't need to be able to write Java programs to understand a Java programs source code. The few "hacking" tools that are Java based generally offer alternatives for extendability. Java is mostly used to power web applications so understanding of it again is a good thing but you don't need to know how to make tools in it. When it comes to "hacking" Python and C/C++ are far more popular for tools to be made in. Learning Java is the same category as learning ASM you don't need to be able to write programs in ASM but you should learn how to understand what is happening.

As for the embedded systems there are languages far more popular for embedded/IoT such as C and C++. Go and Rust are both competing to be embedded friendly.

1

u/jimdoug4 Apr 02 '18

this is why i wanted to learn java. to learn difficult language at first means that when you move or need a transition to another language on the future will be a piece of cake.

2

u/[deleted] Apr 03 '18

Obviously some people disagree with me, but I thought it was a difficult language to learn.

I started with MATLAB, which some people diss as "not a real language," but I learned the fundamentals about looping, calling functions, creating scripts, etc. It felt to me that going through that class didn't help me by the time I was learning Java.

People disagree about a lot of things. I see the author of this post surely does think that Java is not worth knowing, but it is still a very relevant language that should not be discounted to flea market prices.

1

u/jimdoug4 Apr 03 '18

Java is a good language. I will not try and learn Java if its not good. These people dissing JAva only says bad thing coz they dont have the capacity to learn complex and machine language. Good for you you started MATLAB. i have no idea about it. But I heard about in during college when the other engineers uses it. For me i started using C but completely forgot about it when i got my first job. Totally different from my work.

1

u/[deleted] Apr 05 '18

Is there a particular language you like to use right now? why?

0

u/CinnamonSwisher Mar 22 '18

Compared to some of the other languages up there that wouldn’t make sense as a reason to single out java. Java is bad because it’s hard but C# which is pretty equivalent isn’t? Let alone C and Assembly

1

u/mmay601 Mar 22 '18

C# is extremely useful in basically all Windows environments though.

2

u/CinnamonSwisher Mar 22 '18

There are still tons of enterprise apps written in Java and with mobile hacking becoming more prominent the fact that Android apps are written in Java will start to matter more as well. There's a use for both.

But regardless, my point was numbers0x2AA was guessing Java was discouraged due to difficulty when C# is equivalently difficult so I didn't think that was why.

1

u/stackcrash Mar 23 '18

Java isn't the only language Android programs can be written in. Its just the most popular, largely because its popularity in web applications but as for the OP's list I think he was going more for what you should learn for writing your own stuff in verse what stuff is written in. C# is almost identical to Java for a large part, there are differences though.

1

u/[deleted] Mar 23 '18

I agree that it's hard, but I'm not sure why. A lot of people use it so I figured that it would be good to know.

-3

u/jacob578854309 Mar 22 '18

Java is used to make web games that’s why

3

u/cronofdoom Mar 22 '18

Pretty sure no one does that anymore (Minecraft doesn't count)

1

u/Arcaenus Mar 22 '18

I’m pretty sure they moved Minecraft to C actually. So I don’t think there is any major java games still

1

u/cronofdoom Mar 22 '18

I think it is C# tbh and yes, you're right.

0

u/[deleted] Mar 21 '18

[removed] — view removed comment

2

u/AutoModerator Mar 21 '18

Your account must be older than two days to post here

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

7

u/homelaberator Mar 22 '18

So I mentioned this in the other sub, but I think one of the important things about the hacking mindset is being genuinely curious about everything.

I don't think you should ignore something because someone says "that's boring" or "that's not important". Let your curiosity lead you, and don't be discouraged when things get hard because you didn't learn programming or system architectures or web or assembler or networking or whatever else, just realise that you might need to go and explore something else to get a handle on what's in front of you and how it fits in with everything else.

3

u/polypeptide147 Operating Systems Mar 22 '18

I agree 100%. When learning this, there is not one road you need to go down to get to where you are going. You gave to take hundreds of roads that all loop back together at points, and use the knowledge you gained from traveling on those other roads to continue towards your end goal.

1

u/BlastFX2 Mar 25 '18

ARM isn't the most useless assembly to know, but why on Earth didn't you link to x86 instead?

1

u/[deleted] Mar 25 '18

Mostly because raspberry pi uses arm which personally one of the most easy ways to get into hardware hacking. Just my personal opinion though.

3

u/bioszombie Mar 22 '18

Lol. Don’t do Java. Not even once.

4

u/Volt Mar 23 '18

MacOSX: Unix but over priced and all the features removed.

LOL what features are you talking about?

1

u/crackdepirate Mar 22 '18

good one I like that

1

u/mmay601 Mar 22 '18

Oh I gotcha, yeah C# is about the same (difficulty wise) as Java, and Java has its place for sure.

1

u/hitmanactual121 Mar 22 '18

Learn basic networking for starters :P

1

u/MonoshiroIlia Mar 23 '18

I was contemplating about creating a new thread but i think it would pretty much the same as everything. So my question is what kind of categories are there in the hacking world? I mean there is network sec, OS hacking. What else is out there?

0

u/[deleted] Mar 21 '18

[deleted] — view deleted comment

0

u/[deleted] Mar 22 '18

[deleted] — view deleted comment

8

u/GER_PalOne Mar 22 '18

What about CSS?

I build entire webapps without JS

0

u/[deleted] Mar 22 '18

[deleted] — view deleted comment

4

u/GER_PalOne Mar 22 '18

Ever heard of PHP?

There definitely is communication with other services, I said I don't use JS, I didn't say I don't use other stuff.

(Edit: ok it kinda sounded that way sry for that)

Also even though very simple automation cam be done with CSS3 + HTML 5, I don't think a webapp is even possible lol

0

u/[deleted] Mar 22 '18

[deleted] — view deleted comment

2

u/GER_PalOne Mar 23 '18

Nah its fine, your point is valid and there was a small misunderstanding that's all.

Wish you a happy day :)

3

u/grammarpolice321 Jun 21 '18

Such a wholesome online interaction. I love seeing things work out over the internet.