Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terraform 0.12 #20

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions examples/basic_dns_c2_azure.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,23 @@ module "resource_group" {

module "storage_account" {
source = "./modules/azure/create-storage-account"
resource_group_names = "${module.resource_group.resource_group_names}"
locations = "${module.resource_group.locations}"
resource_group_names = module.resource_group.resource_group_names
locations = module.resource_group.locations
}

module "dns_c2" {
source = "./modules/azure/dns-c2"
resource_group_names = "${module.resource_group.resource_group_names}"
locations = "${module.resource_group.locations}"
primary_blob_endpoints = "${module.storage_account.primary_blob_endpoints}"
storage_container_names = "${module.storage_account.storage_container_names}"
resource_group_names = module.resource_group.resource_group_names
locations = module.resource_group.locations
primary_blob_endpoints = module.storage_account.primary_blob_endpoints
storage_container_names = module.storage_account.storage_container_names
}

module "dns_rdir" {
source = "./modules/azure/dns-rdir"
redirect_to = "${module.dns_c2.ips}"
resource_group_names = "${module.resource_group.resource_group_names}"
locations = "${module.resource_group.locations}"
primary_blob_endpoints = "${module.storage_account.primary_blob_endpoints}"
storage_container_names = "${module.storage_account.storage_container_names}"
redirect_to = module.dns_c2.ips
resource_group_names = module.resource_group.resource_group_names
locations = module.resource_group.locations
primary_blob_endpoints = module.storage_account.primary_blob_endpoints
storage_container_names = module.storage_account.storage_container_names
}
14 changes: 7 additions & 7 deletions examples/basic_dns_c2_digitalocean.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ module "dns_c2" {
//count = 2

// Wanna install empire?
//install = ["./scripts/empire.sh"]
//install = ["./data/scripts/empire.sh"]

// Wanna install metasploit?
//install = ["./scripts/metasploit.sh"]
//install = ["./data/scripts/metasploit.sh"]

// Wanna install CS?
//install = ["./scripts/cobaltstrike.sh"]
//install = ["./data/scripts/cobaltstrike.sh"]

// I WANT EVERYTHING
//install = ["./scripts/empire.sh", "./scripts/metasploit.sh", "./scripts/cobaltstrike.sh"]
//install = ["./data/scripts/empire.sh", "./scripts/metasploit.sh", "./scripts/cobaltstrike.sh"]
}

module "dns_rdir" {
Expand All @@ -27,16 +27,16 @@ module "dns_rdir" {
// 1 redirector ha. ha. ha... 2 redirectors ha. ha. ha... 3 redirectors ha. ha. ha..
//count = 4

redirect_to = "${module.dns_c2.ips}"
redirect_to = module.dns_c2.ips

//regions = ["NYC1", "SGP1"]
}

// print the c2 and redirector ips to the screen all perty like when everything's done
output "dns-c2-ips" {
value = "${module.dns_c2.ips}"
value = module.dns_c2.ips
}

output "dns-rdir-ips" {
value = "${module.dns_rdir.ips}"
value = module.dns_rdir.ips
}
18 changes: 9 additions & 9 deletions examples/basic_http_c2_aws.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,34 +15,34 @@ module "create_vpc" {
module "http_c2" {
source = "./modules/aws/http-c2"

vpc_id = "${module.create_vpc.vpc_id}"
subnet_id = "${module.create_vpc.subnet_id}"
vpc_id = module.create_vpc.vpc_id
subnet_id = module.create_vpc.subnet_id

// 1 http C2 ha. ha. ha... 2 http C2s ha. ha. ha... 3 http C2s ha. ha. ha...
//count = 2

// Wanna install empire?
//install = ["./scripts/empire.sh"]
//install = ["./data/scripts/empire.sh"]

// Wanna install metasploit?
//install = ["./scripts/metasploit.sh"]
//install = ["./data/scripts/metasploit.sh"]

// Wanna install CS?
//install = ["./scripts/cobaltstrike.sh"]
//install = ["./data/scripts/cobaltstrike.sh"]

// I WANT EVERYTHING
//install = ["./scripts/empire.sh", "./scripts/metasploit.sh", "./scripts/cobaltstrike.sh"]
//install = ["./data/scripts/empire.sh", "./scripts/metasploit.sh", "./scripts/cobaltstrike.sh"]
}


module "http_rdir" {
source = "./modules/aws/http-rdir"

//count = 4
vpc_id = "${module.create_vpc.vpc_id}"
subnet_id = "${module.create_vpc.subnet_id}"
vpc_id = module.create_vpc.vpc_id
subnet_id = module.create_vpc.subnet_id

redirect_to = "${module.http_c2.ips}"
redirect_to = module.http_c2.ips

//regions = ["TX", "SG"]
}
30 changes: 15 additions & 15 deletions examples/basic_http_c2_azure.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,40 +9,40 @@ module "resource_group" {

module "storage_account" {
source = "./modules/azure/create-storage-account"
resource_group_names = "${module.resource_group.resource_group_names}"
locations = "${module.resource_group.locations}"
resource_group_names = module.resource_group.resource_group_names
locations = module.resource_group.locations
count = 2
}

module "http_c2" {
source = "./modules/azure/http-c2"
resource_group_names = "${module.resource_group.resource_group_names}"
locations = "${module.resource_group.locations}"
primary_blob_endpoints = "${module.storage_account.primary_blob_endpoints}"
storage_container_names = "${module.storage_account.storage_container_names}"
resource_group_names = module.resource_group.resource_group_names
locations = module.resource_group.locations
primary_blob_endpoints = module.storage_account.primary_blob_endpoints
storage_container_names = module.storage_account.storage_container_names

// 1 http C2 ha. ha. ha... 2 http C2s ha. ha. ha... 3 http C2s ha. ha. ha...
//count = 2

// Wanna install empire?
//install = ["./scripts/empire.sh"]
//install = ["./data/scripts/empire.sh"]

// Wanna install metasploit?
//install = ["./scripts/metasploit.sh"]
//install = ["./data/scripts/metasploit.sh"]

// Wanna install CS?
//install = ["./scripts/cobaltstrike.sh"]
//install = ["./data/scripts/cobaltstrike.sh"]

// I WANT EVERYTHING
//install = ["./scripts/empire.sh", "./scripts/metasploit.sh", "./scripts/cobaltstrike.sh"]
//install = ["./data/scripts/empire.sh", "./scripts/metasploit.sh", "./scripts/cobaltstrike.sh"]
}

module "http_rdir" {
source = "./modules/azure/http-rdir"
redirect_to = "${module.http_c2.ips}"
resource_group_names = "${module.resource_group.resource_group_names}"
locations = "${module.resource_group.locations}"
primary_blob_endpoints = "${module.storage_account.primary_blob_endpoints}"
storage_container_names = "${module.storage_account.storage_container_names}"
redirect_to = module.http_c2.ips
resource_group_names = module.resource_group.resource_group_names
locations = module.resource_group.locations
primary_blob_endpoints = module.storage_account.primary_blob_endpoints
storage_container_names = module.storage_account.storage_container_names
count = 2
}
14 changes: 7 additions & 7 deletions examples/basic_http_c2_digitalocean.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ module "http_c2" {
//count = 2

// Wanna install empire?
//install = ["./scripts/empire.sh"]
//install = ["./data/scripts/empire.sh"]

// Wanna install metasploit?
//install = ["./scripts/metasploit.sh"]
//install = ["./data/scripts/metasploit.sh"]

// Wanna install CS?
//install = ["./scripts/cobaltstrike.sh"]
//install = ["./data/scripts/cobaltstrike.sh"]

// I WANT EVERYTHING
//install = ["./scripts/empire.sh", "./scripts/metasploit.sh", "./scripts/cobaltstrike.sh"]
//install = ["./data/scripts/empire.sh", "./scripts/metasploit.sh", "./scripts/cobaltstrike.sh"]
}

module "http_rdir" {
Expand All @@ -27,16 +27,16 @@ module "http_rdir" {
// 1 redirector ha. ha. ha... 2 redirectors ha. ha. ha... 3 redirectors ha. ha. ha..
//count = 4

redirect_to = "${module.http_c2.ips}"
redirect_to = module.http_c2.ips

//regions = ["NYC1", "SGP1"]
}

// print the c2 and redirector ips to the screen all perty like when everything's done
output "http-c2-ips" {
value = "${module.http_c2.ips}"
value = module.http_c2.ips
}

output "http-rdir-ips" {
value = "${module.http_rdir.ips}"
value = module.http_rdir.ips
}
2 changes: 1 addition & 1 deletion examples/basic_http_c2_google.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ module "http_c2" {
module "http_rdir" {
source = "./modules/google/http-rdir"
count = 2
redirect_to = "${module.http_c2.ips}"
redirect_to = module.http_c2.ips
zones = ["Canada-1", "Brazil-2"]
}
10 changes: 5 additions & 5 deletions examples/basic_http_c2_linode.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,24 @@ module "http_c2" {
//count = 2

// Wanna install empire?
//install = ["./scripts/empire.sh"]
//install = ["./data/scripts/empire.sh"]

// Wanna install metasploit?
//install = ["./scripts/metasploit.sh"]
//install = ["./data/scripts/metasploit.sh"]

// Wanna install CS?
//install = ["./scripts/cobaltstrike.sh"]
//install = ["./data/scripts/cobaltstrike.sh"]

// I WANT EVERYTHING
//install = ["./scripts/empire.sh", "./scripts/metasploit.sh", "./scripts/cobaltstrike.sh"]
//install = ["./data/scripts/empire.sh", "./scripts/metasploit.sh", "./scripts/cobaltstrike.sh"]
}

module "http_rdir" {
source = "./modules/linode/http-rdir"

// 1 redirector ha. ha. ha... 2 redirectors ha. ha. ha... 3 redirectors ha. ha. ha..
//count = 4
redirect_to = "${module.http_c2.ips}"
redirect_to = module.http_c2.ips

//regions = ["TX", "SG"]
}
10 changes: 5 additions & 5 deletions examples/basic_phishing_aws.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ module "phishing_server" {

// 1 phishing server ha. ha. ha... 2 phishing servers ha. ha. ha... 3 phishing servers ha. ha. ha...
//count = 2
vpc_id = "${module.create_vpc.vpc_id}"
subnet_id = "${module.create_vpc.subnet_id}"
vpc_id = module.create_vpc.vpc_id
subnet_id = module.create_vpc.subnet_id

}

Expand All @@ -27,9 +27,9 @@ module "http_rdir" {

// 1 redirector ha. ha. ha... 2 redirectors ha. ha. ha... 3 redirectors ha. ha. ha...
//count = 4
vpc_id = "${module.create_vpc.vpc_id}"
subnet_id = "${module.create_vpc.subnet_id}"
vpc_id = module.create_vpc.vpc_id
subnet_id = module.create_vpc.subnet_id

redirect_to = "${module.phishing_server.ips}"
redirect_to = module.phishing_server.ips

}
2 changes: 1 addition & 1 deletion examples/basic_phishing_digitalocean.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ module "phishing_server" {
module "http_rdir" {
source = "./modules/digitalocean/http-rdir"

redirect_to = "${module.phishing_server.ips}"
redirect_to = module.phishing_server.ips
}
2 changes: 1 addition & 1 deletion examples/basic_phishing_google.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module "phishing_server" {
module "http_rdir" {
source = "./modules/linode/http-rdir"
count = 4
redirect_to = "${module.phishing_server.ips}"
redirect_to = module.phishing_server.ips

regions = ["Oregon-1", "Singapore-1", "Australia-2", "Japan-1"]
}
2 changes: 1 addition & 1 deletion examples/basic_phishing_linode.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module "http_rdir" {

// 1 redirector ha. ha. ha... 2 redirectors ha. ha. ha... 3 redirectors ha. ha. ha...
//count = 4
redirect_to = "${module.phishing_server.ips}"
redirect_to = module.phishing_server.ips

// 1337 APT's all come from Texas and Singapore
//regions = ["TX", "SG"]
Expand Down
Loading