Commit Graph

132 Commits

Author SHA1 Message Date
Jeffrey Martin
fe91dcbf67
download windows pre-req files using the host OS
Many pre-req file have moved to require TLS 1.2, to address this
downloading these files in the host system will allows this requirement
to be meet even when the guest OS being built does not yet support TLS 1.2.

* downloads dotnet and wmf from a provisioner run by the host OS
* updates dotnet to 4.5.2
* update wmf for powershell 5.1
* adjust install process for wmf to run as SYSTEM
* moves boxstarter and Ruby install into the chocolatey_installs path

Furhter work should be done to validate the downlaod hash and support caching downloads
instead of force each build to download again.

This does not remove the need for downloads by chocolatey when preforming those installs.
2023-02-03 13:46:46 -06:00
Jeffrey Martin
cec1d4395d
only download 7z if missing 2021-11-24 13:54:53 -06:00
Jeffrey Martin
8d5ad5ae9b
use alternate download location 2021-11-23 16:28:29 -06:00
Jeffrey Martin
05988bc630
download ManageEngine using tls 2021-08-23 10:08:51 -05:00
Jeffrey Martin
0cbceb95ce
update devkit link to a git permalink
Fix #529

The CDN previously used has shutdown.  Pull the devkit from metasploit build cache repo.
2021-05-10 09:18:04 -05:00
Jeffrey Martin
d6711c348d
lock gem version for rails build 2021-03-01 08:40:14 -06:00
Jeffrey Martin
0c933759e2
download elasticsearch with https
The original endpoint on http now returns a 302 that powershell does not follow.
2021-02-09 08:24:57 -06:00
Jeffrey Martin
9bb95f1a72
also enforce bundler version in setup 2021-01-15 17:14:06 -06:00
Jeffrey Martin
fae426456e
use rails 4 compatible bundler 2021-01-15 15:53:44 -06:00
Jeffrey Martin
b9d61f4830
enable tls12 for vagrant key download 2021-01-15 14:41:01 -06:00
Jeffrey Martin
17b04aeac8
Rubygems.org has a new public certificate.
* disable cert validation for gem update --system
* restore checks for later bundle
2020-12-09 17:10:11 -06:00
Jeffrey Martin
34283b14a1
lock the java package
The many services that rely on java need to have better limits.

By installing a specific compatible java version early the build
can eliminate churn and provide more consistent enviornments.
2020-08-19 08:11:37 -05:00
Jeffrey Martin
6ef3902e25
Land #444, Fix Powershell SSL/TLS error for chocolatey download 2020-02-08 08:45:18 -06:00
HomeSen
a47a60f37d Fix Powershell SSL/TLS error for chocolatey download 2020-02-06 17:51:04 +01:00
Wayne Haber
785a042ab4
Fix install of elasticsearch on Windows
The install is failing as the .zip download was not working.  Updated link to elaticsearch.co, changed it from http to https, and updated the script to ignore cert errors.  All changes were required to make it work (for me at least).
2020-01-28 16:16:50 -05:00
Jeffrey Martin
02e65a2c17
Land #381, Fix snmp 2019-10-21 12:15:32 -05:00
jorgitux
3598053ff4 Fix install Glassfish win2k8 2019-10-07 22:43:46 -05:00
usmcfiredog
525940362a
changed to DISM install to allow the feature to install 2019-03-05 08:05:56 -08:00
Nicholas Kasprinski
6f01e7a9d7 changed from pkgmgr to DISM to allow for the features to be enabled correctly 2019-02-05 17:43:13 -08:00
Jeffrey Martin
a4ecd265cf
Update guest tools install for better vmware support
* make guest tools last so pre-reqs are in place

Packer 1.3.x and possibly more does not inject enviornment
variables as expected into `windows-shell` provisioners, moving
script that requires these into a `shell` provisioner.

* do not trust default uploaded windows.iso

Packer in some cases will upload windows.iso from the host
building the VM, since server 2008 needs a specific older
version of tools this can cause problems.

Example issue:
VMware Fusion 11 on macOS Mojave will supply 10.3.x in windows.iso
and will hit https://kb.vmware.com/s/article/55798 due the patch level
expectaions that are intentionally not met for Windows 2008r2.
2019-01-17 21:33:55 -06:00
Stan
dc43bc6c9f add explicit TLS 1.2 setting to PS session when downloading RubyDevKit from new https endpoint 2018-12-01 19:21:52 -08:00
Jeffrey Martin
a3c19e7fac
lets try version 16.04, hopefully buys more time 2018-04-11 10:20:17 -05:00
Jeffrey Martin
4fbe02277d
Update 7zip url for latest version
Fix #266 due to previous version now behind soureforge redirect.
2018-04-09 11:34:03 -05:00
Brent Cook
1dc344bc30
Land #231, Add the Linux Box From the 2017 CTF 2018-03-14 20:59:53 -05:00
Hlynrkjaer
4b3ad2a7b2
Fix for "Could not create SSL/TLS secure channel".
Proposed file change is potential fix for ""Could not create SSL/TLS secure channel"" with ""scripts/installs/install_openjdk6.bat"".
Discussed there: https://github.com/rapid7/metasploitable3/issues/219
2018-03-03 15:23:26 +00:00
Chan9390
51778136ac
Added WAMP installer to /resources/wamp 2018-02-20 17:48:30 +05:30
James Barnett
39c8ee092f Merge branch 'feature/linux_ctf' into merge_linux_ctf 2017-12-14 16:31:53 -06:00
Jeffrey Martin
f6fc402e0a
suppress non-zero exit for glassfish start
when requesting glassfish to start in vmware fusion 10 packer get
a non-zero exit code when service is already starting.  This look
to be valid to simply ignore.
2017-11-28 12:33:39 -06:00
Chan9390
880ba056b0
Moved devkit to RubyDevKit 2017-09-01 16:34:41 +05:30
Tijl Deneut
fbbb3e4718 Fix ManageEngine not starting
Notification Server fails to be configured for Local Service and the auto start settings where lost too. Fixed now.
2017-08-03 15:15:40 +02:00
Tijl Deneut
5e99d564cb Fix the broken jack_of_diamonds ADS flag 2017-08-03 15:14:31 +02:00
James Barnett
b4b47b5e06 Merge branch 'master' into feature/linux_ctf 2017-07-27 11:31:23 -05:00
James Barnett
0ddaf0c8b9
Add .NET 4.0 script back in.
Let's keep this file even though it's not actively being used.
IMO it's better to have a large collection of working install
scripts that we can use as needed. This will make sure it is
available if needed in the future.
2017-07-27 11:19:43 -05:00
Chan9390
81571c9ff4
Removed dotnet 4.0 and added WMF to autounattend 2017-07-26 23:47:34 +05:30
Chan9390
415660add5
Removed dotnet 4.0 2017-07-26 19:11:16 +05:30
Chan9390
e3c1001ba8
Removed dotnet chocolatey install 2017-07-26 18:18:01 +05:30
Chan9390
181f3e733b
Moving dotnet installation to Autounattend.xml 2017-07-26 14:41:37 +05:30
James Barnett
e86ba5119b Merge branch 'ctf/master' into feature/linux_ctf 2017-07-25 11:12:18 -05:00
Chan9390
0c9c396aba
Added dotNet4.5 and Windows Management Framework 5 2017-07-20 10:23:25 +05:30
wchen-r7
d398a7b6e8 Add Autorun for linux share 2017-07-12 17:16:19 -05:00
wchen-r7
848c23898e Add share from Linux 2017-07-12 17:14:45 -05:00
Chan9390
6901e885f1
Increased the sleep time in glassfish script #155 2017-06-28 11:15:15 +05:30
Matt Robinson
550140e51f
Fix typo in script
This is windows, not unix :)
2017-06-26 21:01:04 -04:00
James Barnett
e12f4e39fe Merge branch 'master' into feature/build_with_packer 2017-06-13 15:23:26 -05:00
Chan9390
99cd396aba
Fixed the Ruby version to 2.3.3 #145 2017-05-29 18:37:33 +05:30
Chan9390
e487176a49
Corrected tomcat version 2017-05-20 15:27:24 +05:30
James Barnett
96c3e950e1
Building from packer working.
All of the software installation and configuration is occurring
on packer now. Vagrant just brings the box up and adjusts the firewall.
We probably want to do more configuration on the vagrant side to
make it more flexible, but this code is working so I wanted to
commit it.
2017-05-11 15:21:54 -05:00
James Barnett
abe223ba44 Merge remote-tracking branch 'origin/master' into feature/build_with_packer 2017-05-02 15:44:49 -05:00
wchen-r7
e937c7055d Increase timeout by 5 for GlassFish, also rm unnecessary taskkill 2017-05-02 10:22:19 -05:00
jbarnett-r7
280e9e9fdd Merge pull request #96 from jikuja/PR
Fix glassfish
2017-04-11 14:02:19 -05:00