mirror of
https://github.com/rapid7/metasploitable3.git
synced 2024-06-16 10:04:12 +02:00
Revert "Remove jmx vulnerability until licensing is figured out."
This reverts commit 593bae2a6a
.
This commit is contained in:
parent
f9471ed227
commit
14eb9bbeaa
BIN
resources/jmx/Hello.class
Executable file
BIN
resources/jmx/Hello.class
Executable file
Binary file not shown.
BIN
resources/jmx/HelloMBean.class
Executable file
BIN
resources/jmx/HelloMBean.class
Executable file
Binary file not shown.
BIN
resources/jmx/SimpleAgent.class
Executable file
BIN
resources/jmx/SimpleAgent.class
Executable file
Binary file not shown.
BIN
resources/jmx/jdk1.6.zip
Executable file
BIN
resources/jmx/jdk1.6.zip
Executable file
Binary file not shown.
BIN
resources/jmx/jmx.exe
Executable file
BIN
resources/jmx/jmx.exe
Executable file
Binary file not shown.
1
resources/jmx/start_jmx.bat
Normal file
1
resources/jmx/start_jmx.bat
Normal file
|
@ -0,0 +1 @@
|
|||
"C:\Program Files\Java\jdk1.6.0_26\bin\java.exe" -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=1617 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false SimpleAgent
|
|
@ -4,4 +4,5 @@ netsh advfirewall firewall add rule name="Open Port 8282 for Apache Struts" dir=
|
|||
netsh advfirewall firewall add rule name="Open Port 80 for IIS" dir=in action=allow protocol=TCP localport=80
|
||||
netsh advfirewall firewall add rule name="Open Port 4848 for GlassFish" dir=in action=allow protocol=TCP localport=4848
|
||||
netsh advfirewall firewall add rule name="Open Port 8080 for GlassFish" dir=in action=allow protocol=TCP localport=8080
|
||||
netsh advfirewall firewall add rule name="Open Port 3389 for Remote Desktop" dir=in action=allow protocol=TCP localport=3389
|
||||
netsh advfirewall firewall add rule name="Open Port 3389 for Remote Desktop" dir=in action=allow protocol=TCP localport=3389
|
||||
netsh advfirewall firewall add rule name="Java 1.6 java.exe" dir=in action=allow program="C:\Program Files\Java\jdk1.6.0_26\bin\java.exe" enable=yes
|
9
scripts/installs/setup_jmx.bat
Normal file
9
scripts/installs/setup_jmx.bat
Normal file
|
@ -0,0 +1,9 @@
|
|||
mkdir "%ProgramFiles%\jmx"
|
||||
copy C:\vagrant\resources\jmx\Hello.class "%ProgramFiles%\jmx"
|
||||
copy C:\vagrant\resources\jmx\HelloMBean.class "%ProgramFiles%\jmx"
|
||||
copy C:\vagrant\resources\jmx\SimpleAgent.class "%ProgramFiles%\jmx"
|
||||
copy C:\vagrant\resources\jmx\jmx.exe "%ProgramFiles%\jmx"
|
||||
copy C:\vagrant\resources\jmx\start_jmx.bat "%ProgramFiles%\jmx"
|
||||
cmd /c ""C:\Program Files\7-Zip\7z.exe" x "C:\vagrant\resources\jmx\jdk1.6.zip" -o"C:\Program Files\Java""
|
||||
"%ProgramFiles%\jmx\jmx.exe" -Service Install
|
||||
cacls "C:\Program Files\jmx" /t /e /g Everyone:f
|
Loading…
Reference in New Issue
Block a user