Jump to content
Hak5 Forums

Which Language ?

Recommended Posts

Hello Every One

It is About 8 Months I Started Learning Security Fundamentals ( Security+ , CEH, ...) I Want To Know  For Writing Exploit Which Programming Language Is The Best, Python? Ruby? C++?


Share this post

Link to post
Share on other sites

Python is the most adopted in general.  It has a huge community and is much easier for beginners to learn.

Ruby was made to make programmers happy so it's far more intuitive for writing code that just works.  Metasploit uses Ruby so that's a security advantage to learning that.

If you want to learn a systems language for writing exploits I'd recommend Rust.  It's the lowest level language that won't give you segfaults.  It's made to be as fast as C but without the hassle.  Only thing is it's not a good “first language” and is very syntax heavy at first.  Rust can be integrated with other languages and is probably the first language to have working WebAssembly generated from it.  You can write Rust code and compile it to WebAssembly and that works natively in the web browser.

Of course that depends on what you mean by exploit.  There are systems that try to take advantage of people through the web and most of those are disabled (like Java and Flash) now in browsers, but JavaScript is here to stay.  JavaScript is probably the worst language to learn first as there are many wrong things about the way the language works that can baffle the most well seasoned developers.  Proof: https://www.destroyallsoftware.com/talks/wat

Share this post

Link to post
Share on other sites

maybe 6 ysars ago I chose ruby. I was interested in writing metasploit modules. 


Pthon has less limitations. I wouldn't bother with c++ until you figure out a years worth of python or ruby

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.