An ident client that outputs the username to stdout. Optionally, it can detect botnet and fake ident servers based on RFC 1413 deviance.
You can download it from the following link: https://packetstormsecurity.com/files/download/36100/ident.cpp
Source: https://packetstormsecurity.com/files/36100/ident.cpp.html