metasploit-framework/lib/rex/payloads/win32/kernel/recovery.rb

34 lines
548 B
Ruby
Raw Normal View History

module Rex
module Payloads
module Win32
module Kernel
#
# Recovery stubs are responsible for ensuring that the kernel does not crash.
# They must 'recover' after the exploit has succeeded, either by consuming
# the thread or continuing it on with its normal execution. Recovery stubs
# will often be exploit dependent.
#
module Recovery
#
# The default recovery method is to spin the thread
#
def self.default(opts = {})
spin(opts)
end
#
# Infinite 'hlt' loop.
#
def self.spin(opts = {})
"\xf4\xeb\xfd"
end
end
end
end
end
end