about summary refs log tree commit diff
path: root/nix/hosts/caladan/functions.zsh
blob: b134ef304afc821501c7429a4320a50640f27d76 (plain)
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
function pmk() {
	docker run \
		-v \
		"$(pwd):/pwn" \
		--cap-add=SYS_PTRACE \
		--security-opt seccomp=unconfined \
		-d \
		--name $1 \
		-i \ 
		ctf_ubuntu22.10;
}

function pcd() {
	docker exec \
		-it \
		--workdir /pwn \
		$1 \
		bash;
}

function prm() {
	docker stop $1;
}

function pls() {
	docker ps \
		-a \
		-f ancestor=ctf_ubuntu22.10 \
		--format "{{.Names}}";
}