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 63 guests online
 
Free Business and Tech Magazines and eBooks

You are here: Home arrow Ethical Hacking Discussions and Related Certificationsarrow Network Pen Testingarrow Do you need to know programming to hack?
EH-Net
May 19, 2013, 02:51:40 AM *
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] 2 3   Go Down
  Print  
Author Topic: Do you need to know programming to hack?  (Read 42743 times)
0 Members and 1 Guest are viewing this topic.
Kev
Guest
« on: February 20, 2007, 11:49:10 AM »

Do you need to know programming to be a hacker? That has to be the question I get asked the most. I would say yes and no. It all depends on your view.  The problem is no one agrees what a hacker is! I posted in the past what it takes to be a hacker and every body had their own and different idea, lol!

You can be a fairly good pen tester now without knowing any programming. In fact, the most famous hacker of all time, Kevin Mitnick didn’t know programming. If you understand all the tools and know them well, you can do some effective hacking. I am sure that’s good news to all the script kiddies out there.

My honest feeling is you should learn some programming. At least the basics. It will give you a deeper understanding of what’s going on. Yes it’s true we don’t always breach a system by running an exploit. Sometimes things are just wide open and not configured correctly. Even to this day, Admins use weak passwords. 

If you have never leaned programming I would suggest starting with HTML. Its very easy and you will get results quickly. Actually its fun.  Also, it will help you learn to read the source code on a website.

From there I would say to go into C. C programming is the mother of it all. Most exploits were written in C. Also many hacking tools were also written in C and once you know it, you can make changes to the code to facilitate a tool to do something a little different for you.  Come up with an idea of a program and then write it. My very first program was a simple code to ping all the IPs in a network. Easy to write and I suggest that one if you are stumped.

Don’t settle for being a point and click hacker. Don’t run blind. If you take the time to understand even just the basics of programming, an entire new world will open up for you
« Last Edit: February 20, 2007, 11:52:08 AM by Kev » Logged
Cutaway
Jr. Member
**
Offline Offline

Posts: 96


Cutaway


View Profile WWW
« Reply #1 on: February 22, 2007, 09:11:58 PM »

I believe that you are correct with your "yes and no" answer.  It really depends on where the individual wants to focus his/her skill set. 

If the focus is assessments then being able to compile exploits and generate quick shell/perl/c programs may not be necessary.  A basic understanding of coding will help but knowing how to use the tools, write reports, mitigate problems, and educate admins and end-users is more important.

To be a penetration tester, however, I believe that it is a necessity to have at least a simple understanding of how to program.  You have to be able to compile exploits.  You have to be able to look at shell scripts, html code, open source code, and other programs to understand how to they work.  (this is my skill level)  As you get better you will begin to move into understanding and generating shell code and exploits. 

To be a security researcher then you definitely have to be a good to outstanding programmer.  Coding is what is required to make and break things.

Logged

Go forth and do good things,
Cutaway
Kev
Guest
« Reply #2 on: February 23, 2007, 07:48:19 PM »

 Thanks for the reply Cutaway and those are good points you made.
 
Imagine for a moment you’re a black hat cracker and you have discovered a vulnerability that no one else has discovered. It would be a license rape, plunder and pillage. If you had the right connections and knew where to sell the information that you gathered, you would become worth millions. That is the dark temptation for crackers that  have good programming skills. The only thing that would stop you would be if the security was tight enough to react to you quickly once you were “in”. This of course has nothing to do with pen testing, but cracking into systems.

How does one go about learning that kind of programming?  The easiest way is to write a program yourself with lots of flaws. Use the well known poor programming practices. Make sure it’s a program that goes through the entire TCP/IP stack. If it doesn’t then it will have no value.  Once you have done that, write an exploit targeting the flaws you purposely placed in the program.  There are a number of good books that show you how exploits have been written. After that, see if your exploit actually runs and gives you a shell. You might say that’s cheating and you would be correct. But it is a good basic exercise that gets you started and from there you should be able to move to deeper things. The hardest part of exploring is discovering vulnerabilities without being given the source code. Once you know how to deal with that, you are on your way. 

PS- I am using the term "cracker" for lack of a better term. The only problem for me with that term personally speaking is that I grew up in the South. In the South the term cracker meant something totally different and certainly not someone intelligent enough to  break into systems, lol! I am sure some of you know what I mean.
« Last Edit: February 24, 2007, 07:58:52 AM by Kev » Logged
Cutaway
Jr. Member
**
Offline Offline

Posts: 96


Cutaway


View Profile WWW
« Reply #3 on: February 23, 2007, 10:24:37 PM »

Good example, Kev.  Here is the capper for your last addition: http://milw0rm.com/papers/125.  It runs through a basic version of what you just covered. 

I just read this yesterday after listening to PaulDotCom's last episode:  http://pauldotcom.com/wiki/index.php/ListenerFeedback5.

It is definitely a good place to start.
Logged

Go forth and do good things,
Cutaway
slimjim100
EH-Net Columnist
Sr. Member
*****
Offline Offline

Posts: 385



View Profile WWW
« Reply #4 on: February 25, 2007, 08:12:56 PM »

Hey Kev... I'm a "Georgia Cracker" and it's not a technical term. Tongue Just kidding. Anyway I was forced to post by your added comments about the term "Cracker" and how alot of terms can mean alot of different things to people in different areas.

Brian

aka Slimjim100
« Last Edit: February 25, 2007, 10:32:40 PM by slimjim100 » Logged

CISSP, CCSE, CCNA, CCAI, Network+, Security+, JNCIA, & MCP
Kev
Guest
« Reply #5 on: February 25, 2007, 09:05:40 PM »

LOL, no problem.
Logged
Kevan
Jr. Member
**
Offline Offline

Posts: 95



View Profile
« Reply #6 on: March 18, 2007, 11:46:36 AM »

Is this a forum for hackers or crackers? I know that there is a significant difference, and that most crackers do not seem to have the 'code of honor' hackers tend to portray. And cracking itself is so much easier than it used to be, programs have been written to do almost any dirty work 'needed' with a graphical interface and no skill. How many programs have been written that can hack into a network, find a problem, and fix it? I know that there are not as many as the programs designed to crack. Don't get me wrong, I have used dvd rippers, cd rippers, air snort tools, etc, but never to sell or ruin something, and why/how can a person be considered a cracker if their tool is not their brain, but a USB pen with hundreds of malicious programs?
Logged

I may be a newbie, but I am willing to learn.
LSOChris
Guest
« Reply #7 on: March 18, 2007, 04:41:58 PM »

this a site for security professionals or people that want to be security professionals.  there are plenty of other l33t script kiddie sites out there that can keep the whole hacker/cracker/i wear this color hat crap.

my own opinion though...
Logged
don
Editor-In-Chief
Administrator
Hero Member
*****
Offline Offline

Posts: 4165


Editor-In-Chief


View Profile WWW
« Reply #8 on: March 18, 2007, 06:11:07 PM »

Just as clarification, a cracker in ethical hacking terms is not someone who cracks code. A cracker is someone who does the same thing a hacker does but does so illegally. So what's a hacker? In simple terms, a hacker is known as someone with the skill to make something (software, hardware, a car, etc) perform a task it was not originally meant to do.

And ChrisG is absolutely correct. This site is for the security professional. We are all here to help people with their careers. This is how we give back to the community that we feel gave so much to us.

Hope this helps,
Don

Logged

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

Posts: 95



View Profile
« Reply #9 on: March 18, 2007, 06:55:54 PM »

I guess my idea of the talent I want to have it the person that is hired to monitor and fix a given network or computer. I want to be IT Security, but to me it only makes sense to learn how to hack so that I know the methods I will be up against. 
Logged

I may be a newbie, but I am willing to learn.
talkinelf
Newbie
*
Offline Offline

Posts: 13



View Profile WWW
« Reply #10 on: March 19, 2007, 01:47:47 PM »

by reading you posts i get it that you really are someone who is looking for the right thing and unlike most others you are looking for it at the right place Wink you get what i mean

any ways from what i have read and what i know u need to know and think like a cracker if u are up to securing your network. you need to know how cracking softwares work, how they work on your network what results they display. As by thinking how a cracker thinks you get to know a lot vulnarabilties in you network than you think like the network admin. but the difference between us and the crackers is that we do it the legal and ethical way.
Logged
WireSploit
Newbie
*
Offline Offline

Posts: 1


View Profile
« Reply #11 on: March 20, 2007, 05:25:53 PM »

you only need to be able to do programming if you want to write exploits, or programs.

Exploit code can easily be used, as you can easily get hold of the code, copy, past and execute it.
Logged
jimbob
Guest
« Reply #12 on: March 21, 2007, 07:55:47 AM »

you only need to be able to do programming if you want to write exploits, or programs.

Exploit code can easily be used, as you can easily get hold of the code, copy, past and execute it.
I think a certain level of programming knowledge is required for ethical hacking. Not every engagement will be as straightforward as find hole, run script. If your only tool is a hammer every problem will look like a nail and you'll get quickly frustrated when it doesn't work.

Programming is much more than writing programs. One big bonus is that it enables you to understand code that you find. I am not a PHP coder but I can read PHP scripts and assess them because my programming experience allows me to. Many languages share a common ancestry that knowing one can help you understand another even if you can't code with it.

On the point about exploit code you should always cast a wary eye over it before you execute it. It is now unknown for exploit writers insert deliberate mistakes into exploit so that the reader is force to fix it before it will work. Even worse it may contain malicious code that will end up 0wning you if your not careful.

Jimbob
Logged
slimjim100
EH-Net Columnist
Sr. Member
*****
Offline Offline

Posts: 385



View Profile WWW
« Reply #13 on: March 21, 2007, 08:18:32 AM »

Jimbob Very good points!

I agree you should understand how to read code at the very minimum and it's always good to know how to code. There are so many areas in the network security field you may not have to worry about coding so I would just say the more you know the better off you will be. There is no check list to becoming a security professional (or a hacker). Any job field in IT now has a security aspect so just pick what interests you and learn to apply a security mindset to that job.

my 2 cents

Brian

(aka Slimjim100)
Logged

CISSP, CCSE, CCNA, CCAI, Network+, Security+, JNCIA, & MCP
LSOChris
Guest
« Reply #14 on: March 21, 2007, 04:24:41 PM »

knowing how to code a bit will help you from making a boo boo and running some evil code like the latest new "Apache 1.X Remote Buffer Overflow getRoot() Exploit"
Logged
Pages: [1] 2 3   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.079 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
 
         
Free Business and Tech Magazines and eBooks

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