Defending IoT Infrastructures with the Raspberry Pi