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 56 guests and 3 members online
You are here:
Home
EH-Net
News Items and General Discussion About EH-Net
Challenge
EH-Net
May 22, 2013, 07:09:37 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
: Go back to The Ethical Hacker Network Online Magazine
Home Page
Home
Help
Calendar
Login
Register
EH-Net
>
EH-Net
>
News Items and General Discussion About EH-Net
(Moderator:
don
) >
Challenge
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: Challenge (Read 6581 times)
0 Members and 1 Guest are viewing this topic.
SRVblackhat
Newbie
Offline
Posts: 3
Challenge
«
on:
August 01, 2010, 05:07:59 PM »
I'm working on a challenge that involves analyzing a binary and writing an exploit against the binary. Do you know anything about how to do that?
Logged
hayabusa
Hero Member
Offline
Posts: 1632
Re: Challenge
«
Reply #1 on:
August 01, 2010, 06:15:26 PM »
What sort of binary are we referring to? Something that accepts user input? Can you fuzz the input fields?
Simply 'writing an exploit against a binary' is too vague to give you specific help...
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
UNIX
Hero Member
Offline
Posts: 1235
Re: Challenge
«
Reply #2 on:
August 02, 2010, 01:53:36 AM »
As already stated by hayabusa, supplying more infos would increase you chances of getting a more concrete answer.
Do you have any experience towards reverse engineering?
Logged
SRVblackhat
Newbie
Offline
Posts: 3
Re: Challenge
«
Reply #3 on:
August 02, 2010, 09:42:46 PM »
The problem statement is, "Create a program that will open a socket (in the binary .exe) and send data to the service so that through the service you gain access to the secret answer"..
Using IDA Pro I have identified the socket as Port 23 (Telnet). I'm new to this so I dont really have any experience with reverse engineering or fuzzing, but I do have some tools available. I have some tools available and the suggested tools are Python, Perl, IDA Pro, OllyDbg, Hex editor
Logged
hayabusa
Hero Member
Offline
Posts: 1632
Re: Challenge
«
Reply #4 on:
August 04, 2010, 07:51:20 AM »
UNGH! I had a fairly long response typed in, and when I hit POST, my connection was timed out, and got lost.
In a nutshell, per your PM request to me, for further info, I'll respond here, so as to benefit any others who might learn from this.
Based on the tools list you provided, and the challenge you described, I'm assuming you're in some class (school, online, or other) where you're learning about process execution and / or reverse-engineering / assembly code programming, etc. You may not have prior experience fuzzing, but you're likely going to have to gain some, here, or sit with OllyDebug, IDA and your hex editor, and slowly go through the source code for the 'vulnerable' exe in question, looking for exploitable / overflowable buffer space from input variables. In a nutshell, you need to either analyze the code, or fuzz, to find input commands which allow more than the 'normal' length to be submitted to the process (you say telnet on port 23), so as to inject shellcode, direct process execution TO that shellcode, and then safely return from it, so as not to crash the target system, and force or instantiate a reboot, in the process, and waste all of your efforts.
Are you given a copy of said target exe to test with? If not, you might need to do some reconnaissance, such as banner grabbing, etc, to get exact version, etc, and see if you can obtain a copy from the net, somewhere, as having a local copy to test against is often easier and helpful. If you ARE given a copy (or you obtain one,) well, then at least you have better opportunity to learn, as crashing your own system or the running exe process and restarting the process or rebooting is easy for you to do.
Either way, you've pretty much got to examine the possible inputs and values for the service, to see if one or more will crash the service, if you enter an excessive amount of data (typically, send the expected command and an inordinate amount of 0x42 (hex for A) or other characters, to try to crash the running process. You'd then shorten this amount of data down, until you reach a point where you DON'T crash the service anymore, see if that amount of data is enough to allow you to upload shellcode and pass execution to it, etc.
I'm not going to give you a full tutorial on fuzzing and buffer overflows here, as a bit of research on Google (or insert your favorite search engine here) will yield plenty of them. Assumably the idea of your course / challenge is to teach you, and to show you how to learn about these things on your own, so I'm not going to spend a ton of time pointing you in that direction. (The fact that you found EH-net and posted here, is a good beginning, and shows your desire to try to learn...) One of the best / most well-known tutorials / examples can be found all over the net, but here's one location for it:
http://www.amsta.leeds.ac.uk/~read/bofs.html
I wish you luck, and if you hit a point where you can't seem to progress, feel free to ask further questions, etc., and I'm sure that I, or another member, will try to give you some subtle hints and such to get you past your roadblock, and moving forward, again But you'll need to spend some time learning, and trying things out, first, as we're not here to simply hand you the answers to your homework assignments. :-)
If time / money permit, and what you're working on is self-paced, you might consider, anyway, looking at OSCP or eLearnSecurity's training, as both cover fuzzing and buffer overflows, in more detail, and might help. But regardless, you'll need to spend some more time coming up to speed on these, to get past this exercise / challenge you're working on.
Good luck, SRVblackhat, and keep us posted on your progress!
«
Last Edit: August 04, 2010, 07:53:21 AM by hayabusa
»
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
sil
Hero Member
Offline
Posts: 549
Re: Challenge
«
Reply #5 on:
August 04, 2010, 08:25:29 AM »
@hayabusa ... vi/ed/nano/pico/wordpad/notepad is your friend. This has happened to me plenty of times. I'll begin to answer a post here, but immediately copy it over to a text file, answer it there, then post it back here. I'm tempted to answer this, but it would be booklong, therefore I stood away. I may re-visit this when I have some more time
Logged
http://www.infiltrated.net/mgz/puppylecter.jpg
hayabusa
Hero Member
Offline
Posts: 1632
Re: Challenge
«
Reply #6 on:
August 04, 2010, 08:56:38 AM »
@sil - exactly... I've decided, anytime I have something long, I'll be copy / pasting it in, from here on. (This was the first time EH-Net had timed out on me, during a long post... surprising, I guess... so it caught me offguard) And I agree, on the 'booklong' thread, thus, my pointing him in a general direction, and giving him a place to start. If he gives more detail, after showing he's working on it, I'm happy to keep assisting, but I don't want to 'hand him the keys to the ferrari'
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
ajohnson
Recruiters
Hero Member
Offline
Posts: 1057
aka dynamik
Re: Challenge
«
Reply #7 on:
August 04, 2010, 09:42:59 AM »
Hayabusa-san, you mean you're not capturing all your network traffic out of impulse? You could have just retrieved it from the trace file
Logged
WIP: GCFA |
www.infosiege.net
| @infosiege
The day you stop learning is the day you start becoming obsolete.
hayabusa
Hero Member
Offline
Posts: 1632
Re: Challenge
«
Reply #8 on:
August 04, 2010, 11:32:47 AM »
R-O-F-L!!! That's pretty good. No, right now I'm not, however, since sneaky folks like you think that way, maybe I should, to make sure you're not 'a-snoopin' on me!
That was pretty funny, dynamik!
Thanks! Needed a chuckle right then!
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
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
RichM
: red bottom shoes cheap 潮流必备 Sneakers个性Ā...
(0) by
rbirp340
ChicagoCon 2007
: buy Klonopin online no prescription
(0) by
knonrykax
ChicagoCon 2007
: a lawyer Nike Blazer Uk
(0) by
Loyatoitada
News Items and General Discussion About EH-Net
: This is meant to give professional landscapers Nike Blazer Uk
(0) by
Loyatoitada
ChicagoCon 2007
: Just as with A Better World Cheap Air Max Sale
(0) by
Loyatoitada
ChicagoCon 2007
: which along with its raise Louis Vuitton
(0) by
Loyatoitada
News Items and General Discussion About EH-Net
: Sunday Super Bowl Champion Brendon Ayanbadejo Nike Blazer Uk
(0) by
Loyatoitada
News Items and General Discussion About EH-Net
: It Louis Vuitton Pas Cher
(0) by
Loyatoitada
ChicagoCon 2007
: s go over the three places most inventory accumulates Nike Blazers Sale
(0) by
Loyatoitada
News Items and General Discussion About EH-Net
: Or you could try to partner with them or someone else Cheap Air Max Sale
(0) by
Loyatoitada
News from the Outside World
: Google Dropping Windows For Internal Use
(10) by
Loyatoitada
Special Events
: [Article]-Video: Deep Dive into Red Teaming with the Metasploit Framework
(4) by
BeecyGorror
Security
: christian louboutin cheap artic5843
(0) by
fufig388
Special Events
: [Article]-Survey of Hacking Movies: Framing the Debate on the Gateway Drug into the H...
(14) by
BeecyGorror
/root
: [Article]-Course Review: CPT by InfoSec Institute
(1) by
BeecyGorror
Ethical Hacktivism
: Paranoid parents messing with routers
(21) by
BeecyGorror
Compliance, Regulations & Standards
: SABSA - Sherwood Applied Business Security Architecture
(1) by
BeecyGorror
News Items and General Discussion About EH-Net
: What does EthicalHacker.net bring you?
(12) by
BeecyGorror
News Items and General Discussion About EH-Net
: Burberry UK,2013 Burberry Safety-valve Online Available in London
(13) by
BeecyGorror
News Items and General Discussion About EH-Net
: louis vuitton handbags mhf
(0) by
Vamscoora
Calendar Of Events
: ChicagoCon 2008f
(3) by
BeecyGorror
News Items and General Discussion About EH-Net
: "Free Monthly Giveaways" - Details
(22) by
BeecyGorror
ChicagoCon 2007
: s going to be critical to have universal identity in order for these systems to talk ...
(0) by
Loyatoitada
Malware
: New zero-day exploit for Internet Explorer 7, 8, and 9 on Windows XP, Vista & 7
(13) by
BeecyGorror
Special Events
: [Article]-Webcast: Deep Dive into Red Teaming with the Metasploit Framework
(19) by
BeecyGorror
News Items and General Discussion About EH-Net
: but it needs more help: they Sac Louis Vuitton
(0) by
Loyatoitada
Greetings
: but the desperate effort that comes from being hopeful Nike Blazers Uk
(0) by
Loyatoitada
ChicagoCon 2007
: waterfall Cheap Air Max Sale
(0) by
Loyatoitada
News Items and General Discussion About EH-Net
: The advent of the web happened slowly Nike Blazer Uk
(0) by
Loyatoitada
Network Pen Testing
: AIX Vulnerability Assessments
(2) by
ras76
Tutorials
: Need guidance
(9) by
hanyhasan
Programming
: Finished Python Course in Codecademy now what?
(15) by
hanyhasan
Network Pen Testing
: Ruby on Rails Vulnerabilities / Attacks in BackTrack 5 r3
(0) by
SUdoctstudent
Network Pen Testing
: De-ICE 1.140 released!
(2) by
superkojiman
General Certification
: CPT Practical Submission
(1) by
UNIX
OSCP - Offensive Security Certified Professional
: Failed my first attempt at the OSCP exam
(94) by
azmatt
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
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
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
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.