Stoppt die 
Vorratsdatenspeicherung! Jetzt klicken & handeln!

StupidIdentd, an identd for running an identds sake.

Posted on October 17, 2009 at 05:43 PM

This little application, which runs via inetd (Like so:

ident           stream  tcp     nowait  halcyon /usr/bin/identd

) returns the same username on any ident request.

PROS:

  • Works behind NAT
  • Probably free of exploitable bugs

CONS:

  • Kind of misses the point of having an identd in the first place
  • Utterly useless except for epeen

So, without further ado (Compile like you would any C app):

include <stdio.h>
#include <string.h>
#define USERNAME "ordinary_magician"

int main() {
  char buf[4096], *p;
  if (fgets(buf, sizeof(buf), stdin)) {
    if ((p = strpbrk(buf, "\r\n"))) {
      *p = 0;
    }
    printf("%s : USERID : UNIX : %s\r\n", buf, USERNAME);
  }
  return 0;
}
about: , , ,
Hierarchy: previous, next

There is 1 comment on this post. Post yours →

* Checking ident… * Received identd response

AMAZING!!!! NEVER SEEN ANYTHING LIKE IT BEFORE A+++++ WOULD IDENT AGAIN

Required fields in bold.