What Are The Top Machine Codes That A Hacker Must Know Well

For Security reasons and other reasons, what P.LANGS make a hacker authentic in the hacking field?

it depends on what you want to hack, usually python is the go-to language for quick exploitation because of the relatively simple syntax and the abundance of modules that allow to interface with different services and processes quickly (one example is pwntools)
at the end of the day you can achieve everything you want with almost every programming language, some will allow you to do so in less time, some will be more efficient but if you dont really have any specific needs for a particular project you should go with the language you are most confident it

most PoCs and scripts you find on github are written in python, more complicated and kernel-level exploits might be written in C, most of the metasploit script repertoire is written in ruby

so, if you are searching for a beginner friendly programming language to start hacking, i’d say python is your best choice, there are thousands of tutorials, courses and books to learn from
nothing will prevents you from learning more languages like C, ruby, go and others

1 Like

yup i will add to that. Because pretty much all scripts you need already exist, no point writing your scripts unless you are an expert or it is some out of the box situation. I am going to paste what chatgpt spitted for me because this is a really big topic we can talk about for days about ‘why this’ ‘why that’.

In the field of hacking, there are several programming languages that are commonly used by hackers for various purposes. However, it’s important to note that hacking activities are generally illegal and unethical. As an AI developed by OpenAI, I cannot provide assistance or support for any illegal activities, including hacking.

That being said, it is important to understand that programming languages themselves do not make someone a hacker or determine their authenticity. Hacking involves a deep understanding of computer systems, networks, vulnerabilities, and security mechanisms. It requires knowledge in various areas such as networking, operating systems, web technologies, databases, and cryptography.

Nevertheless, for the purpose of defensive security or ethical hacking, individuals might learn programming languages to better understand and protect computer systems. Some programming languages that are commonly used for security-related tasks include:

  1. Python: Python is a versatile language often used in the field of security due to its simplicity, extensive libraries, and readability. It has a rich ecosystem of security-related libraries and frameworks.

  2. C/C++: These low-level languages are often used to write system-level programs and exploit vulnerabilities at a lower level, such as buffer overflows. Understanding these languages can help in understanding the inner workings of systems.

  3. JavaScript: JavaScript is widely used in web development, and knowledge of it can be valuable for understanding web application security, such as cross-site scripting (XSS) and cross-site request forgery (CSRF) vulnerabilities.

  4. SQL: Structured Query Language (SQL) is essential for working with databases. Understanding SQL can be helpful in identifying and exploiting database vulnerabilities.

  5. Bash/Shell scripting: Scripting languages like Bash or Shell scripting are commonly used for automating tasks and performing system administration. They can be useful for penetration testing and developing security tools. + also used for binary exploitation.

3 Likes

depends what you are doing. If I were to advise someone wanting to learn what to do, I think having some computer science basics is incredibly helpful, because then you understand programming as opposed to a specific language, and you can more easily understand any language you see. So I’d recommend doing like an MIT Opencourseware on a class or two of their intro to CS, which is in python, which is a good beginner friendly language anyway, and also one of the ones you will likely see a bunch no matter what area of hacking you get into.

I think having some concepts of the HOW and WHY that those classes will give you, will probably be even more helpful now that you can basically just ask chatGPT to write your programs for you. But it’s also entirely possible that I think that because I have that knowledge and I’m scared it will become useless, heh.

but honestly, the single most important thing to do, is just “do”. Stop wasting time trying to figure out what language to learn, and just go learn one. Even if you decide 2 weeks into learning FORTRAN that you made a mistake and should have picked a different language to learn, I promise you you’ll be ahead of the person who spent 2 weeks browsing forums and watching youtube videos on what language they should learn, even tho you’ll never see a single line of FORTRAN again in your life.

EDIT: ugh, I have no idea why a 1 year old post was on the front page, I swear I didn’t bump this just to reply to a 1 line OP, and I didn’t notice till after I word vomited. I will shamefully exit now

Bash/Shell scripting: Scripting languages like Bash or Shell scripting are commonly used for automating tasks and performing system administration.

This is an excellent suggestion and often overlooked, I want to add to that, having some basic knowledge of VIM and even ‘sed’ and ‘awk’ is incredibly valuable. Being able to be efficient on the command line is game changing. You don’t have to be a wizard, even if you only learn how to close VIM and jump around in a document, you will have unlocked a higher level. Same for even just being able to do a simple for loop and some piping in bash.