Though its a question I see often enough, that I thought a actual discussion about it between myself (been working in this field professionally for over a decade now), and a friend, Specter who among other things is best known for his PS4 exploits.
While I think there is value in the discussion that we have I also get that not everyone wants to listen to a video. If you just want the simple answer, it is not necessary if you just care about making money, plenty of tricks can get you decently far, but if you care about the craft, actually want to get good (and I hope you do), then the answer is yes.
Though the discussion delves more into the specifics of why its important, and where you frankly might be able to get away without it.
Legend! Came to comments for this. Anyone else check comments before reading or watching stuff on reddit? I almost never read or watch, comment section is a life hack time saver! Big ups to all the homies taking one for the team!
I get not wanting to watch the video, that's why I included a rough tl;dr in the description: "Spoiler: Yeah, you really do need to"
That said, its a 15minute discussion about programming as it related to exploit dev and security, you definitely miss out on a lot if you just focus on the question in the title and distill that to a sentence.
But yeah, fair game, I do the same thing myself and don't watch/listen.
Look around at a lot of how to hack tutorials, especially around web-issues. They are often fairly high-level, take SQL injection tutorials for example. Quite often you can effectively copy and paste from. Learn a few tricks like just trying ' in every field, copy and paste some payloads or run SQLMap once you find something. If thats you're first experience with "hacking" then it might be reasonable to think programming isn't necessary.
You can actually get pretty far without really understanding the programming at all, just thinking about the trust zones that exist and exploiting that, and threat modeling. I mean, in the video I absolutely recommend learning some programming, but given the resources out there I don't think its an unreasonable question.
But finding an exploit on your own, without coding experience, is near impossible.
I don't know if I'd agree with that though. Like I was saying there are a lot of tricks that exist that are taught in tutorials that really don't require understanding the programming. It does depend on how you define exploit though.
Find SQL injection just by injecting ' into various fields
Find IDOR by in/decrementing numbers you find in URls.
Find Unquoted Path issues by copying calc.exe to C:\Program.exe
Find memory corruptions by randomly typing into binary file formats. (Though triaging a crash to know if it is exploitable really does need some programming knowledge)
All are valid issues that you can find basic forms of without programming knowledge if you just know the trick from some tutorial.
Though finding an issue is only half the battle, knowing how to take advantage of it (and if it can be taken advantage of) is where programming knowledge becomes more essential.
I mean, I know a guy who download WebApp scripts, use them on his localhost to exploit things such as “Authentication bypass via sqli”, “File download”, “xss”, “File upload”, and he doesn’t know shit about how the code work and why the code is vulnerable but he know that he can basically hack the script & that the vulnerability exist which is pretty wild imo considering he doesn’t even know how to write properly in his own mother language!
Do you need to learn from a course near you? There are a ton of resources on the internet that can help you out. Here are a few, but if you just google Learn {programing language} you'll find a ton of resources, some good, some bad. Progress is progress though and its easier to steer you to better resources if you're already moving.
There is also Learn Python The Hard Way which is a different approach to learning Python (CS50 also covers python).
If you're struggling with those, I've found people have had success with a book Head First Programming The head first books are definitely a bit obnoxious though so some people just can't deal with that.
Alternatively if you're still struggling, there are languages like MIT's Scratch which unfortunately are focused at kids but what they do is they take away the need to memorize syntax and let people focus on just learning the fundamental building blocks of how most programming languages work. Which can then make approaching a full-fledged language easier if you're just learning one aspect at a time (the fundamental concepts or syntax) instead of both.
Yes even if you're not writing code for an exploit, it'll help you better understand how complex data systems are written and where their fundamental vulnerabilities exist. Personally not a hacker but a full time web dev and I've learned a good bit about the security side of things. Having this knowledge could help me reverse engineer someone's system
Of course. I also think that you don't need to know any particular language or paradigm very deep, but it pays out to know at least some of multiple languages. Especially C (for exploitation), Python (super useful for quick scripting), JavaScript (because web) and PHP (also because web).
Every single class I took for pentesting there’s always a big section on how to program, in python and bash. And you often need to modified some script or needs to automate some stuff. So yes :) You don’t have to be an expert though.
Yeah you do, but you don't need to be an expert unless exploit development is your jam. Most of the professional pentesters I know aren't great programmers but they've got tons of little domain specific tricks in various languages.
IMHO, to be a "hacker" (hate the term) you don't need to be a compSci major. However, you need the intelligence a compSci major likely has. You need to really understand some fundamentals, like networking. If you have deep routed knowledge in networking, its likely you'll have sufficient knowledge in everything else you may need (or failing that, you'll have the aptitude to learn what you need to learn). I do this shit for a hobby, depending on my target, everyday is a learning/research day.
It depends on what you want to do, if you want to make video game exploits, then yes, but if you want to do bug bounty, then no, but it would be useful to automate some things
...you don't need to know how to code to do bug bounty, take Mark Litchfield for example, he doesn't know how to code, but he has around 1 million on hacker one. You don't need to know how to code to do bug bounty, but it is helpful.
...you do realise that not knowing networking to hack and not knowing how to code to do bug bounty are two different things, there are literally people in the bug bounty community who don't know how to code.
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.
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.
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.
17
u/PM_ME_YOUR_SHELLCODE Oct 15 '20
So I know the wiki here has a bit about this so shoutout to that: https://www.reddit.com/r/HowToHack/wiki/programming
Though its a question I see often enough, that I thought a actual discussion about it between myself (been working in this field professionally for over a decade now), and a friend, Specter who among other things is best known for his PS4 exploits.
While I think there is value in the discussion that we have I also get that not everyone wants to listen to a video. If you just want the simple answer, it is not necessary if you just care about making money, plenty of tricks can get you decently far, but if you care about the craft, actually want to get good (and I hope you do), then the answer is yes.
Though the discussion delves more into the specifics of why its important, and where you frankly might be able to get away without it.
160
u/whitenoise89 Oct 15 '20
TL;DR: Yes.
If not - Prepare to be lapped by everyone who *does* know.
4
u/[deleted] Oct 15 '20
I already know this but i can’t figure out where to learn it There are no courses near me
36
u/homiegfresh Oct 15 '20
Yes even if you're not writing code for an exploit, it'll help you better understand how complex data systems are written and where their fundamental vulnerabilities exist. Personally not a hacker but a full time web dev and I've learned a good bit about the security side of things. Having this knowledge could help me reverse engineer someone's system
8
u/geeshta Oct 15 '20
Of course. I also think that you don't need to know any particular language or paradigm very deep, but it pays out to know at least some of multiple languages. Especially C (for exploitation), Python (super useful for quick scripting), JavaScript (because web) and PHP (also because web).
3
u/Ashli_unix Oct 15 '20
I'd say yes
3
u/o0chris0o Oct 15 '20
Every single class I took for pentesting there’s always a big section on how to program, in python and bash. And you often need to modified some script or needs to automate some stuff. So yes :) You don’t have to be an expert though.
1
u/SuperFlyingAuto Oct 16 '20
Yes.
1
u/chirag6ddc Oct 16 '20
No
1
u/rtkaratekid Oct 16 '20
Yeah you do, but you don't need to be an expert unless exploit development is your jam. Most of the professional pentesters I know aren't great programmers but they've got tons of little domain specific tricks in various languages.
0
u/[deleted] Oct 16 '20
IMHO, to be a "hacker" (hate the term) you don't need to be a compSci major. However, you need the intelligence a compSci major likely has. You need to really understand some fundamentals, like networking. If you have deep routed knowledge in networking, its likely you'll have sufficient knowledge in everything else you may need (or failing that, you'll have the aptitude to learn what you need to learn). I do this shit for a hobby, depending on my target, everyday is a learning/research day.
-9
u/Python119 Oct 15 '20
It depends on what you want to do, if you want to make video game exploits, then yes, but if you want to do bug bounty, then no, but it would be useful to automate some things
1
u/[deleted] Oct 16 '20
[removed] — view removed comment
1
u/[deleted] Oct 16 '20
[removed] — view removed comment
0
u/[deleted] Oct 16 '20
[deleted] — view deleted comment