mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-12 11:52:01 +01:00
f124597a56
git-svn-id: file:///home/svn/framework3/trunk@5773 4d416f70-5f16-0410-b530-b9f4589650da
57 lines
794 B
Ruby
57 lines
794 B
Ruby
#!/usr/bin/env ruby
|
|
|
|
module Rex
|
|
module Post
|
|
|
|
###
|
|
#
|
|
# This class provides generalized methods for interacting with a thread
|
|
# running in a process on a remote machine via a post-exploitation client.
|
|
#
|
|
###
|
|
class Thread
|
|
|
|
#
|
|
# Suspend the remote thread.
|
|
#
|
|
def suspend
|
|
raise NotImplementedError
|
|
end
|
|
|
|
#
|
|
# Resume execution of the remote thread.
|
|
#
|
|
def resume
|
|
raise NotImplementedError
|
|
end
|
|
|
|
#
|
|
# Terminate the remote thread.
|
|
#
|
|
def terminate
|
|
raise NotImplementedError
|
|
end
|
|
|
|
#
|
|
# Query architecture-specific register state.
|
|
#
|
|
def query_regs
|
|
raise NotImplementedError
|
|
end
|
|
|
|
#
|
|
# Set architecture-specific register state.
|
|
#
|
|
def set_regs
|
|
raise NotImplementedError
|
|
end
|
|
|
|
#
|
|
# Close resources associated with the thread.
|
|
#
|
|
def close
|
|
raise NotImplementedError
|
|
end
|
|
end
|
|
|
|
end; end |