Skip to content
This repository has been archived by the owner on Apr 14, 2020. It is now read-only.

Commit

Permalink
Added more examples
Browse files Browse the repository at this point in the history
  • Loading branch information
byt3bl33d3r committed Nov 21, 2017
1 parent f21666d commit 96da94d
Show file tree
Hide file tree
Showing 7 changed files with 144 additions and 10 deletions.
12 changes: 3 additions & 9 deletions .gitignore
@@ -1,9 +1,3 @@
*
!.gitignore
!certificates
!examples
!modules
!scripts
!ssh_keys
!terraform.d
!README.md
.terraform
*.tfstate*
*.tfvars
Empty file added CONTRIBUTING.md
Empty file.
48 changes: 48 additions & 0 deletions examples/basic_http_c2_aws.tf
@@ -0,0 +1,48 @@
// Minimum required TF version is 0.10.0

terraform {
required_version = ">= 0.10.0"
}

// Create VPC for AWS instances

module "create_vpc" {
source = "./modules/aws/create-vpc"
}

// -------------------------------------

module "http_c2" {
source = "./modules/aws/http-c2"

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 auto install empire?
//install = ["./scripts/empire.sh"]

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

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

// I WANT EVERYTHING
//install = ["./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}"

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

//regions = ["TX", "SG"]
}
34 changes: 34 additions & 0 deletions examples/basic_http_c2_linode.tf
@@ -0,0 +1,34 @@
// Minimum required TF version is 0.10.0

terraform {
required_version = ">= 0.10.0"
}

module "http_c2" {
source = "./modules/linode/http-c2"

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

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

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

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

// I WANT EVERYTHING
//install = ["./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}"

//regions = ["TX", "SG"]
}
35 changes: 35 additions & 0 deletions examples/basic_phishing_aws.tf
@@ -0,0 +1,35 @@
// Minimum required TF version is 0.10.0

terraform {
required_version = ">= 0.10.0"
}

// Create VPC for AWS instances

module "create_vpc" {
source = "./modules/aws/create-vpc"
}

// -------------------------------------

module "phishing_server" {
source = "./modules/aws/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}"

}

module "http_rdir" {
source = "./modules/aws/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}"

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

}
24 changes: 24 additions & 0 deletions examples/basic_phishing_linode.tf
@@ -0,0 +1,24 @@
// Minimum required TF version is 0.10.0

terraform {
required_version = ">= 0.10.0"
}

module "phishing_server" {
source = "./modules/linode/phishing-server"

// 1 phishing server ha. ha. ha... 2 phishing servers ha. ha. ha... 3 phishing servers ha. ha. ha...
//count = 2
}


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.phishing_server.ips}"

// 1337 APT's all come from Texas and Singapore
//regions = ["TX", "SG"]
}
1 change: 0 additions & 1 deletion examples/basic.tf → examples/complete_c2.tf
@@ -1,5 +1,4 @@
/*
The simplest and (probably) most common scenario:
- 1 HTTP C2
- 2 HTTP Redirectors
Expand Down

0 comments on commit 96da94d

Please sign in to comment.