Merge branch 'origin_master'
This commit is contained in:
commit
c4e1bd7c5f
|
@ -28,7 +28,7 @@ To build automatically:
|
|||
To build manually:
|
||||
|
||||
1. Clone this repo and navigate to the main directory.
|
||||
2. Build the base VM image by running `packer build --only=<provider> windows_2008_r2.json` where `<provider>` is your preferred virtualization platform. Currently `virtualbox-iso` and `vmware-iso` are supported. This will take a while the first time you run it since it has to download the OS installation ISO.
|
||||
2. Build the base VM image by running `packer build --only=<provider>-iso windows_2008_r2.json` where `<provider>` is your preferred virtualization platform. Currently `virtualbox` and `vmware` providers are supported. This will take a while the first time you run it since it has to download the OS installation ISO.
|
||||
3. After the base Vagrant box is created you need to add it to your Vagrant environment. This can be done with the command `vagrant box add windows_2008_r2_<provider>.box --name=metasploitable3`.
|
||||
4. Use `vagrant plugin install vagrant-reload` to install the reload vagrant provisioner if you haven't already.
|
||||
5. To start the VM, run the command `vagrant up`. This will start up the VM and run all of the installation and configuration scripts necessary to set everything up. This takes about 10 minutes.
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,15 @@
|
|||
$ip=get-WmiObject Win32_NetworkAdapterConfiguration|Where {$_.Ipaddress.length -gt 1}
|
||||
$ipaddr = $ip[0].ipaddress[0]
|
||||
$ip=get-WmiObject Win32_NetworkAdapterConfiguration|Where {$_.IPAddress -gt 1}
|
||||
|
||||
if ($ip.count -gt 0) {
|
||||
$ip = $ip[0]
|
||||
}
|
||||
|
||||
if ($ip.IPAddress.count -gt 0) {
|
||||
$ipaddr = $ip.IPAddress[0]
|
||||
} else {
|
||||
$ipaddr = $ip[0].ipaddress[0]
|
||||
}
|
||||
|
||||
Write-Host "Updating Wordpress IP to $ipaddr"
|
||||
|
||||
$cmd = 'C:\wamp\bin\mysql\mysql5.5.20\bin\mysql.exe -u root --password="" -e "use wordpress; update wp_options set option_value=''http://'+$ipaddr+':8585/wordpress'' where option_name=''siteurl'';"'
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
mkdir "C:\Program Files\Rails_Server"
|
||||
mkdir "C:\Program Files\Rails_Server\devkit"
|
||||
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:\Program Files\Rails_Server\devkit\devkit.exe')" <NUL
|
||||
cmd /c ""C:\Program Files\7-Zip\7z.exe" x "C:\Program Files\Rails_Server\devkit\devkit.exe" -o"C:\Program Files\Rails_Server\devkit\""
|
||||
copy /Y C:\Vagrant\resources\Rails_Server\devkit\dk.rb "C:\Program Files\Rails_Server\devkit"
|
||||
C:\tools\ruby23\bin\ruby.exe "C:\Program Files\Rails_Server\devkit\dk.rb" init
|
||||
C:\tools\ruby23\bin\ruby.exe "C:\Program Files\Rails_Server\devkit\dk.rb" install
|
||||
"C:\Program Files\Rails_Server\devkit\devkitvars.bat"
|
||||
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"
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4,9 +4,9 @@ net stop "ManageEngine Desktop Central Server"
|
|||
net stop "MEDC Server Component - Apache"
|
||||
net stop "MEDC Server Component - Notification Server"
|
||||
icacls "C:\ManageEngine" /grant "NT Authority\LOCAL SERVICE:(OI)(CI)F" /T
|
||||
sc config "DesktopCentralServer" obj= "NT Authority\LOCAL SERVICE"
|
||||
sc config "MEDC Server Component - Notification Server" obj= "NT Authority\LOCAL SERVICE"
|
||||
sc config "MEDCServerComponent-Apache" obj= "NT Authority\LOCAL SERVICE"
|
||||
sc config "DesktopCentralServer" obj= "NT Authority\LOCAL SERVICE" type= own start= auto
|
||||
sc config "MEDC Server Component - Notification Server" obj= "NT Authority\LOCAL SERVICE" type= own start= auto
|
||||
sc config "MEDCServerComponent-Apache" obj= "NT Authority\LOCAL SERVICE" type= own start= auto
|
||||
net start "MEDC Server Component - Apache"
|
||||
net start "MEDC Server Component - Notification Server"
|
||||
net start "ManageEngine Desktop Central Server"
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
powershell -command "Start-Sleep -s 15"
|
||||
net start "domain1"
|
||||
exit 0
|
||||
|
|
Loading…
Reference in New Issue