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 50 guests and 3 members online
You are here:
Home
Features
/root
[Article]-Tutorial: SEH Based Exploits and the Development Process
EH-Net
May 20, 2013, 03:50:51 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
>
Features
>
/root
(Moderator:
don
) >
[Article]-Tutorial: SEH Based Exploits and the Development Process
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: [Article]-Tutorial: SEH Based Exploits and the Development Process (Read 18609 times)
0 Members and 1 Guest are viewing this topic.
don
Editor-In-Chief
Administrator
Hero Member
Offline
Posts: 4165
Editor-In-Chief
[Article]-Tutorial: SEH Based Exploits and the Development Process
«
on:
May 04, 2010, 10:20:37 AM »
I think all of you will really like this one, a step-by-step tutorial for exploit dev. Be sure to stop by Mark Nicholls security blog,
isolated-threat
, that focuses on malware, shellcode and exploits. After visiting, if there's any tutorials you'd like to see from Mark, feel free to ask.
Permanent link:
[Article]-Tutorial: SEH Based Exploits and the Development Process
Quote
Tutorial by Mark Nicholls AKA n1p
The intent of this exploit tutorial is to educate the reader on the use and understanding of vulnerabilities and exploit development. This will hopefully enable readers to gain a better understanding of the use of exploitation tools and what goes on underneath to more accurately assess the risk of discovered vulnerabilities in a computer environment. It is important for security consultants and ethical hackers to understand how buffer overflows actually work, as having such knowledge will improve penetration testing capabilities. It will also give you the tools to more accurately assess the risk of vulnerabilities and develop effective countermeasures for exploits doing the rounds in the wild.
With this in, I am going to focus exclusively on the practical skills needed to exploit Structured Exception Handler buffer overflows. I won't go into too much detail regarding the theory of how they work, or how buffer overflows can be discovered. There are many other resources available on this subject, and I encourage you to research this further
Warning! Please note that this tutorial is intended for educational purposes only, and skills gained here should NOT be used to attack any system for which you don't have permission to access. It is illegal.
Let us know what you think,
Don
Logged
CISSP, MCSE, CSTA, Security+ SME
hayabusa
Hero Member
Offline
Posts: 1631
Re: [Article]-Tutorial: SEH Based Exploits and the Development Process
«
Reply #1 on:
May 04, 2010, 11:00:07 AM »
Will have to give it a good read-over. Thanks, don!
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
zeroflaw
Full Member
Offline
Posts: 208
Re: [Article]-Tutorial: SEH Based Exploits and the Development Process
«
Reply #2 on:
May 04, 2010, 11:12:11 AM »
Very nice, I will definitely try this soon. Thanks!
Logged
ZF
n1p
Jr. Member
Offline
Posts: 89
Re: [Article]-Tutorial: SEH Based Exploits and the Development Process
«
Reply #3 on:
May 04, 2010, 01:38:23 PM »
Cheers for that. Any questions just shout!
Logged
Ketchup
Hero Member
Offline
Posts: 1021
Re: [Article]-Tutorial: SEH Based Exploits and the Development Process
«
Reply #4 on:
May 04, 2010, 03:04:11 PM »
n1p, that's a fantastic read! I skimmed through it once already, and plan to go back and read it again a few times. The links at the end are priceless on their own. Thanks!
Logged
~~~~~~~~~~~~~~
Ketchup
n1p
Jr. Member
Offline
Posts: 89
Re: [Article]-Tutorial: SEH Based Exploits and the Development Process
«
Reply #5 on:
May 04, 2010, 03:21:18 PM »
Thanks! That is no problem. I might try make it a monthly thing, so if you have any suggestions let me know.
Logged
Ketchup
Hero Member
Offline
Posts: 1021
Re: [Article]-Tutorial: SEH Based Exploits and the Development Process
«
Reply #6 on:
May 04, 2010, 03:30:15 PM »
You could write a tutorial on heap-based overflows. I haven't touched those at all, and would love to learn more.
You could also go into fuzzing a bit. For example, what do you watch for when looking for off by one or format string vulnerabilities?
Logged
~~~~~~~~~~~~~~
Ketchup
Synquell
Full Member
Offline
Posts: 169
Re: [Article]-Tutorial: SEH Based Exploits and the Development Process
«
Reply #7 on:
May 05, 2010, 02:55:28 AM »
N1p: I'm starting the think you're going to be my guide to knowledge, with all your tutorials.
Thanks a lot for this m8!
Logged
Twitter:
https://twitter.com/dietervds
Blog:
https://synquell.wordpress.com
(not much there yet)
The beginning of knowledge is the discovery of something we do not understand.
Equix3n-
Sr. Member
Offline
Posts: 386
Re: [Article]-Tutorial: SEH Based Exploits and the Development Process
«
Reply #8 on:
May 05, 2010, 05:55:08 AM »
The article was very informative. I do not have any experience with exploit development but even then was able to understand it
Looking forward to more stuff from you.
@ketchup perhaps
this
will be a good starting point
«
Last Edit: May 05, 2010, 06:00:03 AM by Equix3n-
»
Logged
Ketchup
Hero Member
Offline
Posts: 1021
Re: [Article]-Tutorial: SEH Based Exploits and the Development Process
«
Reply #9 on:
May 05, 2010, 06:58:15 AM »
Equix3n, lol, I knew that sounded familiar.
Logged
~~~~~~~~~~~~~~
Ketchup
sil
Hero Member
Offline
Posts: 549
Re: [Article]-Tutorial: SEH Based Exploits and the Development Process
«
Reply #10 on:
May 07, 2010, 10:25:53 AM »
Quote from: n1p on May 04, 2010, 03:21:18 PM
Thanks! That is no problem. I might try make it a monthly thing, so if you have any suggestions let me know.
Article was cool. Corelan (since you linked it) has some very thorough works as does OpenRCE. I'd personally like to see more 'weaponization' articles, e.g. ActiveX anyone. It's surprising I didn't see mention of WinDBG in your article. pusscat has a wicked module (byakugan) that allows you to perform all sorts of stuff: (quoting) Real Time Heap Visualization, Buffer Identification and Hunting, Return Address Hunting...
There are a lot of interesting and cool write-ups (yours included) lurking around, I wish I could find more WinDBG based content though. Olly is fine, Immunity - latest version is buggy - but nevertheless good. I find that WinDBG is a lot more powerful for windows debugging. I've just begun tinkering with Klockwork (Architect, etc.) and I'm definitely impressed and at times confused by a lot of it. I would have made mention in your article to those reading it, they may want to take a brief drive-by of Assembly programming and understand a little more about registers. E.g., you can manipulate other registers to eventually get control of EIP. You don't necessarily have to specifically target it outright.
Logged
http://www.infiltrated.net/mgz/puppylecter.jpg
n1p
Jr. Member
Offline
Posts: 89
Re: [Article]-Tutorial: SEH Based Exploits and the Development Process
«
Reply #11 on:
May 08, 2010, 05:46:46 AM »
Sil,
You certainly make some good points! Windbg is awesome and is covered greatly over at corelan, however to some people it can be entirely overwhelming when they start out learning about RE. It has quite a steep learning curve when compared with olly/immunity. Not to mention the interface!
You are right about the lack of docs on using it, so may be a useful addition to tuts.
Cheers
Logged
UNIX
Hero Member
Offline
Posts: 1234
Re: [Article]-Tutorial: SEH Based Exploits and the Development Process
«
Reply #12 on:
June 18, 2010, 02:21:12 AM »
Thanks for your efforts n1p, really liked your article.
Logged
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
Programming
: Finished Python Course in Codecademy now what?
(11) by
securitian
OSCP - Offensive Security Certified Professional
: Failed my first attempt at the OSCP exam
(91) by
r0ckm4n
Tools
: Social-Engineer Toolkit (SET) Version 5.0 “The Wild West” Released
(2) by
m0wgli
Malware
: EICAR?
(3) by
UKSecurityGuy
Advisories
: HTB23154: Multiple Vulnerabilities in Exponent CMS
(0) by
AndyP
Advisories
: HTB23153: Multiple Vulnerabilities in Jojo CMS
(0) by
AndyP
Advisories
: HTB23151: Cross-Site Request Forgery (CSRF) in UMI.CMS
(0) by
AndyP
Tutorials
: Need guidance
(8) by
r0ckm4n
OSCP - Offensive Security Certified Professional
: Class Scheduled 6/8 - Linux n00b
(7) by
Taemyks
OSCP - Offensive Security Certified Professional
: OSCP exam scheduled
(6) by
gbhat
Incident Response
: LinkedIn Forensics
(0) by
AFENTIS_Forensics
General Certification
: Red Team/Blue Team
(1) by
ajohnson
Career Central
: Starter cert?
(3) by
Grendel
Network Pen Testing
: Beginner Ethical Hacker
(1) by
m0wgli
General Certification
: CPT Practical Submission
(0) by
z28power4u
Web Applications
: Nessus and Nikto
(4) by
Seen
Network Pen Testing
: Cracking salted MD5 hash
(4) by
n37sh@rk
CEH - Certified Ethical Hacker
: Passed my C|EH
(3) by
n37sh@rk
Mass Media
: EC-council hacked, irony at his best?
(0) by
j0rDy
Web Applications
: SQL Injection into an INSERT statement.
(6) by
eyenit0
Network Pen Testing
: Solution for sipXtapi INVITE Message CSeq Field Header Remote Overflow
(1) by
m0wgli
Web Applications
: dns
(2) by
H1t M0nk3y
Other
: BSides Boston
(0) by
3xban
Career Central
: InfoSec in Central, FL
(2) by
tturner
Web Applications
: Web vulnerability scanner
(4) by
H1t M0nk3y
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.