davidbombal / log4jminecraft

174 stars 60 forks source link

"javac" not found #7

Open NTheOne2018 opened 2 years ago

NTheOne2018 commented 2 years ago

not able to create netcat reverse shell //// command not working in MC chat

NTheOne2018 commented 2 years ago

i have created a HTTP server and a LDAP server, but i still need to create the netcat reverse shell. i watched john hammonds video, but it didnt help me either. i tried to use the commadn "nc -lnvp 1389" but it said the port is already in use. how do i know what command to write in the minecraft server???

BlackPyxl1 commented 2 years ago

same bro i get this output:

Traceback (most recent call last):
  File "/mnt/c/Users/Asus/log4jminecraft/jcomp_pyserv.py", line 9, in <module>
    subprocess.run(["javac", "Log4jRCE.java"])
  File "/usr/lib/python3.9/subprocess.py", line 505, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/lib/python3.9/subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.9/subprocess.py", line 1821, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'javac'
silvi6 commented 2 years ago

The solutions is to use: "sudo vi jcomp_pyserv.py" Press "i" to edit it. Change "javac" to "java". Press ESC. And lastly type ":wq" + Enter.

That should fix it.

davidbombal commented 2 years ago

Please refer to the following guide: https://www.dropbox.com/s/f0leevpga4eburp/Minecraft%20Windows%2011%20setup.pdf?dl=0 . This is the version of the JDK you want to install -> https://repo.huaweicloud.com/java/jdk/8u181-b13/jdk-8u181-windows-x64.exe

The above is to make sure you have the correct JDK on the Minecraft Windows server side.

javac not found means you don't have the JDK installed. You need a specific version. This should be installed on Kali automatically.