by ross

Hows do i make bogus IDENTD

put this script in /usr/local/bin/ident:
 
#! /usr/local/bin/tclsh
gets stdin x
puts stdout "$x : USERID : UNIX : SPAZ"
and then put this in /etc/inetd.conf:
auth    stream  tcp     nowait  nobody   /usr/local/bin/tclsh   tclsh /usr/local/bin/ident 
of corse you must have tcl.

 


Annotation by jesse :
here is another litle identd, this one is in a language that i fell to be superior(because it is), perl. This one also has a nice feature, that is doesnt always return the same thing, so no problems with checking for clones on irc. It does this by choosing a random word from the filename stored in $file, that file should contain a bunch of words, each on a seperate line. my word file is full of "spook" words. make sure not to make list too long, or some ident clinets get angry, around 3000 lines seems to be the limit on my p66.
#!/usr/bin/perl
$file="/root/words";#list of possible words
$in=;
chomp($in);
$word="SPAZ";
if(open(DATA, $file)){
        srand;
        rand($.) < 1 && ($word = $_) while <DATA &rt;;
}
print "$in : USERID : UNIX : $word";

 


Annotation by strick :
To avoid being percieved as IRC clonebots (many IRC connections under the same name), add the process ID to the generated username. So this is the better code:
 
#! /usr/local/bin/tclsh
gets stdin x
puts stdout "$x : USERID : UNIX : SPAZ[pid]"

 


 
Read more of   The Yak's Frequently Questioned Answers   (mod.2008-11-08)

***445.   How do I extract tcpdump / wireshark / lib pcap formatted data from snort unified logs using barnyard?   [n0b0dy/2008-11-08]
444.   How can I remove Opera (and other services) from the OS X Services menu?   [dmm/2008-10-24]
417.   What is the slashdot amnesia phenomenon?   [jake/2004-10-29]
409.   What is a nice tip for automating updates on debian systems?   [jake/2004-03-30]
394.   I've heard of RTFM, but what does STFW mean?   [matt/2003-11-12] ( matthew/2004-08-11 )
384.   Where can I find good undergraduate summer research/internships?   [virgil/2003-10-03]
372.   What is the offical 'insta-gay' drink™ of #temp?   [ross/2003-09-16]
318.   whats a good webmail system?   [jesse/2002-06-21] ( chota/2003-07-26 )
293.   where can i find data about the most common names in the USA?   [jesse/2001-12-05]
292.   what do you do when your favorite web site becomes no more?   [kurt/2001-11-29]
279.   How do I get my USB digital camera to work under Linux?   [rupe/2001-10-29]
277.   What does K-Rad mean? is there a modern alternative to k-rad?   [mennonite/2001-10-08]
256.   How does the new Windows Product Activation (WPA) scheme work?   [rupe/2001-07-10]
242.   What bugs exist in the Nokia 7190 firmware?   [rupe/2001-07-17]
225.   What do I use to write cool Palm software?   [combee/2001-11-01] ( combee/2001-09-21 )
220.   Where can I find serial/parallel controllable, backlit LCD screens?   [rupe/2001-05-30] ( sidd/2001-05-30 )
199.   Where can I find pictures of cool PC cases?   [rupe/2001-03-13]
189.   How do you get rid of the ^M characters that are visible when a microsoft text file is edited in UNIX?   [macki/2001-03-06]
67.   Where are all the IN-N-OUTs around here?   [strick/2000-02-23]
29.   Where can I find out about the DVD hack?   [strick/2000-02-06]