Home
Calendar
Certifications
Columns
Features
Forum
Resources
Vitals
Latest Additions
April 2013 Free Giveaway Sponsor - eLearnSecurity
Human Intelligence to Navigate the Security Data Deluge
February 2013 Free Giveaway Winner of SANS CyberCon Training
Interview: Bugcrowd Founders on Herding Ninjas for Crowdsourced Bug Bounties
Network Forensics: The Tree in the Forest
March 2013 Free Giveaway Sponsor - Mile2
Book Review: Violent Python
February 2013 Free Giveaway Sponsor - SANS
Holiday 2012 Free Giveaway Winner of Metasploit Pro by Rapid7
Course Review: SANS FOR408 Computer Forensic Investigations – Windows In-Depth
The Security Consulting Sugar High
Tutorial: Fun with SMB on the Command Line
Interview: Ilia Kolochenko, CEO of High-Tech Bridge
October 2012 Free Giveaway Winner of LearningGate Training
The Broken: Assessing Corporate Security in 2012 to Make a Better 2013
EH-Net Login
Welcome Guest.
Username:
Password:
Remember me
Lost Password?
No account yet?
Register
Who's Online
We have 36 guests and 1 member online
You are here:
Home
Ethical Hacking Discussions and Related Certifications
Programming
Which script language do you prefer?
EH-Net
May 26, 2013, 12:41:03 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Go back to The Ethical Hacker Network Online Magazine
Home Page
Home
Help
Calendar
Login
Register
EH-Net
>
Ethical Hacking Discussions and Related Certifications
>
Programming
(Moderator:
don
) >
Which script language do you prefer?
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: Which script language do you prefer? (Read 7362 times)
0 Members and 1 Guest are viewing this topic.
H1t M0nk3y
Hero Member
Offline
Posts: 865
Which script language do you prefer?
«
on:
February 24, 2010, 06:59:01 AM »
Hi,
I was wondering what script language you guys prefer to use to automate repetitive or boring tasks.
We can use shell scripts, perl, python, ruby and many others.
I personally know how to write shell scripts and I am currently learning ruby since it is used in Metasploit.
So, what you guys usually use? Do you use more than one?
Logged
OSCP, GPEN, GWAPT, GSEC, CEH, CISSP
zeroflaw
Full Member
Offline
Posts: 208
Re: Which script language do you prefer?
«
Reply #1 on:
February 24, 2010, 07:07:16 AM »
I've been using Perl for a while on Linux, sometimes prefer Bash. And I'm pretty much a Ruby guy when it comes to Windows. I usually prefer to write C\C++ programs unless the task is easier/faster to do in a scripting language.
Hmm, I need to learn Python sometime
ZF
«
Last Edit: February 24, 2010, 07:10:48 AM by zeroflaw
»
Logged
ZF
hayabusa
Hero Member
Offline
Posts: 1633
Re: Which script language do you prefer?
«
Reply #2 on:
February 24, 2010, 07:12:50 AM »
Ruby and Python are my tools of choice. Mainly because I'm comfortable with both, and both are heavily used in many of the newer tools from the security community, so it helps to understand their logic and workings, when I want to integrate my own code with theirs.
Logged
~ hayabusa ~
"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'
OSCE, OSCP , GPEN, C|EH
H1t M0nk3y
Hero Member
Offline
Posts: 865
Re: Which script language do you prefer?
«
Reply #3 on:
February 24, 2010, 07:15:39 AM »
Hayabusa,
Since you know both scripting languages, when would you choose python over ruby or vice-versa? I don't know much about both of them to understand the pros/cons of each.
I am definitively a Java guy, but it is often overkill for small tasks.
Logged
OSCP, GPEN, GWAPT, GSEC, CEH, CISSP
nebu10uz
Sr. Member
Offline
Posts: 368
Re: Which script language do you prefer?
«
Reply #4 on:
February 24, 2010, 10:00:11 AM »
I use Python for all my automated Windows tasks. I especially love the wmi module for connecting to remote hosts and querying for specific data. Thanks Tim Golden for his hard work on creating this library.
http://timgolden.me.uk/python/wmi/index.html
And also, I'll like to add that the Python communities are great and there's a lot of people that are willing to help if you get stuck with a piece of Python code.
Logged
Security+, OSCP, CEH
hayabusa
Hero Member
Offline
Posts: 1633
Re: Which script language do you prefer?
«
Reply #5 on:
February 24, 2010, 10:26:03 AM »
Quote from: H1t M0nk3y on February 24, 2010, 07:15:39 AM
Hayabusa,
Since you know both scripting languages, when would you choose python over ruby or vice-versa? I don't know much about both of them to understand the pros/cons of each.
I am definitively a Java guy, but it is often overkill for small tasks.
While I work in both, I'm no self-proclaimed 'expert' in either. Ultimately, Python tends to be my down-n-dirty language, if I need something fast, as I've got more time and experience with it, and can often even find someone else's code and modify / 'hack-it-up' it quickly, if needed. But that alone is not a differentiator. If I have more time, I might choose Ruby over Python, for some projects, too.
Honestly, for me, it's just a matter of preference, and which tool I feel I can work with, quickly and efficiently, for the task at hand. I can't really give you a solid 'This is why I chose this one, today, versus that one', aside of the fact, like I'd said, that it sometimes depends on the tool I'm going to use my code WITH, if any at all (Metasploit, Core, CANVAS, etc...)
As nebu10z mentioned, the community for Python is VERY helpful, if you're starting out, and I tend to find them easier to discuss things with than the folks backing Ruby (in my opinion and from my experiences, not speaking for everyone.) For me, before I knew either, I found Python to be easier to work into, as if you're already familiar with programming languages like Perl, etc, it's kind of 'more of the same.' Ruby's 'object-oriented' approach is slightly different from Python's (although once I got comfortable with it, I find it more 'elegant' and have found my 'objects' / chunks of code more portable and easier to move around, in Ruby, for different things,) and there are both similarities and differences between them.
For general differences and comparisons, check out:
http://www.wikivs.com/wiki/Python_vs_Ruby
What I can tell you is that Ruby seems to be the wave, as far as commercial security tools go, these days. Rails' capabilities, added to it for ease of porting to the web, really are making it a nice language to work with. I'm only in the beginning stages with Rails, and have a LONG way to go, but so far, I like it a lot, too.
Hope my objective opinion helps, but obviously be sure to get others, as some folks have differing opinions, tastes, preferences and needs. That's the nice thing about 'community,' as you don't have to choose one or the other, without first getting many folks' sides of the equation, and make a judgement based on what YOU feel comfortable with, in the end. Additionally, try things out, and see what style you like the best. I do think, however, that if you're currently working to learn Ruby, then you're investing your time well.
PS - as zeroflaw also pointed out, C/C++ comes in very handy. But I find that for quick needs, if one of the scripting languages suffices, I use them, before C/C++
Logged
~ hayabusa ~
"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'
OSCE, OSCP , GPEN, C|EH
Ketchup
Hero Member
Offline
Posts: 1021
Re: Which script language do you prefer?
«
Reply #6 on:
February 24, 2010, 03:31:44 PM »
I usually turn to plain shell scripting in both Linux and Windows for most of my scripting needs. Sometimes I will use perl on Linux or VBS in Windows. Those are my choices primarily because I don't need to install anything to get my scripts to work, making them very portable. For anything more involved, or when I need OOP, I usually go to C++ or even VB.net.
Logged
~~~~~~~~~~~~~~
Ketchup
H1t M0nk3y
Hero Member
Offline
Posts: 865
Re: Which script language do you prefer?
«
Reply #7 on:
February 24, 2010, 07:58:37 PM »
It's very interesting that almost everyone has is preferences.
To me, the bottom line is that it doesn't really matter. You pick the language of the tool you use or the one you prefer.
Thanks guys
Logged
OSCP, GPEN, GWAPT, GSEC, CEH, CISSP
partek
Newbie
Offline
Posts: 27
Re: Which script language do you prefer?
«
Reply #8 on:
February 24, 2010, 08:15:06 PM »
I typically default to Perl when I need to do something that I can't do in a simple shell script.
I've been been wanting to get a little more into Python and Ruby, but I'm usually in a situation where time is of the essence, so throwing in a new programming language isn't an option.
I did do a project in Ruby recently and really enjoyed the syntax even though it felt very awkward at first after working with perl for so many years. I can totally understand why ruby on rails has caught on in the web development arena.
Logged
CISSP, CISM, CISA, CCNA Security, OSCP, CEH
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
EH-Net
-----------------------------
=> Calendar Of Events
===> ChicagoCon 2007
===> ChicagoCon 2008s
===> ChicagoCon 2008f
===> ChicagoCon 2009s
=> Ethical Hacktivism
=> News Items and General Discussion About EH-Net
===> Greetings
=> Special Events
-----------------------------
Ethical Hacking Discussions and Related Certifications
-----------------------------
=> General Certification
===> Networking
===> OS
===> Security
=> Compliance, Regulations & Standards
=> Control Systems
=> Cyber Warfare
=> Forensics
===> CCE / MCCE - (Master) Certified Computer Examiner
===> CHFI - Computer Hacking Forensic Investigator
===> EnCE - EnCase® Certified Examiner
===> GCFA - GIAC Certified Forensics Analyst
=> Hardware
=> Incident Response
===> CSIH - Computer Security Incident Handler
===> GCIH - GIAC Certified Incident Handler
=> Malware
===> Advisories
=> Mobile
=> Network Pen Testing
===> CEH - Certified Ethical Hacker
===> CPTC - Certified Penetration Testing Consultant
===> CPTE - Certified Penetration Testing Engineer
===> CSTA - Certified Security Testing Associate
===> eCPPT - eLearnSecurity Certified Professional Penetration Tester
===> ECSA - EC-Council Certified Security Analyst
===> GPEN - GIAC Certified Penetration Tester
===> OSCP - Offensive Security Certified Professional
=> Physical Security
=> Programming
=> Social Engineering
=> Web Applications
=> Wireless
===> CWNP Certs
===> GAWN - GIAC Assessing Wireless Networks
===> OSWP - Offensive Security Wireless Professional
=> Other
-----------------------------
Columns
-----------------------------
=> Editor-In-Chief
=> Andress
=> Gates
=> Haddix
=> Hadnagy
=> Heffner
=> Hoffman
=> Linn
=> RichM
=> Murray
=> J. Peltier
=> Weidman
=> Wilson
-----------------------------
Features
-----------------------------
=> /root
=> Book Reviews
=> Opinions
=> Skillz
===> Examples
===> May 06 - Star Hacks, Episode V: The Empire Hacks Back
===> July 06 - Hack Bill!
===> Sept 06 - Netcat in the Hat
===> Nov 06 - Hitch-Hackers Guide to the Galaxy
===> Dec 06 - A Christmas (Hacking) Story
===> Feb 07 - Charlottes Web Site
===> April 07 - Microsoft Office Space
===> June 07 - Serenity Hack
===> Oct 07 - Worst. Ethical. Hacker. Challenge. Ever.
===> Dec 07 - Frosty the Snow Crash
===> March 2008 - It Happened One Friday
===> Oct 2008 - Scooby Doo and the Crypto Caper
===> Dec 08 - Santa Claus Is Hacking to Town
===> Feb 2009 - Brady Bunch Boondoggle
===> July 2009 - Prison Break
===> October 2009 - SSHliders
===> December 2009 - Miracle on Thirty-Hack Street
===> December 2010 - The Nightmare Before Charlie Browns Christmas
-----------------------------
Resources
-----------------------------
=> Career Central
===> Looking For Work
===> Looking To Hire
=> Links to cool sites.
=> Mass Media
=> News from the Outside World
=> Tools
=> Tutorials
===> Tutorial Requests
Loading...
Exclusive Deal
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:
Great!
Better.
About the same.
Little worse.
FUBAR!
Recent Forum Topics
OSCP - Offensive Security Certified Professional
: Failed my first attempt at the OSCP exam
(95) by
zeebee
News Items and General Discussion About EH-Net
: Change is Coming to EH-Net!!
(30) by
don
Tools
: Symbolic Exploit Assistant project is looking for collaborators
(0) by
galapag0
Greetings
: Hi from the UK
(5) by
prats84
GCIH - GIAC Certified Incident Handler
: Passed my GCIH
(9) by
prats84
Network Pen Testing
: Want a challenge? Want a GXPN practice exam?
(0) by
ajohnson
GCIH - GIAC Certified Incident Handler
: GCIH Free Practice test attempt
(1) by
prats84
EH-Net News Feeds
Latest Additions
Privacy Notice
for TDCC & All Properties
© 2013 The Ethical Hacker Network
Joomla!
is Free Software released under the GNU/GPL License.