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.2010-02-10)

429.   why does my 802.11g network seem to die around Uniden 2.4ghz phones?   [jake/2006-05-19]
410.   What is naked sushi? What is Nyataimori? What is Nyotaimori? Or how do I ask for a "Naked Sushi" bar?   [jake/2006-05-21] ( novalis/2005-03-30 )
403.   What is warviewing / warspying?   [jake/2004-01-28]
354.   What is a secure alternative to irc that doesn't suck like irc over ssl?   [jake/2003-03-02]
342.   Where is a good place to learn about secure programming (or how not to get laughed at)   [jake/2002-12-19]
327.   What is a great little script to use when airboxing (wardriving, warchalking, etc)   [jake/2002-10-05]
296.   how do i make a tofurkey?   [jesse/2001-12-10]
295.   How do I get a cheap EPOC R5 (Symbian) handheld?   [combee/2001-12-07]
294.   how do i find out what subdomains are in a dns zone?   [jesse/2001-12-06]
291.   Should I solder my Sound Card into my computer?   [strick/2002-02-04]
271.   I am stupid and forgot my root password for my OpenBSD box. Now what?!?!   [ross/2001-09-05]
266.   Why won't sites with 24.x.x.x IPs respond to HTTP requests?   [rupe/2001-08-13]
264.   What started in 1984?   [strick/2001-08-10] ( macki/2001-09-04 robey/2001-08-22 )
259.   What is #temp   [ross/2001-08-10]
232.   Where can i find a stamp sized ethernet web server for (barely)less than $100?   [sidd/2001-05-30]
230.   What is a good book to get started with Python?   [rupe/2001-05-30]
226.   How do you eat vegetarian in central Texas?   [combee/2005-04-08]
181.   Where does the Yak read?   [rupe/2001-06-05]
118.   Where can I find out the cost of giving a sasquatch a funeral?   [rupe/2000-09-14]
103.   Where can I find information on how much I'm worth?   [rupe/2000-06-17]
81.   How do I do port-forwarding with ssh?   [robey/2001-03-25]
66.   What's an altavistincantation?   [strick/2000-02-22]
65.   Where can I get help with my Physics homework?   [strick/2000-02-22]