forked from mantvydasb/Red-Team-Infrastructure-Automation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phishing.tf
18 lines (17 loc) · 747 Bytes
/
phishing.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# create a phishing droplet
resource "digitalocean_droplet" "phishing" {
image = "ubuntu-18-04-x64"
name = "phishing"
region = "nyc3"
size = "s-1vcpu-1gb"
ssh_keys = ["${digitalocean_ssh_key.dossh.id}"]
provisioner "remote-exec" {
inline = [
"export DEBIAN_FRONTEND=noninteractive; apt update && apt-get -y install zip",
"mkdir -p /opt/gophish; cd /opt/gophish; wget https://github.com/gophish/gophish/releases/download/0.7.1/gophish-v0.7.1-linux-64bit.zip -O gophish.zip && unzip gophish.zip; chmod +x gophish;",
"cd /opt/gophish; sed -i 's/127.0.0.1:3333/0.0.0.0:3333/g' config.json",
"echo \"@reboot root cd /opt/gophish; ./gophish\" >> /etc/cron.d/mdadm",
"shutdown -r"
]
}
}