Սկսում ենք jailer տեղադրելով՝
root@srv0:~ # git clone https://github.com/illuria/jailer Cloning into 'jailer'... remote: Enumerating objects: 554, done. remote: Counting objects: 100% (102/102), done. remote: Compressing objects: 100% (62/62), done. remote: Total 554 (delta 56), reused 76 (delta 35), pack-reused 452 Receiving objects: 100% (554/554), 188.74 KiB | 2.22 MiB/s, done. Resolving deltas: 100% (361/361), done. root@srv0:~ # cd jailer root@srv0:~/jailer # make install root@srv0:~/jailer # jailer version v0.1.1 r00110
ապա տեղադրում ենք նոր ջեյլ ctfd֊ի համար՝
root@srv0:~ # jailer create -n -d ctf.cyhub.am -t eb -a 172.16.209.23 ctfd Creating ctfd: Done!
ապա տեղադրում ենք ctfd֊ն՝
root@srv0:~ # jailer cons ctfd
# pkg install py39-pip git-lite
# cd /usr/local
# git clone https://github.com/CTFd/CTFd Cloning into 'CTFd'... remote: Enumerating objects: 16207, done. remote: Counting objects: 100% (5978/5978), done. remote: Compressing objects: 100% (1336/1336), done. remote: Total 16207 (delta 5146), reused 4772 (delta 4603), pack-reused 10229 Receiving objects: 100% (16207/16207), 30.92 MiB | 2.82 MiB/s, done. Resolving deltas: 100% (10334/10334), done.
հրաշալի։ սկսեմ տեղադրել՝
# cd CTFd/ # pip install -r requirements.txt
ստանում եմ տարբեր խնդիրներ, օրինակ՝
error: [Errno 2] No such file or directory: 'go' This package requires Rust >=1.48.0.
երեւի պէտք է դեղադրեմ դրանք էլ, ձեռով՝
# pkg install go rust Updating FreeBSD repository catalogue... FreeBSD repository is up to date. All repositories are up to date. The following 3 package(s) will be affected (of 0 checked): New packages to be INSTALLED: go: 1.20,2 go120: 1.20.8 rust: 1.73.0 Number of packages to be installed: 3 The process will require 1 GiB more space. 169 MiB to be downloaded. Proceed with this action? [y/N]: y [ctfd.ctf.cyhub.am] [1/3] Fetching rust-1.73.0.pkg: 100% 131 MiB 137.5MB/s 00:01 [ctfd.ctf.cyhub.am] [2/3] Fetching go-1.20,2.pkg: 100% 860 B 0.9kB/s 00:01 [ctfd.ctf.cyhub.am] [3/3] Fetching go120-1.20.8.pkg: 100% 38 MiB 39.9MB/s 00:01 Checking integrity... done (0 conflicting) [ctfd.ctf.cyhub.am] [1/3] Installing go120-1.20.8... [ctfd.ctf.cyhub.am] [1/3] Extracting go120-1.20.8: 100% [ctfd.ctf.cyhub.am] [2/3] Installing rust-1.73.0... [ctfd.ctf.cyhub.am] [2/3] Extracting rust-1.73.0: 100% [ctfd.ctf.cyhub.am] [3/3] Installing go-1.20,2... [ctfd.ctf.cyhub.am] [3/3] Extracting go-1.20,2: 100%
մի հատ էլ փորձենք՝
# pip install -r requirements.txt
ահա, ստացուեց (։ կարգաւորում եմ ԴԲ֊ն ու միացնեմ՝