Security Analysis and Exploitation of Arduino Devices in the Internet of Things