Re: How to bypass /etc/passwd's shell
From: Murat Koc (muratkoc_at_linux.org.tr)Date: 07/19/01
- Vorherige Nachricht: Marcus Zoller: "RE: How to bypass /etc/passwd's shell"
- Als Antwort auf: Jose Nazario: "RE: How to bypass /etc/passwd's shell"
- Nächste im Thread: Marcus Zoller: "RE: How to bypass /etc/passwd's shell"
- Nachrichten sortiert nach: [ Datum ] [ Thread ] [ Subject ] [ Autor ] [ Attachement ]
Hi,
add this line at the beginning of this script before #!/bin/bash
trap "" 2
and for other signals (kill -l)
>> #!/bin/sh
>> /usr/sbin/chroot /home/<user chroot> /bin/bash -login
>
>> dummy:x:500:500:chroot user:/home/dummy:/bin/rshell
>
>
> not wise. one can ^C out of the script's execution, leaving you with
> /bin/sh as your shell. (been there, tried that, was able to break out,
> it's easier than you may guess.)
and it can't be break by pressing ctrl_c
MURAT KOC
- Vorherige Nachricht: Marcus Zoller: "RE: How to bypass /etc/passwd's shell"
- Als Antwort auf: Jose Nazario: "RE: How to bypass /etc/passwd's shell"
- Nächste im Thread: Marcus Zoller: "RE: How to bypass /etc/passwd's shell"
- Nachrichten sortiert nach: [ Datum ] [ Thread ] [ Subject ] [ Autor ] [ Attachement ]
Relevant Pages
|
|