Image
 
linkedin_logo.png rss_logo.jpg
twitter_logo.png youtube_logo.jpg
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 69 guests and 3 members online
 
Advertisement

You are here: Home arrow Ethical Hacking Discussions and Related Certificationsarrow Programmingarrow Python or Ruby.
EH-Net
May 22, 2013, 08:51:13 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Go back to The Ethical Hacker Network Online Magazine Home Page
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Python or Ruby.  (Read 24452 times)
0 Members and 1 Guest are viewing this topic.
H4TT1fn4TT
Jr. Member
**
Offline Offline

Posts: 54



View Profile
« on: February 24, 2011, 11:01:46 AM »

So I learned C and C++ and wanted to start studying Python or Ruby now but I find it hard to choose not really knowing the future of Ruby.

I excluded Java because I simply get a bad feeling from it for some reason.

What are your views on the future of Ruby. For Python there are some nice tools out there I found out (tools for GUI programming etc.). My main aim is programming stuff that has to do with networking.

I also would appreciate some good advise on study material if anyone has that.
Logged

"The quality of programmers is a decreasing function of the density of go to statements in the programs they produce."
xXxKrisxXx
Hero Member
*****
Offline Offline

Posts: 512



View Profile
« Reply #1 on: February 24, 2011, 11:50:22 AM »

I'd say go with Python - but knowing Ruby would be good if you plan on toying with Metasploit Modules. Python also has some weight in the industry right now. I look around for programming jobs sometimes (being a software major), and some folks actually want Python background. 

With Python, I've seen some beautiful stuff done involving networking (just take a look at some of the scripts in BackTrack for starters). Where I personally saw the real power of Python was in the Penetration Testing with BackTrack course, where the OffSec guys had developed a few python scripts which simulated Real-Live environments. To not be so vague about this, in the labs I often came across a couple of the machines I compromised having scripts that would be used to simulate a user checking his/her e-mail, visiting web pages, etc.

Also, hanging out on MaXe's site Intern0t and participating in their, 'Write a Program' challenges, I've noticed a lot of guys using Python and can get code done quicker and a lot more efficient!

If your going to look into networking, I'd say don't count Python out. The 'bad feeling' you get from Java is odd. Java has a lot of market value, it's portable across OS's and has great features in the java.net libraries that you could use to write some sweet tools.

Either route you go, your going to get closer in picking up on syntax from each language. Both languages have similar syntax so which ever one you favor you have nothing to lose when going back and learning the other.

-kris
Logged

eCPPT, GCIH, OSCP, OSWP
H1t M0nk3y
Hero Member
*****
Offline Offline

Posts: 864



View Profile
« Reply #2 on: February 24, 2011, 12:29:14 PM »

I am a Java developer and I use Python when it comes to hacking. I only READ ruby from Metasploit.

So python without hesitation.
Logged

OSCP, GPEN, GWAPT, GSEC, CEH, CISSP
H4TT1fn4TT
Jr. Member
**
Offline Offline

Posts: 54



View Profile
« Reply #3 on: February 24, 2011, 01:14:53 PM »

I will go for Python then. I also tried to search a bit more on google and the support community and online content on Python is way bigger than for Ruby.

Just one question that has nothing to do with this. It used to be that C and C++ where faster than the higher programming languages. When coding a function that does brute forcing is it better to code this function in C or C++ still or is the speed neglectable compared with Python?
Logged

"The quality of programmers is a decreasing function of the density of go to statements in the programs they produce."
yatz
Full Member
***
Offline Offline

Posts: 222


View Profile WWW
« Reply #4 on: February 24, 2011, 01:26:56 PM »

Python stuff.

http://www.ethicalhacker.net/component/option,com_smf/Itemid,54/topic,6208.msg33147/#msg33147

http://www.ethicalhacker.net/component/option,com_smf/Itemid,54/topic,5617.msg29536/#msg29536
Logged

"Live as though you would die tomorrow, learn as though you would live forever."

CCNA, MCSA, MCTS, Sec+, Net+, Linux+, CEH
don
Editor-In-Chief
Administrator
Hero Member
*****
Offline Offline

Posts: 4167


Editor-In-Chief


View Profile WWW
« Reply #5 on: February 24, 2011, 10:56:52 PM »

Try this for Python:

Desire to Pass on Love of Programming, Man Pens Book with Pre-Teen Son

Recommended python book for beginners, even if you're over 10 years of age.

Don
Logged

CISSP, MCSE, CSTA, Security+ SME
H4TT1fn4TT
Jr. Member
**
Offline Offline

Posts: 54



View Profile
« Reply #6 on: February 25, 2011, 09:27:17 AM »

Try this for Python:

Desire to Pass on Love of Programming, Man Pens Book with Pre-Teen Son

Recommended python book for beginners, even if you're over 10 years of age.

Don

The content looks interesting. To bad I can only find a copy near me for $999, lol. Will look around the bookstores here if any of them can get a hold of a copy instead of buying it online.  Cheesy
Logged

"The quality of programmers is a decreasing function of the density of go to statements in the programs they produce."
chrisj
Hero Member
*****
Offline Offline

Posts: 1163


View Profile WWW
« Reply #7 on: February 25, 2011, 09:34:00 AM »

I've posted this in a few threads, including one linked above...

http://diveintopython3.org/


Edit:
Also, don't know where in the world you are, but amazon has the book on it's site for a nice price.
Logged

OSWP, Sec+
mesho
Newbie
*
Offline Offline

Posts: 24


View Profile
« Reply #8 on: February 25, 2011, 10:16:51 AM »

if you have asked me this question before 10 years i'll answer differently!

but for the meantime and moving further Python is the 1st hacker must to know scripting language.

Python beats Perl when it comes to writing exploits because Python more clean & easy scripting language.

C is mandatory for System Hacking whether on Win, Mac or Unix alike OSs'.

regarding Java, i'm not a big fan for OOP so i'll escape it  Wink

last thing, here's a good path to follow in learning python:

1) check the Google Python Class,
http://www.youtube.com/watch?v=tKTZoB2Vjuk

2) very good video series in learning python from MIT
http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-00-introduction-to-computer-science-and-programming-fall-2008/video-lectures/

3) and you are ready to go with
Gray Hat Python: Python Programming for Hackers and Reverse Engineers
« Last Edit: February 25, 2011, 10:56:08 AM by mesho » Logged
celord
Guest
« Reply #9 on: February 25, 2011, 03:38:54 PM »

+1 for Python, It has solved me a lot of problems, and take a look a w3af, and scapy two examples of great tools made with Python
Logged
timmedin
Sr. Member
****
Offline Offline

Posts: 469



View Profile WWW
« Reply #10 on: March 01, 2011, 08:42:43 PM »

Python, if for no other reason than Scapy.
Logged

twitter.com/timmedin | http://blog.securitywhole.com
f4csimil3
Newbie
*
Offline Offline

Posts: 22



View Profile
« Reply #11 on: May 11, 2011, 01:33:11 PM »

Really great post regarding Python vs Ruby, i was reading it and learned a lot.
Also had my questions answered regarding lanjuage.

Thanks guys.
Logged
jacobadam
Newbie
*
Offline Offline

Posts: 10


View Profile
« Reply #12 on: May 12, 2011, 02:00:51 AM »

I would suggest Python. Python is an interpreted, general-purpose high-level programming language whose design philosophy emphasizes code readability. Python aims to combine "remarkable power with very clear syntax”, and its standard library is large and comprehensive. Its use of indentation for block delimiters is unique among popular programming languages. Python supports multiple programming paradigms, primarily but not limited to object-oriented, imperative and, to a lesser extent, functional programming styles. It features a fully dynamic type system and automatic memory management, similar to that of Scheme, Ruby, Perl, and Tcl. Like other dynamic languages, Python is often used as a scripting language, but is also used in a wide range of non-scripting contexts.
Logged
millwalll
Guest
« Reply #13 on: June 21, 2011, 06:19:22 AM »

If you want do python I have lots good resources on my site not sure if I can link to it but it save me typing them all out.

http://www.jamierougive.co.uk/tutorials.html

Take a look at thenewboston and there some under the python heading.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.071 seconds with 23 queries.
 
Exclusive Deal

sansfire13_245x90_cw90.jpg
SANSFIRE 2013
June 15 - 22

5% Off w/ Code: EHN_5

SANS Deals 4 EH-Netters
5% OFF Any SANS Course in Any Format!
Coupon Code: EHN_5 Including SANS Rocky Mountain 2013 & SANS Boston 2013
Polls
Compared to this year, 2013 will be:
 
Recent Forum Topics
EH-Net News Feeds
Latest Additions
 
         
Advertisement

© 2013 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.