How to write a startup script for burpsuite on java17 - burp

This is the original running script of burpsuite, and there is no problem in the java8 environment.
java -Dfile.encoding=utf-8 -javaagent:BurpSuiteCn.jar -Xmx1024m -noverify -Xbootclasspath/p:burp-loader-keygen-2.jar -jar burpsuite_pro_v2.1.jar
But it will report an error in java17
OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
-Xbootclasspath/p is no longer a supported option.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Now changing to java17, how do I update my startup script?

Related

Problem with aws cdk on Windows 10 Home Edition (Code: 800A03F6 Source: Compilation Error in Microsoft JScript)

I am installing aws-cdk on windows 10 home edition using powershell as administrator.
After successful installation and calling cdk - version, I keep getting error messages from the Windows Script Host:
Script
C:\Users..\ApData\Roaming\npm\node_modules\aws-cdk\bin\cdk.js
line 1
Character 1
...
Code: 800A03F6
Source: Compilation Error in Microsoft JScript
To solve the problem
I tried npx -p aws-cdk cdk --version.
I uninstalled node and aws-cdk, restarted windows and reinstalled everything.
Everything without success.
Error 800A03F6 can mean anything and only occurs in connection with cdk --version command. I don't have a proxy and have used an antivirus program.
I just fixed this problem by changing the path in the environment variable:
https://stackoverflow.com/a/67566915/12408270
change environment variable PATH to:
C:\Users\${your_username}\AppData\Roaming\npm

Error running linux container on windows 2019 server AWS

I'm having problem while running Linux container on Windows Server 2019, AWS.
Following is the error:
failed to register layer: failed to start service utility VM (applydiff 7867715a779e14ed8af41d812471a62615cb810cbce3df69a4ed0d2036086d7b): container 7867715a779e14ed8af41d812471a62615cb810cbce3df69a4ed0d2036086d7b_svm encountered an error during CreateContainer: failure in a Windows system call: The virtual machine could not be started because a required feature is not installed. (0xc0370102) extra info: {"SystemType":"container","Name":"7867715a779e14ed8af41d812471a62615cb810cbce3df69a4ed0d2036086d7b_svm","Layers":null,"HvPartition":true,"HvRuntime":{"ImagePath":"C:\Program Files\Linux Containers","LinuxInitrdFile":"initrd.img","LinuxKernelFile":"bootx64.efi"},"ContainerType":"linux","TerminateOnLastHandleClosed":true}
Note: Hyper-V is activated.

Getting java errors trying to run leiningen

I'm trying to build a project that uses leiningen -- though my issue seems to be with leiningen and not with the project.
When I run lein figwheel dev (for a project that has a /dev folder configured correctly) I get the following:
Figwheel: Cutting some fruit, just a sec ...
Unrecognized option: --add-modules
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Which indicates it's an error with the JVM, but I'm not familiar enough with working with any of JVM / clojure / lein to know what I should be doing to fix it.
Some (hopefully!) helpful information about my stack:
$ java --version
openjdk 11.0.1 2018-10-16
OpenJDK Runtime Environment (build 11.0.1+13-Debian-2)
OpenJDK 64-Bit Server VM (build 11.0.1+13-Debian-2, mixed mode, sharing)
$ lein --version
Leiningen 2.8.1 on Java 1.8.0_171 OpenJDK 64-Bit Server VM
Clone this repo and see if it solves your problems: https://github.com/cloojure/cljs-template
Be sure to read the README.txt file and follow the instructions.
For this project, all you need is:
> lein figwheel
I'm not sure what you have in your ./dev folder - that's probably the problem.

localstack start command is throwing exception

I tried to install localstack to test my lambda function, which uses dynamodb, sqs services.
To test this lambda function I installed localstack and followed the steps, which they gave in Readme.md file.
But when I tried to start localstack service by running "localstack start" command, it ends with below exception.
I have used "pip install localstack" command for installation
localstack exception while running it
Exception:
sfanish#fanish-PC MINGW64 /c/Python27/Scripts
$ localstack start
$ localstack start 2017-12-27T14:37:50:INFO:localstack.services.install:
Downloading and installing local Elasticsearch server.
This may take some time. Starting local dev environment. CTRL-C to quit.
ERROR: 'mkdir -p C:\python27\lib\site-packages\localstack/infra': The syntax of the command is incorrect.
I am using windows10 64-bit machine, Python2.7. Any help will be great :)
The error is due to the fact that the path contains both '/' and '\'. Windows even with MINGW64 is not well supported by localstack.
Solutions:
Try the last version of localstack/localstack.
Fix the issue in localstack code.
Use a virtual environment (Virtual Box, Hyper-V, Docker) that support fully the GNU/Linux syntax.

Jetty Version 9 throws java.lang.NoClassDefFoundError for Embedded Server

I decided to upgrade Jetty in order to add support for HTTPS connections. The build was done successfully by Maven and the code runs on Java 7 JRE.
After an upgrade from Jetty 8 (8.1.8.v20121106) to Jetty Version 9 (9.2.14.v20151106) using an embedded server code, I get the following error at the begin of the Jetty server startup.
Any hint what is causing the error at the classloader?
sh ./testit.sh
Exception in thread "main" java.lang.NoClassDefFoundError: org.eclipse.jetty.server.HttpConfiguration$Customizer
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:94)
at java.lang.J9VMInternals.prepare(J9VMInternals.java:514)
at java.lang.Class.getMethod(Class.java:1113)
at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:507)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:499)
Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.server.HttpConfiguration$Customizer
at java.net.URLClassLoader.findClass(URLClassLoader.java:600)
at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:777)
at java.lang.ClassLoader.loadClass(ClassLoader.java:750)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:326)
at java.lang.ClassLoader.loadClass(ClassLoader.java:731)
... 6 more
I've isolated the error cause. The Maven build tool added the Jetty distribution version number to the target libraries, which did not match my Java static classpath configuration. After correcting the classpath setting in the startup script, the program code started the embedded Jetty 9 server and worked just fine for my project.
#Joakim Erdfelt this is my Java version
java -version
java version "1.7.0"
Java(TM) SE Runtime Environment (build pxa6470sr9fp10-20150708_01(SR9 FP10))
IBM J9 VM (build 2.6, JRE 1.7.0 Linux amd64-64 Compressed References 20150701_255667 (JIT enabled, AOT enabled)
J9VM - R26_Java726_SR9_20150701_0050_B255667
JIT - tr.r11_20150626_95120.01
GC - R26_Java726_SR9_20150701_0050_B255667_CMPRSS
J9CL - 20150701_255667)
JCL - 20150628_01 based on Oracle jdk7u85-b15