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 46 guests and 1 member online
Free Business and Tech Magazines and eBooks
You are here:
Home
Ethical Hacking Discussions and Related Certifications
Programming
How useful is scripting compared to programming?
EH-Net
May 24, 2013, 12:07:01 PM
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
) >
How useful is scripting compared to programming?
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: How useful is scripting compared to programming? (Read 4290 times)
0 Members and 1 Guest are viewing this topic.
uperkurk
Newbie
Offline
Posts: 13
How useful is scripting compared to programming?
«
on:
September 23, 2011, 06:55:56 AM »
I'll be totally honest upfront I dont really know what im talking about but my idea of making a script is like a peice of code that when injected into a website, makes the website return something, grant access or something like that.
Can someone tell me which is a good scripting language for exploiting websites? I know it has to be a web based language but everywhere I see perl and python.
I thought these were programming languages used to develop full on programs wereas scripting languages are not as large as programming languages
Logged
3xban
Hero Member
Offline
Posts: 608
Re: How useful is scripting compared to programming?
«
Reply #1 on:
September 23, 2011, 07:55:46 AM »
I guess the easiest explanation is that a script requires a way to run and a program has been compiled to run. It can sort of stand on its own. Its easier to change a script than it is to change a program. Also you can just dump any old script against a website, it really depends on what is running that site. For instance you can't inject a vbscript if there is no way to tell the webserver to run it. The cogs of the machine determine what tools you use and that comes with clever recon of that site. Much of what is used is used to help the pen tester in launching attacks against the site based on the vulnerabilities that are found, i.e. SQL injection if it is discovered that the site uses an SQL server somewhere in the background to store information. If the site runs PHP, there are ways to determine what versions are in use and run attacks based on known vulnerabilities.
Of course this should only be done with the written consent of the client and you should never use this knowledge to play on sites you don't own.
Logged
Certs: GCWN
(@)Dewser
uperkurk
Newbie
Offline
Posts: 13
Re: How useful is scripting compared to programming?
«
Reply #2 on:
September 23, 2011, 08:23:13 AM »
Ofcourse not. But doesnt the website have to be using php for you to run a php script on it?
I remember a website along time ago called milworm that had a database full of exploits, some written in python, some written in perl and some other languages.
I guess its because ive never done any scripting I dont really get why is is used and what for.
Logged
lorddicranius
Sr. Member
Offline
Posts: 447
Re: How useful is scripting compared to programming?
«
Reply #3 on:
September 23, 2011, 09:38:43 AM »
Searching for "scripting vs programming" via Google yielded quite a few results, like this one:
Scripting vs Programming: Is There a Difference?
Logged
GSEC, eCPPT, Sec+
uperkurk
Newbie
Offline
Posts: 13
Re: How useful is scripting compared to programming?
«
Reply #4 on:
September 23, 2011, 09:54:11 AM »
But I do get how a script doesnt need to be compiled? and runs inside another program.
Can someone give me an example of when a script would be used... it will help me to understand the purpose for them
Logged
lorddicranius
Sr. Member
Offline
Posts: 447
Re: How useful is scripting compared to programming?
«
Reply #5 on:
September 23, 2011, 10:01:51 AM »
First example that comes to mind is a script used at a previous job. It was written by my supervisor in Perl and when it ran, it would scan the network for active hosts, then query each host for misc info: hostname, IP, Dell service tag, etc. The info it gathered was saved in a text file that he would import into an Access database for various things.
Logged
GSEC, eCPPT, Sec+
uperkurk
Newbie
Offline
Posts: 13
Re: How useful is scripting compared to programming?
«
Reply #6 on:
September 23, 2011, 12:27:23 PM »
Oh right I see thanks for that. So scripts are created for doing specific tasks and save time basically.
Logged
idr0p
Newbie
Offline
Posts: 49
Re: How useful is scripting compared to programming?
«
Reply #7 on:
September 23, 2011, 02:02:18 PM »
Simple Fast and Targeted = Scripts
Logged
GCIA GCIH GPEN GWAPT
Up Next: CISA CISSP
chrisj
Hero Member
Offline
Posts: 1163
Re: How useful is scripting compared to programming?
«
Reply #8 on:
September 23, 2011, 04:04:44 PM »
couple of examples of scripts I've done in the past:
First checked a directory every 15 minutes for data. If data was there it would send email out to different groups, and then sftp the data out to the customer. (perl)
second one would search the user's networked drives for multimedia content. (perl)
third, had some custom set up for the sftp server. The person that maintained it wasn't a nix person. Shell based script for new user creation with proper customized home directory.
shell scripts that copied the custom configurations for our servers on to a "gold" image to migrate the systems from physical to virtual.
Logged
OSWP, Sec+
uperkurk
Newbie
Offline
Posts: 13
Re: How useful is scripting compared to programming?
«
Reply #9 on:
September 24, 2011, 07:45:28 AM »
So scripts are independant exe files that literally just set the same thing each time, everytime.
I think i'll go with programming then learn scripting once I understand programming properly
Logged
chrisj
Hero Member
Offline
Posts: 1163
Re: How useful is scripting compared to programming?
«
Reply #10 on:
September 24, 2011, 12:01:14 PM »
First thing to clear up here. Scripting is a form of Programming.
No. scripts are pretty dynamic. I just don't need to do more with my scripts than "easy things". When I was in college, the shell scripting book we were using walked us through writing a phone book program.
Place I used to work, everything was programmed in Perl. From the order intake system through the delivery system.
Scripts are usually faster than programs. They are interpreted instead of compiled. They don't need to be compiled, and easier to fix in my opinion since you don't have to compile (and wait for compile) before you have to test again.
Logged
OSWP, Sec+
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
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
News Items and General Discussion About EH-Net
: Change is Coming to EH-Net!!
(29) 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.