How legal is what this guy did in Spain?
But, the cyber security professionals working in the consultancy firm can gather easily the small pieces of information left behind and sue him if they find out data extraction, for example.
Keep in mind that he claims he extracted sensitive data, but he could be lying just to be in the HN front page. Who knows.
Unethical, risky… and very stupid.