-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcpalias.sh
executable file
·29 lines (29 loc) · 1.75 KB
/
cpalias.sh
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
#/usr/bin/bash
export TOKEN=
echo "Adding Check Point AppSec Lab Alias Commands. Use cphelp for list of commands"
DOCKER_HOST="`hostname -I| awk ' {print $1}'`"
alias cptrbad='docker run -it --rm -v $(pwd)/data:/home/web-scraper/data --add-host juiceshop.local:$DOCKER_HOST -w /home/juice-shop-solver appsec-demo_test-host python main.py'
alias cptrgood='bash cp/cp_test_good.sh'
alias cpnano='docker exec -it cp-appsec-agent-container /usr/sbin/cpnano'
alias cpuninstall='docker exec -it cp-appsec-agent-container /usr/sbin/cpnano --uninstall'
alias cpagenttoken='docker exec -it cp-appsec-agent-container ./cp-nano-agent --token $TOKEN'
alias cptoken="bash cp/cp_token.sh"
alias cpnanol='docker exec -it cp-appsec-agent-container /usr/sbin/cpnano -s |grep -E "Policy|Last" '
alias cpwipe='docker-compose down && docker system prune -a'
alias cpcert='sh cp/cp_get_cert.sh'
alias cpfetch='git config --global http.sslverify false && git clone https://github.com/vmummer/appsec-demo.git'
alias cphost='printf "Docker Host IP address used: $DOCKER_HOST \n"'
alias cphelp='printf "Check Point Lab Commands:\n
cpnano Show detail status of AppSec Agent ( use as cpnano -s)
cpnanol Show last update of the AppSec Agent
cpuninstall Uninstall AppSec Agent
cpagenttoken Install AppSec Agent and assign Token
cptoken Display and update AppSec Agent Token Variable
cpcert Fetch Cert required to load docker images
cptrbad Juiceshop Bad Traffic Generator
cptrgrood Juiceshop Good Traffic Generator
cpwipe Wipeout all Docker containers and required to pull new images
cpfetch Fetches Clone from GitHub Lab Files appsec-demo.git
cphost Shows the IP address of the Docker Host used
cphelp Alias Command to help with Check Point Lab
"'