Burp Suite User Forum

Create new post

Burp Suite Enterprise Agent - Error with Unattended Install using varfile

Azeem | Last updated: Jul 12, 2023 05:40AM UTC

I'm trying to install the Burp Suite Enterprise Scanning agent on Ubuntu. I'm getting errors when running the below: ``` $ sudo sh burpsuite_enterprise_linux_v2023_6_1.sh -q -varfile response.varfile Unpacking JRE ... Starting Installer ... An error occurred: java.lang.ClassCastException: class java.lang.String cannot be cast to class java.lang.Boolean (java.lang.String and java.lang.Boolean are in module java.base of loader 'bootstrap') Error log: /home/azeem_ilyas_mercari_com/install4jError10785811125492734684.log java.lang.ClassCastException: class java.lang.String cannot be cast to class java.lang.Boolean (java.lang.String and java.lang.Boolean are in module java.base of loader 'bootstrap') at com.install4j.runtime.installer.InstallerVariables$12.setVariable(InstallerVariables.java:859) at com.install4j.runtime.installer.InstallerVariables$4.run(InstallerVariables.java:345) at com.install4j.runtime.installer.helper.comm.actions.RunAction.execute(RunAction.java:11) at com.install4j.runtime.installer.helper.comm.HelperCommunication.executeActionDirect(HelperCommunication.java:292) at com.install4j.runtime.installer.helper.comm.HelperCommunication.executeActionInt(HelperCommunication.java:267) at com.install4j.runtime.installer.helper.comm.HelperCommunication.executeAction(HelperCommunication.java:244) at com.install4j.runtime.installer.InstallerVariables.setVariable(InstallerVariables.java:340) at com.install4j.runtime.installer.InstallerVariables.addVariables(InstallerVariables.java:1054) at com.install4j.runtime.installer.InstallerVariables.loadResponseFile(InstallerVariables.java:966) at com.install4j.runtime.installer.InstallerVariables.initCommandLine(InstallerVariables.java:926) at com.install4j.runtime.installer.Installer.getScreenExecutor(Installer.java:109) at com.install4j.runtime.installer.Installer.runInProcess(Installer.java:73) at com.install4j.runtime.installer.Installer.main(Installer.java:50) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:84) at com.install4j.runtime.launcher.UnixLauncher.start(UnixLauncher.java:69) at install4j.Installer2927833165.main(Unknown Source) ``` However, the following does work: ``` $ sudo sh burpsuite_enterprise_linux_v2023_6_1.sh Unpacking JRE ... Starting Installer ... Welcome to the Burp Suite Enterprise Edition Setup Wizard This will install Burp Suite Enterprise Edition on your computer Select the folder where you would like Burp Suite Enterprise Edition to be installed. Where should Burp Suite Enterprise Edition be installed? [/usr/local/burpsuite_enterprise] What do you want to use this machine for? 1: Running the Enterprise server and web server 2: Running scans Please enter a comma-separated list of the selected values or [Enter] for the default selection: [1,2] 2 Please enter the directory where Burp Suite Enterprise Edition's logs should go Directory: [/var/log/BurpSuiteEnterpriseEdition] Please enter the directory where Burp Suite Enterprise Edition's data should go Directory: [/var/lib/BurpSuiteEnterpriseEdition] Enter the name of the dedicated user This is the name of the user that will run the Burp Suite Enterprise Edition processes. This user will be created if it doesn't already exist. Username [burpsuite] Please supply the hostname or IP address for the Enterprise server. Hostname or IP address [] [REDACTED] Checking connection to Enterprise Server Attempting to connect to Enterprise server Choose the type of database you are using Embedded database (suitable for evaluation purposes) [1, Enter], MariaDB [2], Microsoft SQL Server [3], MySQL [4], Oracle [5], PostgreSQL [6] Extracting files ... Created a scanning machine with fingerprint: [REDACTED] Note this fingerprint and verify that it matches the authorization request on the Scanning Machines page of the web UI. Starting Enterprise scanning service ... Waiting for Enterprise Server to start ... Waiting for Web Server to start ... Finished installing the software required to run scans on this machine. Remember to authorize this machine in Burp Suite Enterprise Edition from the Scanning Machines settings. Finishing installation ... ```

Azeem | Last updated: Jul 12, 2023 05:48AM UTC

Seems there is something wrong when installing using the varfile... More error details below ``` $ sudo sh burpsuite_enterprise_linux_v2023_6_1.sh -q -varfile response.varfile -c -Dinstall4j.debug=true -Dinstall4j.logToStderr=true -Dinstall4j.detailStdout=true -Dinstall4j.keepLog=true Unpacking JRE ... Starting Installer ... [INFO] Logger started at 2023-07-12 05:42:45 [INFO] Executable name: /home/azeem_ilyas_mercari_com/burpsuite_enterprise_linux_v2023_6_1.sh [INFO] install4j version: 10.0.4 (build 10066) [INFO] Properties: [ERROR] java.lang.ClassCastException: class java.lang.String cannot be cast to class java.lang.Boolean (java.lang.String and java.lang.Boolean are in module java.base of loader 'bootstrap') java.lang.ClassCastException: class java.lang.String cannot be cast to class java.lang.Boolean (java.lang.String and java.lang.Boolean are in module java.base of loader 'bootstrap') at com.install4j.runtime.installer.InstallerVariables$12.setVariable(InstallerVariables.java:859) at com.install4j.runtime.installer.InstallerVariables$4.run(InstallerVariables.java:345) at com.install4j.runtime.installer.helper.comm.actions.RunAction.execute(RunAction.java:11) at com.install4j.runtime.installer.helper.comm.HelperCommunication.executeActionDirect(HelperCommunication.java:292) at com.install4j.runtime.installer.helper.comm.HelperCommunication.executeActionInt(HelperCommunication.java:267) at com.install4j.runtime.installer.helper.comm.HelperCommunication.executeAction(HelperCommunication.java:244) at com.install4j.runtime.installer.InstallerVariables.setVariable(InstallerVariables.java:340) at com.install4j.runtime.installer.InstallerVariables.addVariables(InstallerVariables.java:1054) at com.install4j.runtime.installer.InstallerVariables.loadResponseFile(InstallerVariables.java:966) at com.install4j.runtime.installer.InstallerVariables.initCommandLine(InstallerVariables.java:926) at com.install4j.runtime.installer.Installer.getScreenExecutor(Installer.java:109) at com.install4j.runtime.installer.Installer.runInProcess(Installer.java:73) at com.install4j.runtime.installer.Installer.main(Installer.java:50) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:84) at com.install4j.runtime.launcher.UnixLauncher.start(UnixLauncher.java:69) at install4j.Installer2927833165.main(Unknown Source) An error occurred: java.lang.ClassCastException: class java.lang.String cannot be cast to class java.lang.Boolean (java.lang.String and java.lang.Boolean are in module java.base of loader 'bootstrap') Error log: /home/azeem_ilyas_mercari_com/install4jError14919874221828190211.log java.lang.ClassCastException: class java.lang.String cannot be cast to class java.lang.Boolean (java.lang.String and java.lang.Boolean are in module java.base of loader 'bootstrap') at com.install4j.runtime.installer.InstallerVariables$12.setVariable(InstallerVariables.java:859) at com.install4j.runtime.installer.InstallerVariables$4.run(InstallerVariables.java:345) at com.install4j.runtime.installer.helper.comm.actions.RunAction.execute(RunAction.java:11) at com.install4j.runtime.installer.helper.comm.HelperCommunication.executeActionDirect(HelperCommunication.java:292) at com.install4j.runtime.installer.helper.comm.HelperCommunication.executeActionInt(HelperCommunication.java:267) at com.install4j.runtime.installer.helper.comm.HelperCommunication.executeAction(HelperCommunication.java:244) at com.install4j.runtime.installer.InstallerVariables.setVariable(InstallerVariables.java:340) at com.install4j.runtime.installer.InstallerVariables.addVariables(InstallerVariables.java:1054) at com.install4j.runtime.installer.InstallerVariables.loadResponseFile(InstallerVariables.java:966) at com.install4j.runtime.installer.InstallerVariables.initCommandLine(InstallerVariables.java:926) at com.install4j.runtime.installer.Installer.getScreenExecutor(Installer.java:109) at com.install4j.runtime.installer.Installer.runInProcess(Installer.java:73) at com.install4j.runtime.installer.Installer.main(Installer.java:50) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:84) at com.install4j.runtime.launcher.UnixLauncher.start(UnixLauncher.java:69) at install4j.Installer2927833165.main(Unknown Source) ``` Error log info: ``` Exception: java.lang.ClassCastException: class java.lang.String cannot be cast to class java.lang.Boolean (java.lang.String and java.lang.Boolean are in module java.base of loader 'bootstrap') at com.install4j.runtime.installer.InstallerVariables$12.setVariable(InstallerVariables.java:859) at com.install4j.runtime.installer.InstallerVariables$4.run(InstallerVariables.java:345) at com.install4j.runtime.installer.helper.comm.actions.RunAction.execute(RunAction.java:11) at com.install4j.runtime.installer.helper.comm.HelperCommunication.executeActionDirect(HelperCommunication.java:292) at com.install4j.runtime.installer.helper.comm.HelperCommunication.executeActionInt(HelperCommunication.java:267) at com.install4j.runtime.installer.helper.comm.HelperCommunication.executeAction(HelperCommunication.java:244) at com.install4j.runtime.installer.InstallerVariables.setVariable(InstallerVariables.java:340) at com.install4j.runtime.installer.InstallerVariables.addVariables(InstallerVariables.java:1054) at com.install4j.runtime.installer.InstallerVariables.loadResponseFile(InstallerVariables.java:966) at com.install4j.runtime.installer.InstallerVariables.initCommandLine(InstallerVariables.java:926) at com.install4j.runtime.installer.Installer.getScreenExecutor(Installer.java:109) at com.install4j.runtime.installer.Installer.runInProcess(Installer.java:73) at com.install4j.runtime.installer.Installer.main(Installer.java:50) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:84) at com.install4j.runtime.launcher.UnixLauncher.start(UnixLauncher.java:69) at install4j.Installer2927833165.main(Unknown Source) System properties: java.specification.version=17 install4j.launcherId=20293 sun.jnu.encoding=UTF-8 java.class.path=i4jruntime.jar:launcher0.jar java.vm.vendor=Azul Systems, Inc. sun.arch.data.model=64 install4j.exeDir=/home/[redacted]/ sun.font.fontmanager=sun.awt.X11FontManager java.vendor.url=http://www.azul.com/ user.timezone=Etc/UTC java.vm.specification.version=17 os.name=Linux sun.java.launcher=SUN_STANDARD sun.boot.library.path=/home/[redacted]/burpsuite_enterprise_linux_v2023_6_1.sh.13779.dir/jre/lib sun.java.command=install4j.Installer2927833165 -q -varfile response.varfile -c -Dinstall4j.debug=true -Dinstall4j.logToStderr=true -Dinstall4j.detailStdout=true -Dinstall4j.keepLog=true jdk.debug=release sun.cpu.endian=little user.home=/root install4j.logToStderr=true user.language=en jdk.http.auth.tunneling.disabledSchemes= sun.stderr.encoding=UTF-8 install4j.keepLog=true java.specification.vendor=Oracle Corporation java.version.date=2023-04-18 java.home=/home/[redacted]/burpsuite_enterprise_linux_v2023_6_1.sh.13779.dir/jre file.separator=/ java.vm.compressedOopsMode=Zero based line.separator= sun.stdout.encoding=UTF-8 sun.awt.fontconfig=/tmp/i4jfont5139644114376376066.properties java.vm.specification.vendor=Oracle Corporation java.specification.name=Java Platform API Specification jdk.lang.Process.allowAmbiguousCommands=false exe4j.moduleName=/home/[redacted]/burpsuite_enterprise_linux_v2023_6_1.sh java.awt.headless=true sun.management.compiler=HotSpot 64-Bit Tiered Compilers java.runtime.version=17.0.7+7-LTS user.name=root path.separator=: java.net.useSystemProxies=true os.version=5.15.0-1037-gcp java.runtime.name=OpenJDK Runtime Environment install4j.detailStdout=true file.encoding=UTF-8 java.vm.name=OpenJDK 64-Bit Server VM java.vendor.version=Zulu17.42+19-CA install4j.jvmDir=/home/[redacted]/burpsuite_enterprise_linux_v2023_6_1.sh.13779.dir/jre install4j.cwd=/home/[redacted] install4j.debug=true install4j.appDir=/home/[redacted]/ java.vendor.url.bug=http://www.azul.com/support/ java.io.tmpdir=/tmp java.version=17.0.7 user.dir=/home/[redacted]/burpsuite_enterprise_linux_v2023_6_1.sh.13779.dir os.arch=amd64 java.vm.specification.name=Java Virtual Machine Specification exe4j.totalDataLength=847060166 native.encoding=UTF-8 java.library.path=/home/[redacted]/burpsuite_enterprise_linux_v2023_6_1.sh.13779.dir/user::/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib java.vm.info=mixed mode, sharing java.vendor=Azul Systems, Inc. java.vm.version=17.0.7+7-LTS sun.io.unicode.encoding=UnicodeLittle java.class.version=61.0 install4j.swt=false ```

Maia, PortSwigger Agent | Last updated: Jul 12, 2023 06:03PM UTC

Thank you for your message and for including the detailed output from the command. It looks like there may be an issue with a value in your varfile. Can you please email a copy of your varfile to support@portswigger.net so we can replicate your issue? Can you also let me know the version of Ubuntu that you are using and if you made any modifications to the varfile?

You must be an existing, logged-in customer to reply to a thread. Please email us for additional support.