I'm looking for a word that describes the act of doing something without a real logical reason but just because they can. A example of what I'm talking about would be like this:
The boy hacked the Pentagon just because he could. He didn't steal anything and he didn't want the attention; he just wanted to proclaim his own self-dignity.
What would you call someone like that or the act of doing something like that?