Home
Calendar
Certifications
Columns
Features
Forum
Resources
Vitals
Latest Additions
Jan 2009 Free Giveaway Sponsor - Black Hat DC
Scooby Doo and the Crypto Caper - Answers and Winners
Daemon - A Contest Revealed
Nov 2008 Free Giveaway - Winners
Hacking: The Art of Exploitation 2nd Edition
Dec 2008 Free Giveaway Sponsor - SANS
Santa Claus is Hacking to Town
Plug-N-Play Network Hacking
Nov 2008 Free Giveaway Sponsor - CWNP
Daemon - A Contest Begins Now
It Happened One Friday - Answers and Winners
Daemon - A Contest
Scooby Doo and the Crypto Caper
MS Blue Hat Hackers Headline Chicago Security Con
The Pen Testing Perfect Storm Webcast Series with Skoudis, Wright, Johnson
EH-Net Login
Welcome Guest.
Username:
Password:
Remember me
Lost Password?
No account yet?
Register
Who's Online
We have 14 guests and 3 members online
EH-Net Donations
Enter Amount:
$
CAD
USD
GBP
AUD
JPY
EUR
Google Ads
EH-Net News Feeds
Latest Additions
Book Recommendations
You are here:
Home
Forum
Ethical Hacking Discussions and Related Certifications
Malware
write my own exploits ?
Ethical Hacker Community Forums
January 08, 2009, 12:17:07 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
: ChicagoCon 2-Day Ethical Hacking Conference with MS Blue Hats Oct 31 - Nov 1. Tickets Only $100!
www.chicagocon.com/content/view/103/51/
Home
Help
Calendar
Login
Register
Ethical Hacker Community Forums
>
Ethical Hacking Discussions and Related Certifications
>
Malware
(Moderator:
don
) >
write my own exploits ?
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: write my own exploits ? (Read 2949 times)
0 Members and 1 Guest are viewing this topic.
nubie
Newbie
Offline
Posts: 12
write my own exploits ?
«
on:
September 15, 2008, 03:39:13 AM »
Hi all, i want to ask something about writing exploits:
- What i need to write my own exploits ?
- about language, sometimes i'm rather confused about what language i
must use to write exploits or it depends on what exploit i want to make ?
I'm very need advices and criticsm about this thing.
Thank's alot and sorry for this stupid question.
Logged
KrisTeason
Full Member
Offline
Posts: 117
Re: write my own exploits ?
«
Reply #1 on:
September 15, 2008, 03:52:26 AM »
I suggest you looking into
Writing Security Tools and Exploits
.
«
Last Edit: September 15, 2008, 03:54:36 AM by KrisTeason
»
Logged
NickFnord
Newbie
Offline
Posts: 47
Re: write my own exploits ?
«
Reply #2 on:
September 15, 2008, 05:47:40 AM »
Quote from: nubie on September 15, 2008, 03:39:13 AM
- about language, sometimes i'm rather confused about what language i
must use to write exploits or it depends on what exploit i want to make ?
I'd highly recommend learning a flexible scripting language like Perl or Python. I've not learned python myself, but I've found knowledge of Perl to be invaluable at times when you want to do some quick automated task, (such as taking the tedium out of blind SQL injection for example).
seeing as maybe you're wanting to write your own tools, you should also learn C - it's not hard to pick up and is quite powerful as it is a low level language and will teach you quite a lot about the intimate details of how a machine runs.
if you give us a bit more detail about where you're comming from and how much experience you have and in what areas we may be able to direct you more specifically.
Logged
shakuni
Jr. Member
Offline
Posts: 78
Re: write my own exploits ?
«
Reply #3 on:
September 15, 2008, 06:20:18 AM »
Quote
- about language, sometimes I'm rather confused about what language i
must use to write exploits or it depends on what exploit i want to make ?
Learn perl, python. And master C and assembly. Some of the people here will not agree with C and assembly thing but believe me, you should consider learning them if you are really serious.
Logged
There is no rule, law or tradition that apply universally... including this one.
unicityd
Newbie
Offline
Posts: 14
Re: write my own exploits ?
«
Reply #4 on:
September 15, 2008, 12:59:59 PM »
If you want to write buffer overflow exploits, you need to learn C and assembly.
The standard introductions to buffer overflows are:
Smashing the Stack for Fun and Profit
http://www.phrack.com/issues.html?issue=49&id=14&mode=txt
How to Write Buffer Overflows
http://insecure.org/stf/mudge_buffer_overflow_tutorial.html
Once you've mastered this, you can move onto advanced techniques. Read the papers in the list below and follow the references as they suits your interests. Setup a Linux or FreeBSD box with no buffer overflow protection (No non-exec stack, PaX, W^X, etc, ProPolice, etc) so that you can practice. I used FreeBSD 4.x and 5.x when I did most of this. As you get into the material about defeating the different protection mechanisms, install ProPolice on BSD or non-exec/Stackguard on Linux. Can you get around them? It's good to understand PaX (which was eventually discovered to have a major flaw) and W^X, but you don't need to worry too much about defeating them in the wild. You're more likely to encounter stack based protection such as Stackguard or Microsoft's /GS, a non-executable stack, and/or stack randomization. It will take you months to read all of these papers and to practice using at least some of the techniques, but if you can get through them all you will have some real expertise in exploiting buffer overflows.
Be sure to read the Bugtraq list. Look at the exploits that are posted and try to understand what they do. Good luck.
Metasploit can be helpful in creating exploits and shellcode, but I think you'll learn more by doing things yourself. That said, there is nothing wrong with using it to speed things up once you master the basics of writing exploits and creating shellcode.
Good luck.
w00w00 on Heap Overflows
http://www.w00w00.org/files/articles/heaptut.txt
Taking Advantage of Non-terminated Adjacent Memory Spaces
http://www.phrack.com/issues.html?issue=56&id=15&mode=txt
The Frame Pointer Overwrite
http://www.phrack.com/issues.html?issue=55&id=8&mode=txt
Bypassing Stackguard and Stackshield
http://www.phrack.com/issues.html?issue=56&id=5&mode=txt
Defeating Compiler-level Buffer Overflow Protection
http://www.usenix.org/publications/login/2005-06/pdfs/alexander0506.pdf
Defeating the Stack Based Buffer Overflow Prevention Mechanism of Microsoft Windows 2003 Server
http://www.ngssoftware.com/papers/defeating-w2k3-stack-protection.pdf
Getting around non-executable stack (and fix)
http://seclists.org/bugtraq/1997/Aug/0063.html
Basic Integer Overflows
http://www.phrack.com/issues.html?issue=60&id=10&mode=txt
Exploiting Format String Vulnerabilities
http://doc.bughunter.net/format-string/exploit-fs.html
http://julianor.tripod.com/bc/formatstring-1.2.pdf
More info on format bugs
http://julianor.tripod.com/bc/kalou-formats.txt
Defeating Solar Designer's Non-executable Stack Patch
http://insecure.org/sploits/non-executable.stack.problems.html
Advanced return-into-lib(c) exploits: PaX case study
http://freeworld.thc.org/root/docs/exploit_writing/p58-0x04.txt
Bypassing PaX ASLR Protection
http://www.phrack.com/issues.html?issue=59&id=9&mode=txt
Vudo Malloc
http://www.phrack.com/issues.html?issue=57&id=8&mode=txt
Once upona free()
http://www.phrack.com/issues.html?issue=57&id=9&mode=txt
Overwriting the .dtors section
http://synnergy.net/downloads/papers/dtors.txt
_atexit in Memory Bugs
http://doc.bughunter.net/buffer-overflow/atexit.html
Logged
vijay2
Full Member
Offline
Posts: 134
Re: write my own exploits ?
«
Reply #5 on:
September 15, 2008, 01:10:17 PM »
Nice post and a very handy list
Thanks
Logged
GPEN GCIH CISSP CISA GSEC OSCP C|EH Security+
apollo
Jr. Member
Offline
Posts: 51
Re: write my own exploits ?
«
Reply #6 on:
September 15, 2008, 08:03:36 PM »
I've been playing a lot of CTF lately, and two books have really helped. Hacking, the art of exploitation (
http://www.amazon.com/Hacking-Art-Exploitation-Jon-Erickson/dp/1593271441
) is the first, and The Shellcoder's Handbook(
http://www.amazon.com/Shellcoders-Handbook-Discovering-Exploiting-Security/dp/047008023X/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1221526745&sr=1-1
) is the second.
You are going to want to know some assembly along the way, they will help you some, but find a good assembly book. You will also want to know some programming language, I would probably learn C and perl or python. I personally prefer perl, but I think it's one of those pancake vs waffles things, they are both delicious.
Logged
nubie
Newbie
Offline
Posts: 12
Re: write my own exploits ?
«
Reply #7 on:
September 22, 2008, 09:37:30 PM »
Thank's a lot guys for all of your advices, i'll deep learning on my c programming cause i never touch c programming for 1 year and because of that i must repeat my c again
Thank you so much guys.
Logged
mad_irish
Newbie
Offline
Posts: 16
Re: write my own exploits ?
«
Reply #8 on:
September 23, 2008, 08:17:59 AM »
On the other hand...
If you want to learn about web application exploits knowning C, Perl, and all about memory addressing won't be of very much use (exploiting a C based CGI web application or Perl web application aside). In order to exploit an application you have to understand the technologies on which it rests. Web application technology usually relies on a scripting language (PHP, ASP, JSP, etc.), and a database (MS-SQL, Oracle, MySQL).
That said, I'd like to cite a recent blog post from SecurityBuddah.com (
http://securitybuddha.com/2008/09/10/are-you-a-builder-or-a-breaker/
). The point of the post is to ask why so many people in security focus on breaking things rather than building better software. I think learning to actually program in a language will be a much more valuable endeavor if you really want to learn to write exploits. Being able to create an application, securely, teaches you much more about the pitfalls of application security than simply learning to write exploits. The most skilled penetration testers can pull apart a target by analyzing services and software based on their own knowledge of how to build such things, and common points of weakness. Knowing how to build apps allows you to do actual code level audit of systems, which is more thorough and likely to catch subtle bugs that automated testing will miss. Sure, it takes a lot longer to learn to build applications and systems than it does to simply break them, but the value is much greater. Why not learn how to spot weaknesses and offer fixes instead of just how to break things?
Logged
apollo
Jr. Member
Offline
Posts: 51
Re: write my own exploits ?
«
Reply #9 on:
September 23, 2008, 08:56:51 AM »
Quote from: mad_irish on September 23, 2008, 08:17:59 AM
That said, I'd like to cite a recent blog post from SecurityBuddah.com (
http://securitybuddha.com/2008/09/10/are-you-a-builder-or-a-breaker/
). The point of the post is to ask why so many people in security focus on breaking things rather than building better software. I think learning to actually program in a language will be a much more valuable endeavor if you really want to learn to write exploits.
...
Why not learn how to spot weaknesses and offer fixes instead of just how to break things?
If you want to be a professional "breaker" then you are going to need to learn why the things happen that you can break. So many of the technologies today are easy to break and harder to fix, especially on the web. Unless you have the knowledge to be able to explains what went wrong people will see you much more as a script-kiddie than a knowledgeable professional. Finding XSS exploits is pretty easy in many occasions, talking to the folks who have the vulnerable application and explaining strategic solutions to fix their problem as well as what lead to the problem is where the money is at.
On a separate note, in my opinion, learning a scripting languages will probably help you with just about any type of exploit unless everything you do is through a GUI. For the stuff that I have written for exploiting C applications, most of the code I've written has been in perl and when I'm doing web based assessments that are beyond the basics, I frequently pop back to perl or python to generate the code that I'm going to use for exploit. Plus, putting your exploit in a script means that it's useful to others, and unless you don't plan on showing anyone else what you did or ever doing it again yourself it's nice to have it especially if you either added a comment here or there or used logical variable names.
Final thought on the breaker vs maker since I've been on both sides is that in many cases, and I encounter this all the time, people don't really understand the magnitude or impact of what they are doing until you show them how it's bad. I think it's kind of analogous to when you're a kid and a parent says "don't touch that, it's hot" and sure enough, you figure it out on your own. In some ways, unless we can show what can happen in a controlled environment then you may not get the response that you want. I think that this is especially true with problems that don't yield a shell on a box. So much many applications have XSS bugs in them these days. When you explain it to someone and they simplify it as "so someone can click on a link and have some other stuff show up on the page?" then it really doesn't sound that scary. When you show them that when they clicked on the link for what they thought was the latest Peggle download from their web based email client, that you stole their session cookie and now have full access to their email, then that has a little bit more impact. I won't say that is necessary all of the time, but it is something that I run up against.
Logged
Kev
Sr. Member
Offline
Posts: 359
Re: write my own exploits ?
«
Reply #10 on:
September 23, 2008, 09:31:25 AM »
Yes, well stated Apollo.
Logged
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
EH-Net
-----------------------------
=> Special Events
=> Calendar Of Events
===> ChicagoCon 2007
===> ChicagoCon 2008s
===> ChicagoCon 2008f
===> ChicagoCon 2009
=> News Items and General Discussion About EH-Net
-----------------------------
Ethical Hacking Discussions and Related Certifications
-----------------------------
=> Certification
===> The Charter Study Group - Pen Test
=> Network Pen Testing
===> CEH - Certified Ethical Hacker
=====> CEH - Official Course Modules v4
=====> CEH - Official Course Modules v5
=====> CEH - Official Course Modules v6
===> CPTS - Certified Pen Testing Specialist
=====> CPTS - Official Course Modules v5
===> CPTE - Certified Pen Testing Expert
=====> CPTE - Official Course Modules v1
===> ECSA - EC-Council Certified Security Analyst
=====> ECSA - Official Course Modules v1.2
=====> ECSA / LPT - Official Course Modules v3
===> OSCP - Offensive Security Certified Professional
===> GPEN - GIAC Certified Penetration Tester
=> Forensics
===> CCE / MCCE - (Master) Certified Computer Examiner
===> CHFI - Computer Hacking Forensic Investigator
=====> CHFI - Official Course Modules v2
===> EnCE - EnCase® Certified Examiner
=> Incident Response
===> CSIH - Computer Security Incident Handler
===> GCIH - GIAC Certified Incident Handler
=> Hardware
=> Malware
=> 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
=> Gates
=> Heffner
=> Hoffman
=> RichM
=> Murray
=> J. Peltier
=> 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
-----------------------------
Resources
-----------------------------
=> Career Central
===> Looking For Work
===> Looking To Hire
=> Links to cool sites.
=> Mass Media
=> News from the Outside World
=> Tools
=> Tutorials
Loading...
Sponsors
Polls
How many security events including conferences and training do you attend a year:
1 - 2
3 - 4
5 - 6
7+
None - But want to
None - Choose not to
Support EH-Net
Support EH-Net by
Buying all of your
Amazon items using
the search bar above.
Try CBT Nuggets Free!
Recent Forum Topics
Mass Media
: Daniel Suarez Interview
(9) by
blackazarro
Malware
: Security Forecast for 2009
(5) by
jason
News from the Outside World
: Is this acceptable?
(9) by
jason
Wireless
: Wireless Pen Testing Cards
(6) by
jason
CEH - Certified Ethical Hacker
: CEH is a scam
(19) by
jason
Oct 2008 - Scooby Doo and the Crypto Caper
: Skillz October 08 Winning Entry - Technical
(1) by
jason
Gates
: Oracle version module for metasploit
(2) by
BillV
Book Reviews
: [Article]-Mitnick - The Art Of Intrusion: Ch 1 - Hacking The Casinos For A Million Bu...
(5) by
jason
Links to cool sites.
: Free Computer Engineering Classes From Stanford
(3) by
jason
Oct 2008 - Scooby Doo and the Crypto Caper
: Skillz October 08 Winning Entry - Creative
(1) by
jason
Oct 2008 - Scooby Doo and the Crypto Caper
: [Article]-Scooby Doo and the Crypto Caper - Answers and Winners
(2) by
jason
News Items and General Discussion About EH-Net
: [Article]-Jan 2009 Free Giveaway Sponsor - Black Hat DC
(1) by
jason
Book Reviews
: Need a book suggestion!
(2) by
jason
News Items and General Discussion About EH-Net
: EH-Net Milestone - 2 Articles Cross 1 Million Page Views
(3) by
BillV
Other
: What kind of lab, machines you have for your security testing?
(12) by
charlottebandit
Malware
: Network Virus Problem
(9) by
RoleReversal
Wireless
: WUSB600N good usb ?
(2) by
nap191
Other
: FBI code cracking challenge
(3) by
jimbob
Calendar Of Events
: RSA 2009
(0) by
don
Forensics
: Network Forensic tools/practice/techniques
(2) by
jimbob
Malware
: Autoplay when i try to open the drive.
(4) by
jimbob
Physical Security
: Magnetic stripe card spoofing
(4) by
jimbob
Malware
: THe website is Evil but what to do??
(1) by
jimbob
Other
: Insanity?
(3) by
jason
CEH - Certified Ethical Hacker
: Any Practice Environment for learning tool for CEH?
(15) by
don
Wireless
: a petri-dish bridge
(2) by
don
CEH - Certified Ethical Hacker
: TFTP Tranfer time out
(5) by
jason
Tools
: tool to trace users
(8) by
pseud0
Malware
: Malware Challenge 2008 Analysis
(0) by
blackazarro
Programming
: Python 3.0 Released
(0) by
don
Forensics
: SANS SIFT Forensic toolkit
(1) by
don
Links to cool sites.
: Omgili Hacking - Another Search Engine dedicated to Hacking Related Forums
(2) by
RoleReversal
Tools
: Insecure.org's 2006 Top 100 Security Tools List Released
(10) by
shednik
Other
: Happy New Year!
(8) by
vijay2
CEH - Official Course Modules v6
: Community-built CEH Wiki
(2) by
yehg
Vote For EH-Net
progenic.com
binarica.com
technorati fave
Privacy Notice
for TDCC & All Properties
© 2009 The Ethical Hacker Network
Joomla!
is Free Software released under the GNU/GPL License.