CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/lib/rex/post/permission.rb
Views: 11780
1
# -*- coding: binary -*-
2
module Rex::Post::Permission
3
# Generic page protection flags
4
PROT_NONE = 0
5
PROT_READ = (1 << 0)
6
PROT_WRITE = (1 << 1)
7
PROT_EXEC = (1 << 2)
8
PROT_COW = (1 << 20)
9
10
# Generic permissions
11
GEN_NONE = 0
12
GEN_READ = (1 << 0)
13
GEN_WRITE = (1 << 1)
14
GEN_EXEC = (1 << 2)
15
16
# Generic process open permissions
17
PROCESS_READ = (1 << 0)
18
PROCESS_WRITE = (1 << 1)
19
PROCESS_EXECUTE = (1 << 2)
20
PROCESS_ALL = 0xffffffff
21
22
# Generic thread open permissions
23
THREAD_READ = (1 << 0)
24
THREAD_WRITE = (1 << 1)
25
THREAD_EXECUTE = (1 << 2)
26
THREAD_ALL = 0xffffffff
27
end
28
29