A large scale analysis of the security of embedded firmwares