Re: Directory listing

From: Volker Tanger (volker.tangerat_private)
Date: Thu May 08 2003 - 23:54:17 PDT

  • Next message: Chris McNab: "Re: Loose source routing for remote host discovery"

    Greetings!
    
    On Mon, 5 May 2003 11:32:09 -0700 (PDT) John Madden
    <chiwawa999at_private> wrote:
    >
    > In IIS/4 or 5 you can use the cmd.exe?/c+dir to get
    > the directory of a machine how can the same be
    > accomplish on other types of web server like Apache ?
    > Can this be accomplished with a cgi or perl script ?
    
    No problem. Here you are - as CGI:
    
    	#!/bin/sh
    	echo "Content-type: text/plain\n\n"
    	/bin/ls -l
    
    Using Apache's indexing module would a yield nicer (and clickable)
    index, though...
    
    Bye
    
    Volker Tanger
    
    IT-Security
    discon gmbh
    DeTeWe AG & Co. KG
    
    Fon +49 30 6104-3307
    Fax +49 30 6104-3435
    http://www.detewe.de/
    
    -- 
    
    
    -------------------------------------------------------------------
    Besuchen Sie unsere neuen Internet-Seiten http://www.detewe.de .
    Neues Highlight: Wunschproduktberater fuer den Home & Office-Bereich.
    
    Visit our new Internet Pages on http://www.detewe.de .
    Our Highlight: Online Product Adviser for Home & Office.
    (Currently available in German only)
    
    
    ---------------------------------------------------------------------------
    Did you know that you have VNC running on your network?
    Your hacker does.
    Plug your security holes.
    Download a free 15-day trial of VAM:
    http://www.securityfocus.com/StillSecure-pen-test
    ----------------------------------------------------------------------------
    



    This archive was generated by hypermail 2b30 : Fri May 09 2003 - 11:46:58 PDT