forked from apisec-inc/apisec-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScanner_Jar_Deployment.sh
More file actions
34 lines (24 loc) · 969 Bytes
/
Scanner_Jar_Deployment.sh
File metadata and controls
34 lines (24 loc) · 969 Bytes
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
31
32
33
#!/bin/bash
# Begin
#
# Syntax: bash Scanner_Jar_Deployment.sh --fx-host "<Hostname or IP>" --fx-iam "<FX_IAM>" ---fx-key "FX_KEY"
# Example usage: bash Scanner_Jar_Deployment.sh --fx-host "https://cloud.apisec.ai" --fx-iam "xFDt+LOZeTIccnHw1XHxJ1Gzhr4gUg2y" ---fx-key "I0YV0i/1jXNy/EEeTt5KMm/rwgZgRWgNuGmqADnGIqSwMXCvDrBtSlYbEQASNtYo"
TEMP=$(getopt -n "$0" -a -l "fx-host:,fx-iam:,fx-key:" -- -- "$@")
[ $? -eq 0 ] || exit
eval set -- "$TEMP"
while [ $# -gt 0 ]
do
case "$1" in
--fx-host) FX_HOST="$2"; shift;;
--fx-iam) FX_IAM="$2"; shift;;
--fx-key) FX_KEY="$2"; shift;;
--) shift;;
esac
shift;
done
curl -s -O https://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@raw.githubusercontent.com/apisec-inc/Release/main/Scanner/bot.jar
export FX_HOST="$FX_HOST"
export FX_IAM="$FX_IAM"
export FX_KEY="$FX_KEY"
java -jar bot.jar
# End