Solved

.exe as CGI

Posted on 1998-01-13
3
234 Views
Last Modified: 2013-12-25
Hi

I am using an .exe written in Borland's Delphi as a CGI program. I have a server installed (Omnicron's OmniHTTPD 1.0). However, I cannot get the server to execute the program - it continually treats it as a download. Here is the form section HTML:

<FORM METHOD="get" ACTION="cgigui.exe">
<INPUT TYPE="text" NAME="name" SIZE="50">
<INPUT TYPE="submit">
</FORM>

What am I doing wrong?
0
Comment
Question by:sderaadt
3 Comments
 
LVL 32

Accepted Solution

by:
jhance earned 250 total points
Comment Utility
If the server is sending the executable back to the browser instead of running it, it's because you haven't configured the directory where cgigui.exe lives as an EXECUTABLE directory or you haven't placed cgigui.exe in the EXECUTABLE directory you have specified.  If you're placing it in your HTML directory and trying to configure that directory to contain CGI program, stop and locate it elsewhere.  That type of configuration is a huge security risk.
0
 
LVL 5

Expert Comment

by:julio011597
Comment Utility
Sometimes a web server considers to be CGI programs just those having a "cgi" extension.

You could try renaming your executable to "cgicui.cgi".
0
 

Author Comment

by:sderaadt
Comment Utility
Thankyou jhance, it is often the most obvious answer that is the most elusive!
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

In this tutorial I will aim to show you how simple is making a small application in WhizBase, how to add, remove and update data in the DB. I will make a small address book application where you can add, browse, update and remove addresses. I wi…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
The viewer will learn how to count occurrences of each item in an array.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now