C/C++ for Hackers: Part 4 (Programming vs Scripting)

welcome back, fellow hackers! as i already mentioned in the previous part of this series, i will make a special article where i will only talk about the differences between programming and scripting. and here it is! so with that out of the way, let's get started!

What Are Scripting Languages?

scripting languages and programming languages are not that different, actually. both are made to execute instructions on a computer. but there still are some key differences: scripting languages (like Bash, Python, Ruby...) are mainly designed to automate certain tasks (especially Bash). a lot of hackers use Python to write exploits (though i prefer doing it in Metasploit). scripting languages like python can have an extensive amount of functionality, but scripting languages have one big downside: they are slow. that is because unlike programming languages, scripts are interpreted, meaning that the program executes command per command, rather than throwing all commands together and translating it to machine code.

What Are Programming Languages?

programming languages are somewhat the opposite of scripting languages. programs are a lot faster than scripts because they get compiled. which means that the code gets translated to 1's and 0's and is able to interact directly with the CPU. this isn't the case with Python. Then again, programming languages also have a downside. they lack the flexibility offered by scripting languages. this doesn't mean that programming languages can't do much, however.

Conclusion

programming and scripting languages are different from eachother. there is no white and black when it comes to programming vs scripting. the perfect balance is using scripts and programs together. when you need to automate tasks, use a scripting language. when you need to make something fast, like an SSH password cracker, you should make it using C or C++
that's it for now folks! i made this tutorial because it seems that some people still confuse programming and scripting languages. i hope this clears things up for the newcomers! also, if you are interested in scripting, go check out master OTW's tutorials on scripting.
in the next part, we will learn more about the GNU GCC compiler and it's options.
SHARE

About Unknown

    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment