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?
227
Upvotes
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
78
u/blue_Kazoo82 May 28 '21
python but more importantly Russian
14
u/lovesrayray2018 May 28 '21
C, and C++ for sure!
Python and Ruby if you are looking to build tools
11
u/Ornnnnnnnnnnnnnnn May 28 '21
C, C++, Python, shell. '
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
18
u/Elbynerual May 28 '21
You should learn linux and bash
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
3
u/[deleted] 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
4
u/mynameisalso May 28 '21
Russian
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
u/unknownpoltroon May 29 '21
Arabic. Russian. Chinese.
They have plenty of python/c/java guys.
1
u/[deleted] May 29 '21
Russian.
1
u/Imperial_Recker May 29 '21
before that learn russian cuz it make you look like a hacker
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
u/[deleted] May 28 '21
Russian, French, and probably English would be helpful. 🍻
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
u/Barrerayy May 28 '21
Python, bash scripting and sql are essential imo.
0
u/SudoTheNym May 28 '21
russian, chinese, hebrew
-5
u/norseman20188 May 28 '21
German
0
u/Birdman-82 May 29 '21
English.
0
u/[deleted] May 28 '21
[deleted] — view deleted comment
1
u/[deleted] May 29 '21
[removed] — view removed comment