File tree 6 files changed +19
-20
lines changed
6 files changed +19
-20
lines changed Original file line number Diff line number Diff line change 14
14
matrix :
15
15
features :
16
16
- android-sdk
17
+ - burp-suite
17
18
- coder
18
19
- cutter
19
20
- ghidra
39
40
matrix :
40
41
features :
41
42
- android-sdk
42
- - coder
43
43
- burp-suite
44
+ - coder
45
+ - coder
44
46
- cutter
45
47
- ghidra
46
48
- lib-common
Original file line number Diff line number Diff line change 26
26
}
27
27
},
28
28
29
+ "containerEnv" : {
30
+ "BURP_HOME" : " /opt/burp-suite" ,
31
+ "PATH" : " ${PATH}:${BURP_HOME}"
32
+ },
33
+
29
34
"installsAfter" : [
30
35
" ghcr.io/devcontainers/features/common-utils" ,
31
36
" ghcr.io/devcontainers/features/desktop-lite"
Original file line number Diff line number Diff line change @@ -8,15 +8,18 @@ echo "Activating feature '$FEATURE_NAME'"
8
8
# Source lib-common feature
9
9
source " /usr/share/phorcys-devcontainer-libraries/common/1/main.sh"
10
10
11
- # Check for dependencies
12
- checkPackages curl ca-certificates jq sudo
11
+ # Check for dependencies (libfreetype6 is only really needed to run in CI, otherwise you would always have this library if you have the desktop-lite feature)
12
+ checkPackages curl ca-certificates jq sudo libfreetype6
13
13
14
14
# Load options
15
15
EDITION=${EDITION:- community}
16
16
VERSION=${VERSION:- latest}
17
17
18
+ # CUTTER_HOME is defined in the containerEnv value of the feature's manifest
19
+ BURP_HOME=${BURP_HOME:-/ opt/ burp-suite}
20
+
18
21
if [ $VERSION = " latest" ]; then
19
- echo " [$FEATURE_NAME ] [+] Grabbing the latest Burp version"
22
+ echo " [$FEATURE_NAME ] [+] Grabbing the latest Burp Suite version"
20
23
21
24
RELEASE_DATA=$( curl ' https://portswigger.net/burp/releases/data?previousLastId=-1&lastId=-1&pageSize=5' --silent --show-error --fail)
22
25
@@ -39,7 +42,7 @@ curl --get --location --silent --show-error --fail \
39
42
# Make temporary directory accessible to all users
40
43
chmod +rx " $TMP " -R
41
44
42
- echo " [$FEATURE_NAME ] [+] Installing Burp $EDITION "
43
- sudo -u " $_REMOTE_USER " " $ DESTINATION_FILE" -q # $_REMOTE_USER_HOME
45
+ echo " [$FEATURE_NAME ] [+] Installing Burp Suite $EDITION edition "
46
+ " $ DESTINATION_FILE" -q -dir " $BURP_HOME " -overwrite
44
47
45
48
rm -rf " $TMP "
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- {
2
- "desktop" : {
3
- "image" : " mcr.microsoft.com/devcontainers/base:ubuntu" ,
4
- "features" : {
5
- "ghcr.io/devcontainers/features/desktop-lite:1" : {},
6
-
7
- "burp-suite" : {}
8
- }
9
- }
10
- }
1
+ {}
Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ set -euo pipefail
5
5
# Optional: Import test library bundled with the devcontainer CLI
6
6
source dev-container-features-test-lib
7
7
8
- # Do nothing
8
+ check " Burp folder exists" test -d " $BURP_HOME "
9
+ check " Burp binary is in the PATH" which BurpSuiteCommunity
9
10
10
11
# Report results
11
12
# If any of the checks above exited with a non-zero exit code, the test will fail.
You can’t perform that action at this time.
0 commit comments