Jump to content
Hak5 Forums
ICA$1396

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

  • Upvote 1

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

Programming is a lot like a chess game. You start by learning the moves then you work your way into things like openings and concepts like controlling the board and gambits. The into end games .

You can start with a simple language like python, ruby or BASIC, to learn things like syntax and programming logic and work your way into more syntactically complicate languages like C and finally into An assembly language. Some people say you can learn an assembly language like x86 or ARM as a first language and I'm sure some people can but I barely understand it even after working with several other languages.

If there is a college in your area with an instructor willing to teach you take advantage of that. I first taught myself just by downloading an IDE and watching some YouTube tutorials. I could have probably saved a lot of headache by taking some computer science classes if they were available.

Share this post


Link to post
Share on other sites
On 9/1/2018 at 7:11 AM, vailixi said:

You can start with a simple language like python, ruby or BASIC, to learn things like syntax and programming logic and work your way into more syntactically complicate languages

This was exactly how I started programming, couldn't have wrote it better. :-)

 

Share this post


Link to post
Share on other sites
Posted (edited)

i guess this questions doesn't matter exepe to use foreign language to have benefits views ;) 

Edited by digininja
removed spam URLs

Share this post


Link to post
Share on other sites
Posted (edited)

Each is basically a major company coding language 

 

c++ or c#  /windows 

you got python ruby /linux basically same. 

you could even try learning the 

LUA coding language which would be iMAC.  Lots of great hackers use iPhones.

Edited by Bigbiz

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.

×