CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/lib/rex/post/thread.rb
Views: 1904
1
# -*- coding: binary -*-
2
3
module Rex
4
module Post
5
6
###
7
#
8
# This class provides generalized methods for interacting with a thread
9
# running in a process on a remote machine via a post-exploitation client.
10
#
11
###
12
class Thread
13
14
#
15
# Suspend the remote thread.
16
#
17
def suspend
18
raise NotImplementedError
19
end
20
21
#
22
# Resume execution of the remote thread.
23
#
24
def resume
25
raise NotImplementedError
26
end
27
28
#
29
# Terminate the remote thread.
30
#
31
def terminate
32
raise NotImplementedError
33
end
34
35
#
36
# Query architecture-specific register state.
37
#
38
def query_regs
39
raise NotImplementedError
40
end
41
42
#
43
# Set architecture-specific register state.
44
#
45
def set_regs
46
raise NotImplementedError
47
end
48
49
#
50
# Close resources associated with the thread.
51
#
52
def close
53
raise NotImplementedError
54
end
55
end
56
57
end; end
58
59