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 82 guests and 2 members online
EH-Net News Feeds
Latest Additions
 
Advertisement

You are here: Home arrow Forum arrow Ethical Hacking Discussions and Related Certificationsarrow Programmingarrow Steps for The Ethical Hacker to learn programming
EH-Net
May 24, 2012, 04:35:17 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Advertise on EH-Net!! - Reasonable Rates, Highly Targeted Audience.
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Steps for The Ethical Hacker to learn programming  (Read 18315 times)
0 Members and 2 Guests are viewing this topic.
Kev
Guest
« on: June 24, 2007, 02:39:22 PM »

I am a big believer that the Ethical Hacker should know at least some basic programming. The first place to start is with basic Bash scripts. They are so easy and you get results right away. Then go onto to some basic HTML.  Then either Python or Perl and eventually to C. C is the ultimate goal and it is without question the traditional code of the hacker.  Why not just start with C?  You could and some do, but I have seen too many people get stuck because C can be a little obscure for those new to programming.

Python or Perl are good languages to grasp before taking on C. Even when you are well versed in C there are many times you would rather write a quick script in these languages rather than C.  The natural question is, if you had to choose one over the other, Perl or Python, which one would be the better choice?  For me, Python is really the way to go.  I feel its easier to learn, has more readable code , integrates into java better and can port a little easier because it doesn’t lean has heavily to Unix as Perl. I also feel Python makes the jump to learning C more natural than from Perl.
 
I wote this in the opinion area because that is what it is, my opinion. I would be curious if others diifer from this progression .
« Last Edit: June 24, 2007, 02:43:42 PM by Kev » Logged
p0et
Full Member
***
Offline Offline

Posts: 197



View Profile
« Reply #1 on: June 24, 2007, 09:34:04 PM »

That's pretty interesting, Kev. I just dabbled a bit in HTML, Javascript, C and Perl but now don't really know enough to even put a program (or anything) together in any of those languages! Whenever I sit down and try to learn a language, it seems a little overwelming and boring to me. I enjoy learning about networking and security too much to switch over and study programming instead. It seems like I'd need to put in some good time that's usually spent with ethical hacking into programming.  I'll check it out though, bash is pretty cool... thanks for sharing your opinion!  Wink
Logged

GCIH, Security+, Network+, A+, MCP, DCSE
jimbob
Guest
« Reply #2 on: June 25, 2007, 07:41:11 AM »

A often overlooked programming skill I consider essential for ethical hacking is shell scripting. No matter what Unix-like environment you're in you always have the shell the fall back on and you cannot assume Perl or Python are installed. The same could be said (to a lesser extent perhaps) of  Windows batch scripting.

Knowing how to program in a one of the 'lowest common denominator' languages is pretty useful since wherever you have a foothold you have an interpreter you can use.

Jim
Logged
Kev
Guest
« Reply #3 on: June 25, 2007, 03:55:40 PM »

Thanks for the input. If you find programming a little boring there is one little exercise one can do to make it a little more interesting. Try writing a basic script to ping all the live hosts on a network on several different platforms. First write a bash script. Then write one in Python and then finally one in C. You can google examples of each.  Once you see how each platform accomplishes the same goal, lights usually go on in peoples head about how programming works. Its actually fun to write a quick program like this and see it work.
Logged
invincible
Newbie
*
Offline Offline

Posts: 3


View Profile
« Reply #4 on: July 26, 2007, 09:19:25 AM »

I know bash scripting and is trying to learn c .
Thanks for the post .
Logged
cleanwithit0607
Newbie
*
Offline Offline

Posts: 49


View Profile
« Reply #5 on: July 26, 2008, 06:05:15 AM »

I am a big believer that the Ethical Hacker should know at least some basic programming. The first place to start is with basic Bash scripts. They are so easy and you get results right away. Then go onto to some basic HTML.  Then either Python or Perl and eventually to C. C is the ultimate goal and it is without question the traditional code of the hacker.  Why not just start with C?  You could and some do, but I have seen too many people get stuck because C can be a little obscure for those new to programming.

Python or Perl are good languages to grasp before taking on C. Even when you are well versed in C there are many times you would rather write a quick script in these languages rather than C.  The natural question is, if you had to choose one over the other, Perl or Python, which one would be the better choice?  For me, Python is really the way to go.  I feel its easier to learn, has more readable code , integrates into java better and can port a little easier because it doesn’t lean has heavily to Unix as Perl. I also feel Python makes the jump to learning C more natural than from Perl.
 
I wote this in the opinion area because that is what it is, my opinion. I would be curious if others diifer from this progression .


Talk about bringing a thread back from the dead. I like the way you created a roadmap; or path to what a ethical hacker needs as far as programming goes. I never really thought about learning a language, until I started reading about exploits. I will def. keep this thread on my favorites list, so I can stay on track. I already know HTML, I used to code a clan website I had back in the days of, Medal of Honor Allied Assault. But anyways, I guess I will start with Bash Scripting, then onto Python.

Does anybody know of a book, or website that's reputable that can help me learn Bash, and or Python?
Logged

A+, Network +, Security +, Linux +,

MCP/MCTS: Vista Config.

Work in progress: CEH

Currently Reading: Hacking-The Art Of Exploitation.

Recommended book: Counter Hack Reloaded.
Andrew Waite
Hero Member
*****
Offline Offline

Posts: 857



View Profile WWW
« Reply #6 on: July 26, 2008, 07:33:10 AM »

Try this EH Thread (dive into python)

Read the rest of the programming board threads for some great resources.

And remember, the search box and google are your friend......
Logged

cleanwithit0607
Newbie
*
Offline Offline

Posts: 49


View Profile
« Reply #7 on: July 26, 2008, 08:35:20 AM »

Try this EH Thread (dive into python)

Read the rest of the programming board threads for some great resources.

And remember, the search box and google are your friend......

Thanks man. Yea, I always use google and the search function. I just ask so I can get more opinions. By the way, How's the OSCP course going?
Logged

A+, Network +, Security +, Linux +,

MCP/MCTS: Vista Config.

Work in progress: CEH

Currently Reading: Hacking-The Art Of Exploitation.

Recommended book: Counter Hack Reloaded.
Kev
Sr. Member
****
Offline Offline

Posts: 428


View Profile
« Reply #8 on: July 26, 2008, 09:38:22 AM »

Talk about bringing a thread back from the dead.

LOL!  Well it does show you are spending some time going through the forum rather than just making a quick post for help.  Very cool.  Please forgive my leaning towards python. Python was and still is the "darling" language for linux enthusiast. In reality, once you have a grasp of Python, it wont be too hard to get the "feel" of both Perl and Ruby. If you are wanting to import new exploits to Metasploit, a reasonable grasp of those will be important.
« Last Edit: July 26, 2008, 09:40:20 AM by Kev » Logged
Gert
Newbie
*
Offline Offline

Posts: 1


View Profile
« Reply #9 on: August 09, 2008, 05:27:47 AM »

basic Bash scripts i have a book on Linux Command Line and Shell Scripting is this the same thing as bash scripts.
Logged
Andrew Waite
Hero Member
*****
Offline Offline

Posts: 857



View Profile WWW
« Reply #10 on: August 09, 2008, 03:07:15 PM »

Gert,

Bash is a very common Linux shell, so yes Bash scripting == shell scripting
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.193 seconds with 21 queries.
 

gk_static-ad_feb2012.jpg
Global Knowledge: Build Security Skills to Protect & Defend

els_130x200fixed2.gif
eLearnSecurity Student Course Now Live!
5% Off with Code
ELS-EH-5

SANS Deals 4 EH-Netters
$150 OFF Any SANS Course in Any Format!
Coupon Code: EHN_Connect Including SANS Security West 2012 & SANSFIRE 2012
Recent Forum Topics

cbtnuggets_logo_125.jpg
Try CBT Nuggets Free!

Vote For EH-Net

Add to Technorati Favorites
technorati fave

 
         
Advertisement

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