Remote code execution through polling a command server