DEV Community

Cover image for Building a Small Kali Linux “Health Checker” in Nim (KaliSentry)
0x57Origin
0x57Origin

Posted on

Building a Small Kali Linux “Health Checker” in Nim (KaliSentry)

So I’ve been doing my masters in cyber security and I wanted a small side project that wasn’t too crazy but still kinda useful. I’ve been messing with Nim lately and decided to try building a simple Kali Linux “health check” tool just to learn the language better.

Ended up calling it KaliSentry.

It basically checks if your Kali install is kinda broken. Nothing advanced. Just simple stuff like:

is the firewall even on

ssh config doing something dumb

random services running when they shouldn’t

updates that you forgot about

DNS doing whatever it wants

weird directory permissions

Pretty much all the things that beginners (and honestly me too sometimes) mess up on Kali.

It runs in the terminal and spits out a tiny report like:

[WARN] UFW not installed
[WARN] SSH security issues
[OK] No dangerous services running
[WARN] Too many updates available
[OK] DNS resolvers fine
[OK] Permissions look normal

Overall: MEDIUM RISK

That’s basically it. No magic. Just a quick “hey your system is ok” or “fix this stuff before you break something”.

I made it mainly to learn Nim since I’m still new to it, but it ended up being kinda useful. I’ll probably add more features later like config file scanning or maybe a JSON export if people want that.

If you wanna check it out, the repo is here:

https://github.com/0x57Origin/KaliSentry

Still super early but it works well enough for now. I might post some updates as I add more stuff or break things along the way lol.

If anyone has Nim tips, libraries I should look at, or ideas to improve the tool, feel free to comment. I’m still learning so anything helps.

Top comments (0)