Jump to content

Directory Listing v1.9 RC1 (Update: 07-08-07)


Dhilip89
 Share

Recommended Posts

Why are they .cgi pages? This is AutoIt, no?

[center]"Yes, [our app] runs on Windows as well as Linux, but if you had a Picasso painting, would you put it in the bathroom?" -BitchX.com (IRC client)"I would change the world, but they won't give me the source code." -Unknownsite . blog . portfolio . claimidcode.is.poetry();[/center]

Link to comment
Share on other sites

  • Replies 57
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Why are they .cgi pages? This is AutoIt, no?

I've downloaded the zip file on the first page of this topic.

When I unzip it I get two directories : cgi-bin and data...

In the directory cgi-bin there is a file called list.cgi

That's all I get, can someone help me please

Link to comment
Share on other sites

Hi,

I'm a new user of AutoIt, I have to use it for my work and I have to say it's pretty cool.

This script seems to be cool to, but can someone please tell me how I can use it? I've downloaded the zip, there is a cgi file in it. What do I have to do with it?

I'm running XAMPP on my computer, so Apache is already running...now what?

thx

I'm using XAMPP too :)

Well, you need to do somethings to let this script work properly on your server.

Edit the blue color text:

First line of the script:

#!D:/inetpub/AutoIt3/AutoIt3.exe /ErrorStdOut

For Example:

#!C:/Program Files/AutoIt3/AutoIt3.exe /ErrorStdOut

Depend on where the AutoIt interpreter executable placed.

Variables:

Global $_SCRIPT_NAME = EnvGet('SCRIPT_NAME')

Global $_HTTP_HOST = EnvGet('HTTP_HOST')

Global $Interpreter_Version = FileGetVersion(@AutoItExe)

Global $Mask = '*'

Global $Encoding = 'unicode'

Global $ScriptVersion = '1.7'

Global $Parent_Directory

Global $Query = 'dir'

Global $RootDir = 'D:\inetpub\htdocs'

Global $URLEncodeMode = 2 ; 0 = Practical Encoding, 1 = Encode Everything, 2 = RFC 1738 Encoding (Recommended)

The blue colored text D:\inetpub\htdocs is the http root for your server.

just change it to your http root directory, for example:

C:\xampp\htdocs

Put list.cgi to your cgi-bin folder.

Copy folder named data to your http root directory.

Then try it on your web browser to see it worked or not.

Edited by Dhilip

[u]My Projects[/u]:General:WinShell (Version 1.6)YouTube Video Downloader Core (Version 2.0)Periodic Table Of Chemical Elements (Version 1.0)Web-Based:Directory Listing Script Written In AutoIt3 (Version 1.9 RC1)UDFs:UnicodeURL UDFHTML Entity UDF[u]My Website:[/u]http://dhilip89.hopto.org/[u]Closed Sources:[/u]YouTube Video Downloader (Version 1.3)[quote]If 1 + 1 = 10, then 1 + 1 ≠ 2[/quote]

Link to comment
Share on other sites

You should provide protection from people snooping around the hard drive, even if they can't download the stuff it is still a security risk. This is what I mean.

Thanks for your feedback, I fixed that hole. :)

[u]My Projects[/u]:General:WinShell (Version 1.6)YouTube Video Downloader Core (Version 2.0)Periodic Table Of Chemical Elements (Version 1.0)Web-Based:Directory Listing Script Written In AutoIt3 (Version 1.9 RC1)UDFs:UnicodeURL UDFHTML Entity UDF[u]My Website:[/u]http://dhilip89.hopto.org/[u]Closed Sources:[/u]YouTube Video Downloader (Version 1.3)[quote]If 1 + 1 = 10, then 1 + 1 ≠ 2[/quote]

Link to comment
Share on other sites

Why are they .cgi pages? This is AutoIt, no?

Ofcourse this is AutoIt v3 script.

It just used .cgi extension and added the first line for locating AutoIt v3 interpreter to work with Apache CGI.

Edited by Dhilip

[u]My Projects[/u]:General:WinShell (Version 1.6)YouTube Video Downloader Core (Version 2.0)Periodic Table Of Chemical Elements (Version 1.0)Web-Based:Directory Listing Script Written In AutoIt3 (Version 1.9 RC1)UDFs:UnicodeURL UDFHTML Entity UDF[u]My Website:[/u]http://dhilip89.hopto.org/[u]Closed Sources:[/u]YouTube Video Downloader (Version 1.3)[quote]If 1 + 1 = 10, then 1 + 1 ≠ 2[/quote]

Link to comment
Share on other sites

Download the updated list.cgi (Version 1.7b) to fix current security problem.

See first post.

Edited by Dhilip

[u]My Projects[/u]:General:WinShell (Version 1.6)YouTube Video Downloader Core (Version 2.0)Periodic Table Of Chemical Elements (Version 1.0)Web-Based:Directory Listing Script Written In AutoIt3 (Version 1.9 RC1)UDFs:UnicodeURL UDFHTML Entity UDF[u]My Website:[/u]http://dhilip89.hopto.org/[u]Closed Sources:[/u]YouTube Video Downloader (Version 1.3)[quote]If 1 + 1 = 10, then 1 + 1 ≠ 2[/quote]

Link to comment
Share on other sites

Version 1.8 released!

See first post :)

[u]My Projects[/u]:General:WinShell (Version 1.6)YouTube Video Downloader Core (Version 2.0)Periodic Table Of Chemical Elements (Version 1.0)Web-Based:Directory Listing Script Written In AutoIt3 (Version 1.9 RC1)UDFs:UnicodeURL UDFHTML Entity UDF[u]My Website:[/u]http://dhilip89.hopto.org/[u]Closed Sources:[/u]YouTube Video Downloader (Version 1.3)[quote]If 1 + 1 = 10, then 1 + 1 ≠ 2[/quote]

Link to comment
Share on other sites

Version 1.8 R2 released!

See first post :)

[u]My Projects[/u]:General:WinShell (Version 1.6)YouTube Video Downloader Core (Version 2.0)Periodic Table Of Chemical Elements (Version 1.0)Web-Based:Directory Listing Script Written In AutoIt3 (Version 1.9 RC1)UDFs:UnicodeURL UDFHTML Entity UDF[u]My Website:[/u]http://dhilip89.hopto.org/[u]Closed Sources:[/u]YouTube Video Downloader (Version 1.3)[quote]If 1 + 1 = 10, then 1 + 1 ≠ 2[/quote]

Link to comment
Share on other sites

It's great to see that this is actually being put to a good use on some sites for an actual utility. Great job, Dhilip!

[center]"Yes, [our app] runs on Windows as well as Linux, but if you had a Picasso painting, would you put it in the bathroom?" -BitchX.com (IRC client)"I would change the world, but they won't give me the source code." -Unknownsite . blog . portfolio . claimidcode.is.poetry();[/center]

Link to comment
Share on other sites

Thanks for positive feedback!

Anyone who interested can improve the code then post to here.

[u]My Projects[/u]:General:WinShell (Version 1.6)YouTube Video Downloader Core (Version 2.0)Periodic Table Of Chemical Elements (Version 1.0)Web-Based:Directory Listing Script Written In AutoIt3 (Version 1.9 RC1)UDFs:UnicodeURL UDFHTML Entity UDF[u]My Website:[/u]http://dhilip89.hopto.org/[u]Closed Sources:[/u]YouTube Video Downloader (Version 1.3)[quote]If 1 + 1 = 10, then 1 + 1 ≠ 2[/quote]

Link to comment
Share on other sites

@Dhilip: I see that you're using AutoIt with Apache. I have tried setting it up, but fail everytime. How did you do it?

Edited by AutoItKing
http://www.autoitking.co.nr Site is DOWN | My deviantART | No Topic Topic - Don't do it!-------------------- UDF's/Scripts:AutoIt: [BenEditor 3.6] [_ShutDown()]PHP: [CommentScript]Web Based AutoIt: [MemStats] [HTML to AU3] [User LogIn and SignUp script]
Link to comment
Share on other sites

@Dhilip: I see that you're using AutoIt with Apache. I have tried setting it up, but fail everytime. How did you do it?

What type of error do you received when using AutoIt with Apache ?

[u]My Projects[/u]:General:WinShell (Version 1.6)YouTube Video Downloader Core (Version 2.0)Periodic Table Of Chemical Elements (Version 1.0)Web-Based:Directory Listing Script Written In AutoIt3 (Version 1.9 RC1)UDFs:UnicodeURL UDFHTML Entity UDF[u]My Website:[/u]http://dhilip89.hopto.org/[u]Closed Sources:[/u]YouTube Video Downloader (Version 1.3)[quote]If 1 + 1 = 10, then 1 + 1 ≠ 2[/quote]

Link to comment
Share on other sites

It says "Object Not Found."

What did you add to the httpd.conf file? Or any other config files?

http://www.autoitking.co.nr Site is DOWN | My deviantART | No Topic Topic - Don't do it!-------------------- UDF's/Scripts:AutoIt: [BenEditor 3.6] [_ShutDown()]PHP: [CommentScript]Web Based AutoIt: [MemStats] [HTML to AU3] [User LogIn and SignUp script]
Link to comment
Share on other sites

A suggestion:

Add a black list feature. To hide files and directories. That would be really cool.

http://www.autoitking.co.nr Site is DOWN | My deviantART | No Topic Topic - Don't do it!-------------------- UDF's/Scripts:AutoIt: [BenEditor 3.6] [_ShutDown()]PHP: [CommentScript]Web Based AutoIt: [MemStats] [HTML to AU3] [User LogIn and SignUp script]
Link to comment
Share on other sites

Actually, just add this to lines 272 and 295:

And Not StringInStr($Attribute, "H")

And then any files or directories you want hidden, just use Explorer to apply it.

http://www.autoitking.co.nr Site is DOWN | My deviantART | No Topic Topic - Don't do it!-------------------- UDF's/Scripts:AutoIt: [BenEditor 3.6] [_ShutDown()]PHP: [CommentScript]Web Based AutoIt: [MemStats] [HTML to AU3] [User LogIn and SignUp script]
Link to comment
Share on other sites

It says "Object Not Found."

What did you add to the httpd.conf file? Or any other config files?

404 Object Not Found ?

Maybe you missed somethings.

My httpd.conf

<IfModule alias_module>

#

# Redirect: Allows you to tell clients about documents that used to

# exist in your server's namespace, but do not anymore. The client

# will make a new request for the document at its new location.

# Example:

# Redirect permanent /foo http://www.example.com/bar

#

# Alias: Maps web paths into filesystem paths and is used to

# access content that does not live under the DocumentRoot.

# Example:

# Alias /webpath /full/filesystem/path

#

# If you include a trailing / on /webpath then the server will

# require it to be present in the URL. You will also likely

# need to provide a <Directory> section to allow access to

# the filesystem path.

#

# ScriptAlias: This controls which directories contain server scripts.

# ScriptAliases are essentially the same as Aliases, except that

# documents in the target directory are treated as applications and

# run by the server when requested rather than as documents sent to the

# client. The same rules about trailing "/" apply to ScriptAlias

# directives as to Alias.

#

ScriptAlias /cgi-bin/ "D:/inetpub/cgi-bin/"

</IfModule>

#

# "D:/inetpub/cgi-bin" should be changed to whatever your ScriptAliased

# CGI directory exists, if you have that configured.

#

<Directory "D:/inetpub/cgi-bin">

AllowOverride None

Options None

Order allow,deny

Allow from all

</Directory>

My list.cgi script is put inside D:/inetpub/cgi-bin

A suggestion:

Add a black list feature. To hide files and directories. That would be really cool.

Actually, just add this to lines 272 and 295:

And Not StringInStr($Attribute, "H")

And then any files or directories you want hidden, just use Explorer to apply it.

Thanks for the tips, I'll do that when I have time to update my code. Edited by Dhilip

[u]My Projects[/u]:General:WinShell (Version 1.6)YouTube Video Downloader Core (Version 2.0)Periodic Table Of Chemical Elements (Version 1.0)Web-Based:Directory Listing Script Written In AutoIt3 (Version 1.9 RC1)UDFs:UnicodeURL UDFHTML Entity UDF[u]My Website:[/u]http://dhilip89.hopto.org/[u]Closed Sources:[/u]YouTube Video Downloader (Version 1.3)[quote]If 1 + 1 = 10, then 1 + 1 ≠ 2[/quote]

Link to comment
Share on other sites

I want to run it just like it would run on Abyss. Putting all the scripts in cgi-bin is just to tedius. And it's not flexible enough.

It would be great if someone could make a mod for Apache to do this. Someone with intimate Apache modding know-how.

http://www.autoitking.co.nr Site is DOWN | My deviantART | No Topic Topic - Don't do it!-------------------- UDF's/Scripts:AutoIt: [BenEditor 3.6] [_ShutDown()]PHP: [CommentScript]Web Based AutoIt: [MemStats] [HTML to AU3] [User LogIn and SignUp script]
Link to comment
Share on other sites

I've tried multiple times, but the dumb apache config file, not to mention the docs, just give me a headache.

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...