Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Gentoo: Security
SSH probes
 

Index | Next | Previous | View Flat


bmicek at speakeasy

Nov 5, 2005, 12:56 PM


Views: 1195
Permalink
SSH probes

I don't mean to re-start an old topic, but would anyone happen to have
access to the source code for the second phase of the popular SSH
probes? The reason I'm interested in it is because I'd like to exploit
some weaknesses in the code and at least cause it to drop a core.

Currently, I have a service started by xinetd and close stdin on the
command line arguments to avoid hackers hacking my program. I run a
bash script as user "nobody" that basically looks like this (extra
extraneous stuff is removed):

#!/bin/bash
function fakessh() {
echo SSH-2.0-OpenSSH_3.9p1 # ID ourself as a valid SSH service
/bin/cat /dev/urandom # and send random data
}
# Main follows - this is run as user "nobody"
fakessh <&- # Call the payload and (again) close stdin to avoid hacks
# EOF - fakessh

The result for someone using a normal ssh client is:
UNIX> ssh localhost
Disconnecting: Bad packet length 3349376822.

I am hoping to cause some kind of memory problem here and thats why I
need the source code. Another exploit to examine is what happens with
zero length packets if we cat /dev/zero. If there is nothing to exploit
here, I'll remove the "echo" line so I send random data until the hacker
client terminates his connection.

Thank you,
Brian Micek
Attachments: signature.asc (0.18 KB)

Subject User Time
SSH probes bmicek at speakeasy Nov 5, 2005, 12:56 PM
    Re: SSH probes wyang at gcfn Nov 5, 2005, 1:19 PM
        Re: SSH probes bmicek at speakeasy Nov 5, 2005, 2:16 PM
            Re: SSH probes warnera6 at egr Nov 5, 2005, 2:41 PM
                Re: SSH probes bmicek at speakeasy Nov 5, 2005, 3:28 PM
                    Re: SSH probes ascii at katamail Nov 5, 2005, 4:19 PM
                        Re: SSH probes jongust66 at yahoo Nov 5, 2005, 6:18 PM
            Re: SSH probes asroka at covad Nov 5, 2005, 3:05 PM
                Re: SSH probes Lukasz.Jokiel at klonex Nov 6, 2005, 5:59 AM
            Re: SSH probes wyang at gcfn Nov 6, 2005, 12:45 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.