forked from DownUnderCTF/Challenges_2021_Public
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnsjail.cfg
executable file
·60 lines (53 loc) · 848 Bytes
/
nsjail.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: "challenge"
description: "Default nsjail configuration for pwnable-style CTF task."
mode: LISTEN
uidmap {inside_id: "1000"}
gidmap {inside_id: "1000"}
# jail config
cwd: "/chal"
hostname: "challenge"
# network config
bindhost: "0.0.0.0"
max_conns_per_ip: 10
port: 1337
# limits
mount_proc: false
time_limit: 60
cgroup_mem_max: 16777216
cgroup_pids_max: 4
cgroup_cpu_ms_per_sec: 25
mount: [
{
src: "/home/ctf/chal"
dst: "/chal",
is_bind: true,
rw: false
},
{
src: "/bin",
dst: "/bin",
is_bind: true,
rw: false
},
{
src: "/lib",
dst: "/lib",
is_bind: true,
rw: false
},
{
src: "/lib64",
dst: "/lib64",
is_bind: true,
rw: false
},
{
src: "/dev/urandom",
dst: "/dev/urandom",
is_bind: true,
rw: false
}
]
exec_bin {
path: "/chal/pwn"
}