I've written it in C because I wanted it to be reliable since it has to run in the background :).
Also, I am aware of other methods of avoiding MITM attacks, but I wanted to write a script to completly block ARP Poisoning attacks, without using any encryption, since some protocols/websites don't use an encrypted connection.
In the end, thanks for your tip. I will work on implementing this on android.
I wouldn't have said anything if it wasn't a security tool. The tool keeping you safe shouldn't add risk (all the bug classes commonly found in C programs) to your security posture. You can write reliable programs in golang and rust.
I only mentioned other ways of avoiding mitm to inform readers. Your program fills a lot of gaps.
One last tip - have you thought of supporting IPv6 ND and RA messages too? Those technically deprecate arp :(
Also, I am aware of other methods of avoiding MITM attacks, but I wanted to write a script to completly block ARP Poisoning attacks, without using any encryption, since some protocols/websites don't use an encrypted connection.
In the end, thanks for your tip. I will work on implementing this on android.