r/HowToHack • u/OnceIWasABear • May 28 '21
What language or languages should I learn if I want to start getting into cybersecurity?
I'm a teenager who has a lot of free time, I want to use that free time for something useful instead of playing games, are they're any programming languages I need to learn?
78
u/blue_Kazoo82 May 28 '21
python but more importantly Russian
12
3
u/Riven_Dante May 29 '21
Is this with a hint of seriousness?
2
u/blue_Kazoo82 May 29 '21
Nah I’m being legit. Python is great and needs to be known. Russian will take you leagues farther and allow you to tons of more shit. Looking into APTs, threat hunting, etc (and the paychecks will be well worth it.)
2
14
u/lovesrayray2018 May 28 '21
C, and C++ for sure!
Python and Ruby if you are looking to build tools
4
u/appsecSme May 28 '21
There is no need to preemptively learn Ruby, unless a specific role asked for it at this point, or unless you were planning on doing web development and liked Ruby's stack.
2
11
u/Ornnnnnnnnnnnnnnn May 28 '21
C, C++, Python, shell. '
6
u/Ornnnnnnnnnnnnnnn May 28 '21
And for web : Php & SQL.
2
0
10
u/DoubleAgent10 May 28 '21
Start off with python. I recommend codecademy just to get your feet wet. It doesn't dive into the theory that much, just play around with the python 2 course, no need to pay yet.
After that look around for some courses that interest you. There's a free youtube series called python for everybody that does a much better job explaining what is actually happening when using python and how to setup a developer environment.
There is also courses on udemy (wait for sales to happen) that are pretty good. Z security is a good starter and has a course that teaches python while teaching to write malware and other programs (https://www.udemy.com/course/learn-python-and-ethical-hacking-from-scratch/)
Once your bored of python I recommend learning linux commands and then bash scripting. Try Hack Me has some great starter resources. If you have a student email you get a discount for the membership too if you want the paid stuff https://tryhackme.com/ . Play around with the different subjects to find out what you like. Networking, web app, malware, ect.
If you like web app, learn html and make a bare bones website, download burpsuite and mess with portswigger academy https://portswigger.net/web-security. If you like networking try to complete boxes on hack the box https://www.hackthebox.eu/ . If you like programming and learning about malware then learn assembly language and reverse engineering https://www.amazon.com/Practical-Malware-Analysis-Hands-Dissecting/dp/1593272901 and youtube channel liveoverflow
3
u/DoubleAgent10 May 28 '21
oh and always take notes however is easiest for you. In your phone, google drive, one drive, paper, ect.
18
u/Elbynerual May 28 '21
You should learn linux and bash
8
5
May 28 '21
What is your opinion on learning UNIX concepts ? I have a book which teaches that.
4
u/AngryGoose May 28 '21
Not OP but I used UNIX at work for several years before getting into Linux and it made it quite easy. They are very similar as far as commands, file structure, etc... go.
3
u/Elbynerual May 28 '21
Very similar to Linux/bash but most cyber security jobs are going to want you to be really proficient in Linux. Bash is very basically just the console commands of Linux, but using them in a way that's extremely efficient. The foundations are what you want to be absolutely amazing at, the rest will come easy!
17
u/MattRighetti May 28 '21
This is the wrong question imo, you don’t get into cyber security by studying a programming language, sure it’s a great tool that you will need but cyber security requires computer science logic, math and network notions that must be known way more in depth than the programming language probably. You could also register to HackTheBox and follow their incremental guides to get to know more about this, don’t simply start by learning the programming language, but study the programming language in parallel with the stuff that you really need
7
u/silenta237 May 28 '21
This. Writing an exploit? Depends on the target. Learn to read and write assembly and you'll be in a great spot. Each language makes "some task" easier. The implication being you can do anything in any language. The domains MattRighetti points to are what you study if you want to find zero days, or write detectors.
3
May 29 '21
If this will be your first language, I highly recommend Python. It was literally invented to be a fun language to learn.
2
u/F5x9 May 29 '21
You can dick around with any language and learn how to program. Once you have a handle on programming, you can transfer those skills across many languages. With that said, Python was written specifically to be easy to learn. That’s a good start.
SQL is a good language to learn, both because of its widespread use and its stark distinction from languages where you tell the computer what to do. In SQL, you tell the computer what results you want and ignore how it gets it.
This advice isn’t specific to learning how to hack.
2
u/AMv8-1day May 29 '21
Python, bash and Powershell scripting. Start there, then explore organically as professional or personal opportunities come up.
2
u/_discEx_ May 29 '21
First learn C, also go to concepts like pointers solve some basic logical problems. Prime number etc.
Then just select 3 languages and learn them as much as you can. Select ASM, Python, html. And keep moving on , After assembly go to reverse engineering, exploit Dev.
Keep learning python parallely, START making cyber security tools and malwares like keyloggers Then after python do some more network security projects like a network scanner or a arp spoofer and move on to bash/Powershell for automation
And in the html part, learn web dev html, CSS, JS make projects then you'll know how web works. Then go to backend PHP mySQL
This isn't tough 1 hour for each (3hrs/day) will teach you a lot of things, You'll learn so much that by doing some interview questions you'll also be able to land programming job if security doesn't work out
And this will also teach you 3 aspects of security
Exploit dev/ Reverse engineering
Web app pentesting
Network security and automation
4
1
u/Shohdef May 29 '21
Python is a great starter language to learn with. It's very beginner friendly and consistent. It doesn't have funny and confusing quirks like Java.
1
1
1
1
u/stebgay Jun 02 '21
i learned python basics by reading "automating the boring stuff with python" its free
but that alone isnt enough
what i did next was make a discord bot, I am going to be honest, I had no idea at the time wtf what are they talking about in docs and stuff
eventually i just followed examples i found online and tried their pattern to make a discord bot
1
1
u/Swoompy May 28 '21
Try this one out for python, it’s a amazing free course!
https://www.udacity.com/course/introduction-to-python--ud1110
1
0
-5
u/norseman20188 May 28 '21
German
1
1
u/norseman20188 May 29 '21
Everyone fucking disliking my comment, the geezer is gunna need to learn German as he will want to attend one of the most amazing hacking conferences there is, Chaos Computer Club (CCC) 👌🏻
0
0
May 28 '21
[deleted]
3
0
u/Quasar420 May 28 '21
You know Java and C++ but can't structure a sentence. Interesting... You misspell all sorts of words and you write like a 14 year old. I really don't believe you. You can probably copy and paste other peoples code and write words to a command prompt at best.
1
1
May 29 '21
[removed] — view removed comment
1
u/AutoModerator May 29 '21
Your account does not have enough Karma to post here. Due to /r/HowToHack's tendency to attract spam and low-quality posts, the mod team has implemented a minimum Karma rule. You can gain Karma by posting or commenting on other subreddits. In the meantime, a human will review your submission and manually approve it if the quality is exceptional. After gaining enough Karma, you can make another submission and it will be automatically approved. Please see the FAQ for more information.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
195
u/Yungsleepboat May 28 '21
Python for automation, bash for using linux (the most important ones)
HTML for web apps (you only need to know enough recognize the structure of a website)
Java script for finding additional vulnerabilities in web apps that use java script
C (and variants) for buffer overflow and reverse engineering (many programs are written in C and variants)
SQL to learn SQL injection
PHP for XSS attacks
Shell for Windows privilige escalation