2019-10-02 17:26:29 +01:00
|
|
|
{
|
2019-10-30 19:24:12 +01:00
|
|
|
"builders": [
|
|
|
|
{
|
|
|
|
"name": "pwnagotchi",
|
|
|
|
"type": "arm-image",
|
|
|
|
"iso_url": "https://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2019-07-12/2019-07-10-raspbian-buster-lite.zip",
|
|
|
|
"iso_checksum_type": "sha256",
|
|
|
|
"iso_checksum": "9e5cf24ce483bb96e7736ea75ca422e3560e7b455eee63dd28f66fa1825db70e",
|
|
|
|
"last_partition_extra_size": 3221225472
|
|
|
|
}
|
|
|
|
],
|
2019-10-02 17:26:29 +01:00
|
|
|
"provisioners": [
|
|
|
|
{
|
|
|
|
"type": "shell",
|
|
|
|
"inline": [
|
2019-10-02 19:41:49 +01:00
|
|
|
"sed -i 's/^\\([^#]\\)/#\\1/g' /etc/ld.so.preload",
|
2019-10-08 13:33:11 +01:00
|
|
|
"dpkg-architecture",
|
2019-10-02 17:26:29 +01:00
|
|
|
"apt-get -y update",
|
|
|
|
"apt-get install -y ansible"
|
|
|
|
]
|
|
|
|
},
|
2019-10-30 19:24:12 +01:00
|
|
|
{
|
|
|
|
"type": "file",
|
|
|
|
"source": "data/usr/bin/bettercap-launcher",
|
|
|
|
"destination": "/usr/bin/bettercap-launcher"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "file",
|
|
|
|
"source": "data/usr/bin/pwnagotchi-launcher",
|
|
|
|
"destination": "/usr/bin/pwnagotchi-launcher"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "file",
|
|
|
|
"source": "data/usr/bin/monstop",
|
|
|
|
"destination": "/usr/bin/monstop"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "file",
|
|
|
|
"source": "data/usr/bin/bootblink",
|
|
|
|
"destination": "/usr/bin/bootblink"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "file",
|
|
|
|
"source": "data/usr/bin/monstart",
|
|
|
|
"destination": "/usr/bin/monstart"
|
|
|
|
},
|
2019-10-31 12:48:15 +01:00
|
|
|
{
|
|
|
|
"type": "file",
|
|
|
|
"source": "data/usr/bin/hdmion",
|
|
|
|
"destination": "/usr/bin/hdmion"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "file",
|
|
|
|
"source": "data/usr/bin/hdmioff",
|
|
|
|
"destination": "/usr/bin/hdmioff"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "file",
|
|
|
|
"source": "data/etc/network/interfaces.d/lo-cfg",
|
|
|
|
"destination": "/etc/network/interfaces.d/lo-cfg"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "file",
|
|
|
|
"source": "data/etc/network/interfaces.d/wlan0-cfg",
|
|
|
|
"destination": "/etc/network/interfaces.d/wlan0-cfg"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "file",
|
|
|
|
"source": "data/etc/network/interfaces.d/usb0-cfg",
|
|
|
|
"destination": "/etc/network/interfaces.d/usb0-cfg"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "file",
|
|
|
|
"source": "data/etc/network/interfaces.d/eth0-cfg",
|
|
|
|
"destination": "/etc/network/interfaces.d/eth0-cfg"
|
|
|
|
},
|
2019-10-30 19:24:12 +01:00
|
|
|
{
|
|
|
|
"type": "file",
|
|
|
|
"source": "data/etc/systemd/system/pwngrid-peer.service",
|
|
|
|
"destination": "/etc/systemd/system/pwngrid-peer.service"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "file",
|
|
|
|
"source": "data/etc/systemd/system/pwnagotchi.service",
|
|
|
|
"destination": "/etc/systemd/system/pwnagotchi.service"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "file",
|
|
|
|
"source": "data/etc/systemd/system/bettercap.service",
|
|
|
|
"destination": "/etc/systemd/system/bettercap.service"
|
2019-10-30 22:28:12 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "ansible-local",
|
|
|
|
"playbook_file": "pwnagotchi.yml",
|
|
|
|
"command": "ANSIBLE_FORCE_COLOR=1 PYTHONUNBUFFERED=1 PWN_VERSION={{user `pwn_version`}} PWN_HOSTNAME={{user `pwn_hostname`}} ansible-playbook"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "shell",
|
|
|
|
"inline": [
|
|
|
|
"sed -i 's/^#\\(.+\\)/\\1/g' /etc/ld.so.preload"
|
|
|
|
]
|
2019-10-02 17:26:29 +01:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|