[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Shells /bin/badsh
- Subject: Re: [cobalt-users] Shells /bin/badsh
- From: "Danny Daniels" <dcd@xxxxxxxxxxxxxxxxxx>
- Date: Fri Apr 27 02:45:10 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
> Badsh is a perl script that does nothing more than echo out a statement
and
> then exit 1. It's done fairly often in the ISP world and other shell
> services to block telnet access to certain users...script is posted below.
>
> #!/usr/bin/perl
>
> print "
> ************************* Access Denied *************************
> * *
> * Sorry, you do not have telnet/shell access to this Cobalt *
> * server. *
> * *
> *****************************************************************
>
> ";
> exit 1;
>
>
> At this point it's a cobalt product, but not native to cobalt. I've done
it
> on various systems as far back as 1994.
This is why I thougt it was something different. What function does
/bin/badsh server.
Does it simply execute the perl script mentioned above ?
badsh: ELF 32-bit LSB executable, Intel 80386, version 1, dynamically
linked
(uses shared libs), not stripped
adding exit 1 to the users .profile would prevent login access. Thanks for
tip.
-Danny
dcd@xxxxxxxxxxxxxxxxxx