Re: How to bypass /etc/passwd's shell

From: Murat Koc (muratkoc@linux.org.tr)
Date: 08/06/01


Date: Mon, 6 Aug 2001 17:50:17 +0300 (EEST)
From: Murat Koc <muratkoc@linux.org.tr>
To: Mathieu Jobin <somekool@MyTradeCenter.com>
Subject: Re: How to bypass /etc/passwd's shell
Message-ID: <Pine.LNX.4.31.0108061744420.20380-100000@yukleme1.frontsite.com.tr>


Hi,

> can you really add this line BEFORE #!/bin/bash
>
> > add this line at the beginning of this script before #!/bin/bash
> >
> > trap "" 2
> >
> > and for other signals (kill -l)
> >

just try it

_your_favorite_editor traptry

-----------------------------
trap "" 2
#!/bin/bash
sleep 5

-----------------------------

chmod 755 traptry
./traptry

and press ctrl_c

                                                                MURAT KOC



Relevant Pages

  • Re: pregnant feral cat in Phoenix summer heat
    ... taste of blood:) Ever think of that...once she begins to feed to trap the ... kittens the cat will NOT leave ... ... it and try to tame it if that doesn't work putting the cat to sleep is the ...
    (rec.pets.cats.rescue)
  • Re: How to trap any keyboard signal in a sript?
    ... I just learn shell script and wondering how I can trap a ... Just CTRL-C during the sleep. ... General Guidelines for mailing lists and NetNews ... NetNews Guidelines ...
    (comp.unix.aix)
  • Re: soc.men: The Gold List
    ... waiting to be tortured. ... Melatonin to help me sleep. ... Skin pigmentation helps you sleep? ...
    (soc.men)
  • Re: transfering signals to a subshell
    ... > sleep 5 ... test2 executest it's own trap (but it's stdout is not processed by ... test1 executest it's own trap ...
    (comp.unix.shell)
  • Re: need help with trap
    ... trap "echo cheers" SIGCHLD ... sleep 2 & ... But in this script, trap does not seem to work. ...
    (comp.unix.shell)