metasploitable3/scripts/installs/install_devkit.bat
2017-09-01 16:34:41 +05:30

8 lines
524 B
Batchfile

mkdir "C:\RubyDevKit"
powershell -Command "(New-Object System.Net.WebClient).DownloadFile('http://dl.bintray.com/oneclick/rubyinstaller/DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe', 'C:\RubyDevKit\devkit.exe')" <NUL
cmd /c ""C:\Program Files\7-Zip\7z.exe" x "C:\RubyDevKit\devkit.exe" -o"C:\RubyDevKit\""
copy /Y C:\Vagrant\resources\Rails_Server\devkit\dk.rb "C:\RubyDevKit"
C:\tools\ruby23\bin\ruby.exe "C:\RubyDevKit\dk.rb" init
C:\tools\ruby23\bin\ruby.exe "C:\RubyDevKit\dk.rb" install
"C:\RubyDevKit\devkitvars.bat"