mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: James Bourne <jbourne@mtroyal.ab.ca>
To: Christoph Baumann <cb@sorcus.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: ptrace patch
Date: Thu, 20 Mar 2003 07:45:58 -0700 (MST)	[thread overview]
Message-ID: <Pine.LNX.4.51.0303200743050.25830@skuld.mtroyal.ab.ca> (raw)
In-Reply-To: <001d01c2eeeb$02112b00$2265a8c0@dirtyentw>

On Thu, 20 Mar 2003, Christoph Baumann wrote:

> FYI:
> The ptrace patch at
> http://www.hardrock.org/kernel/2.4.20/linux-2.4.20-ptrace.patch does not
> seem to work.
> I tried the exploit at http://sinuspl.net/ptrace/isec-ptrace-kmod-exploit.c
> on a machine running the patched kernel and it still brought up a root
> shell.

Hi,
Here is a test:

bash$ md5sum isec-ptrace-kmod-exploit.c 
f3a5c17bf8d207d3f4828020d1bcfa0a  isec-ptrace-kmod-exploit.c
bash$ make isec-ptrace-kmod-exploit   
cc     isec-ptrace-kmod-exploit.c   -o isec-ptrace-kmod-exploit
bash$ ./isec-ptrace-kmod-exploit 
[-] Unable to attach: Operation not permitted
Killed
bash$ id
uid=151(myusername)
gid=151(myusername)
groups=151(mygrpname)
bash$ uname -a
Linux myhostname 2.4.20-9-PE2650-6650 #1 SMP Mon Mar 17 11:22:15 MST 2003 i686 unknown
bash$ 

Thankfully it does work.

Check your binary for suid root.

Regards,
James Bourne

> 
> 
> Mit freundlichen Gruessen / Best regards
> Dipl.-Phys. Christoph Baumann
> ---
> SORCUS Computer GmbH
> Im Breitspiel 11 c
> D-69126 Heidelberg
> 
> Tel.: +49(0)6221/3206-0
> Fax: +49(0)6221/3206-66
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 

-- 
James Bourne, Supervisor Data Centre Operations
Mount Royal College, Calgary, AB, CA
www.mtroyal.ab.ca

******************************************************************************
This communication is intended for the use of the recipient to which it is
addressed, and may contain confidential, personal, and or privileged
information. Please contact the sender immediately if you are not the
intended recipient of this communication, and do not copy, distribute, or
take action relying on it. Any communication received in error, or
subsequent reply, should be deleted or destroyed.
******************************************************************************


"There are only 10 types of people in this world: those who
understand binary and those who don't."


  parent reply	other threads:[~2003-03-20 14:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-20 14:14 Christoph Baumann
2003-03-20 14:33 ` Tomas Szepe
2003-03-20 14:45 ` James Bourne [this message]
2003-03-20 14:55   ` Christoph Baumann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.51.0303200743050.25830@skuld.mtroyal.ab.ca \
    --to=jbourne@mtroyal.ab.ca \
    --cc=cb@sorcus.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®