forked from chuckixia/Mirai-Source-Code
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
30 lines (28 loc) · 1.45 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# -*- mode: ruby -*-
# vi: set ft=ruby :
# This vagrant sets up build environment for mirai botnet
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
# https://docs.vagrantup.com.
# Every Vagrant development environment requires a box. You can search for
# boxes at https://atlas.hashicorp.com/search.
config.vm.box = "ubuntu/trusty64"
#use this to reach command and control from host
config.vm.network "forwarded_port", guest: 23, host: 2323
# Enable provisioning with a shell script. Additional provisioners such as
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
# documentation for more information about their specific syntax and use.
config.vm.provision "shell", inline: <<-SHELL
debconf-set-selections <<< 'mysql-server mysql-server/root_password password password'
debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password password'
apt-get update
apt-get upgrade -y
apt-get install -y mysql-server mysql-client golang gcc electric-fence git
chmod +x /vagrant/Setting_Up_Cross_Compilers.sh
/vagrant/Setting_Up_Cross_Compilers.sh
ifconfig lo:1 8.8.8.8/32
SHELL
#config.vm.network "private_network", type: "dhcp"
config.vm.network "private_network", ip: "10.16.0.100", netmask: "24", virtualbox__intnet: "mirai_net"
end