-
Notifications
You must be signed in to change notification settings - Fork 5
/
pwndocker.psl
27 lines (25 loc) · 1.02 KB
/
pwndocker.psl
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
param (
[Parameter(Mandatory=$true, Position=0)]
[string]$version
)
Write-Host "Running $version version pwndocker..."
switch ($version) {
"16.04" {
docker run -it --rm --cap-add SYS_PTRACE --security-opt seccomp:unconfined --name 16.04 -v ${PWD}/study:/study leepwn:16.04 /usr/bin/zsh
}
"18.04" {
docker run -it --rm --cap-add SYS_PTRACE --security-opt seccomp:unconfined --name 18.04 -v ${PWD}/study:/study leepwn:18.04 /usr/bin/zsh
}
"20.04" {
docker run -it --rm --cap-add SYS_PTRACE --security-opt seccomp:unconfined --name 20.04 -v ${PWD}/study:/study leepwn:20.04 /usr/bin/zsh
}
"22.04" {
docker run -it --rm --cap-add SYS_PTRACE --security-opt seccomp:unconfined --name 22.04 -v ${PWD}/study:/study leepwn:22.04 /usr/bin/zsh
}
"crypto" {
docker run -it --rm --cap-add SYS_PTRACE --security-opt seccomp:unconfined --name 22.04 -v ${PWD}/study:/study leepwn:crypto /usr/bin/zsh
}
default {
Write-Host "Unsupported version specified"
}
}