2023-08-29 14:13:36 +02:00
|
|
|
{
|
|
|
|
"builders": [
|
2019-10-30 19:24:12 +01:00
|
|
|
{
|
|
|
|
"name": "pwnagotchi",
|
2023-08-30 11:14:59 +02:00
|
|
|
"type": "arm-image",
|
2023-08-31 06:09:24 +02:00
|
|
|
"iso_url": "https://downloads.raspberrypi.org/raspios_lite_arm64/images/raspios_lite_arm64-2023-05-03/2023-05-03-raspios-bullseye-arm64-lite.img.xz",
|
2023-08-30 11:14:59 +02:00
|
|
|
"iso_checksum": "file:https://downloads.raspberrypi.org/raspios_lite_arm64/images/raspios_lite_arm64-2023-05-03/2023-05-03-raspios-bullseye-arm64-lite.img.xz.sha256",
|
|
|
|
"target_image_size": 9368709120,
|
2023-08-31 06:39:31 +02:00
|
|
|
"qemu_binary": "qemu-aarch64-static",
|
2023-08-31 09:09:43 +02:00
|
|
|
"output_filename": "images/pwnagotchi-{{user `pwn_version`}}-arm64.img"
|
2019-10-30 19:24:12 +01:00
|
|
|
}
|
|
|
|
],
|
2019-10-02 17:26:29 +01:00
|
|
|
"provisioners": [
|
2023-08-30 11:14:59 +02:00
|
|
|
{
|
|
|
|
"type": "shell",
|
|
|
|
"inline": [
|
|
|
|
"uname -a",
|
|
|
|
"dpkg-architecture",
|
|
|
|
"mkdir -p /usr/local/src/pwnagotchi"
|
|
|
|
]
|
|
|
|
},
|
2023-08-29 22:31:07 +02:00
|
|
|
{
|
|
|
|
"type": "file",
|
2023-08-30 11:14:59 +02:00
|
|
|
"source": "../builder/data/usr/bin/pwnlib",
|
2023-08-29 22:31:07 +02:00
|
|
|
"destination": "/usr/bin/pwnlib"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "file",
|
2023-08-30 11:14:59 +02:00
|
|
|
"source": "../builder/data/usr/bin/bettercap-launcher",
|
2023-08-29 22:31:07 +02:00
|
|
|
"destination": "/usr/bin/bettercap-launcher"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "file",
|
2023-08-30 11:14:59 +02:00
|
|
|
"source": "../builder/data/usr/bin/pwnagotchi-launcher",
|
2023-08-29 22:31:07 +02:00
|
|
|
"destination": "/usr/bin/pwnagotchi-launcher"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "file",
|
2023-08-30 11:14:59 +02:00
|
|
|
"source": "../builder/data/usr/bin/monstop",
|
2023-08-29 22:31:07 +02:00
|
|
|
"destination": "/usr/bin/monstop"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "file",
|
2023-08-30 11:14:59 +02:00
|
|
|
"source": "../builder/data/usr/bin/monstart",
|
2023-08-29 22:31:07 +02:00
|
|
|
"destination": "/usr/bin/monstart"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "file",
|
2023-08-30 11:14:59 +02:00
|
|
|
"source": "../builder/data/usr/bin/hdmion",
|
2023-08-29 22:31:07 +02:00
|
|
|
"destination": "/usr/bin/hdmion"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "file",
|
2023-08-30 11:14:59 +02:00
|
|
|
"source": "../builder/data/usr/bin/hdmioff",
|
2023-08-29 22:31:07 +02:00
|
|
|
"destination": "/usr/bin/hdmioff"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "file",
|
2023-08-30 11:14:59 +02:00
|
|
|
"source": "../builder/data/etc/network/interfaces.d/lo-cfg",
|
2023-08-29 22:31:07 +02:00
|
|
|
"destination": "/etc/network/interfaces.d/lo-cfg"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "file",
|
2023-08-30 11:14:59 +02:00
|
|
|
"source": "../builder/data/etc/network/interfaces.d/wlan0-cfg",
|
2023-08-29 22:31:07 +02:00
|
|
|
"destination": "/etc/network/interfaces.d/wlan0-cfg"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "file",
|
2023-08-30 11:14:59 +02:00
|
|
|
"source": "../builder/data/etc/network/interfaces.d/usb0-cfg",
|
2023-08-29 22:31:07 +02:00
|
|
|
"destination": "/etc/network/interfaces.d/usb0-cfg"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "file",
|
2023-08-30 11:14:59 +02:00
|
|
|
"source": "../builder/data/etc/network/interfaces.d/eth0-cfg",
|
2023-08-29 22:31:07 +02:00
|
|
|
"destination": "/etc/network/interfaces.d/eth0-cfg"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "file",
|
2023-08-30 11:14:59 +02:00
|
|
|
"source": "../builder/data/etc/systemd/system/pwngrid-peer.service",
|
2023-08-29 22:31:07 +02:00
|
|
|
"destination": "/etc/systemd/system/pwngrid-peer.service"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "file",
|
2023-08-30 11:14:59 +02:00
|
|
|
"source": "../builder/data/etc/systemd/system/pwnagotchi.service",
|
2023-08-29 22:31:07 +02:00
|
|
|
"destination": "/etc/systemd/system/pwnagotchi.service"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "file",
|
2023-08-30 11:14:59 +02:00
|
|
|
"source": "../builder/data/etc/systemd/system/bettercap.service",
|
2023-08-29 22:31:07 +02:00
|
|
|
"destination": "/etc/systemd/system/bettercap.service"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "shell",
|
|
|
|
"inline": [
|
|
|
|
"chmod +x /usr/bin/*"
|
|
|
|
]
|
|
|
|
},
|
2023-08-29 14:13:36 +02:00
|
|
|
{
|
|
|
|
"type": "shell",
|
|
|
|
"inline": [
|
|
|
|
"apt-get -y --allow-releaseinfo-change update",
|
2023-08-29 21:02:43 +02:00
|
|
|
"apt-get -y dist-upgrade",
|
|
|
|
"apt-get install -y ansible"
|
2023-08-29 14:13:36 +02:00
|
|
|
]
|
|
|
|
},
|
2019-10-30 22:28:12 +01:00
|
|
|
{
|
|
|
|
"type": "ansible-local",
|
2023-08-30 11:14:59 +02:00
|
|
|
"playbook_file": "../builder/pwnagotchi.yml",
|
2023-08-29 14:13:36 +02:00
|
|
|
"extra_arguments": [
|
|
|
|
"--extra-vars \"ansible_python_interpreter=/usr/bin/python3\""
|
|
|
|
],
|
2019-10-30 22:28:12 +01:00
|
|
|
"command": "ANSIBLE_FORCE_COLOR=1 PYTHONUNBUFFERED=1 PWN_VERSION={{user `pwn_version`}} PWN_HOSTNAME={{user `pwn_hostname`}} ansible-playbook"
|
2019-10-02 17:26:29 +01:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|