mirror of
https://github.com/rapid7/metasploitable3.git
synced 2024-06-25 22:35:48 +02:00
Increase timeout by 5 for GlassFish, also rm unnecessary taskkill
This commit is contained in:
parent
f5786dde31
commit
e937c7055d
|
@ -5,7 +5,7 @@ copy /Y "C:\vagrant\resources\glassfish\admin-keyfile" "C:\glassfish\glassfish4\
|
||||||
copy /Y "C:\vagrant\resources\glassfish\domain.xml" "C:\glassfish\glassfish4\glassfish\domains\domain1\config\domain.xml"
|
copy /Y "C:\vagrant\resources\glassfish\domain.xml" "C:\glassfish\glassfish4\glassfish\domains\domain1\config\domain.xml"
|
||||||
cmd.exe /c "C:\glassfish\glassfish4\bin\asadmin.bat create-service domain1"
|
cmd.exe /c "C:\glassfish\glassfish4\bin\asadmin.bat create-service domain1"
|
||||||
net start domain1
|
net start domain1
|
||||||
powershell -Command "Start-Sleep -s 5"
|
powershell -Command "Start-Sleep -s 10"
|
||||||
net stop domain1
|
net stop domain1
|
||||||
icacls "C:\glassfish" /grant "NT Authority\LOCAL SERVICE:(OI)(CI)F" /T
|
icacls "C:\glassfish" /grant "NT Authority\LOCAL SERVICE:(OI)(CI)F" /T
|
||||||
sc config domain1 obj= "NT Authority\LOCAL SERVICE"
|
sc config domain1 obj= "NT Authority\LOCAL SERVICE"
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
Taskkill /IM domain1Service.exe /F
|
|
||||||
powershell -command "Start-Sleep -s 5"
|
powershell -command "Start-Sleep -s 5"
|
||||||
net start "domain1 GlassFish Server"
|
net start "domain1"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user