commit
Some checks failed
Build to Gitea Registry / build-push (push) Has been cancelled

This commit is contained in:
clxhzg
2025-12-01 18:05:25 +08:00
commit 708476636e
8 changed files with 199 additions and 0 deletions

21
config/ctf.xinetd Normal file
View File

@@ -0,0 +1,21 @@
service ctf
{
disable = no
socket_type = stream
protocol = tcp
wait = no
user = root
type = UNLISTED
port = 9999
bind = 0.0.0.0
# 设置xinetd连接启动后的服务程序
server = /usr/sbin/chroot
# 设置chroot的相关参数
server_args = --userspec=1000:1000 /home/ctf ./pwn
banner_fail = /etc/banner_fail
# safety options
per_source = 10 # the maximum instances of this service per source IP address
rlimit_cpu = 20 # the maximum number of CPU seconds that the service may use
#rlimit_as = 1024M # the Address Space resource limit for the service
#access_times = 2:00-9:00 12:00-24:00
}