Pātuhitia tēnei: Writing security tools and exploits