When flashed with the appropriate firmware of course.
Seemed relevant.
Not sure it's 100% applicable, but certainly my proposal would indeed by illegal black-hattery, unless done by a legit pen-tester.
I'd never do such a thing, but I might now be more aware that the little plastic block attached to the socket over there could easily be a cheap, full linux system running some sort of metasploit/neopwn variant...
Additionally these can be hidden in non-electrical objects with small batteries and run for weeks.
That pwn-plug has had some serious mods done to it, with bluetooth, 4G and 802.11 wireless built in! (--edit-- I see now that those are provided by adaptors, not built in to the box, that does reduce its stealthiness somewhat)
These new ones are much smaller than that by the looks of things though, seemingly on the scale of socket adaptors, rather than (to an up to date eye) quite a big power brick.
Thanks for the link, that was interesting.
http://www.anites.com/2015/01/hacking-kankun-smart-wifi-plug...