How can I obtain the source code of ASP file from the server, if it is returning binary files (pictures)?
Printable View
How can I obtain the source code of ASP file from the server, if it is returning binary files (pictures)?
you can't thru http. you can thru ftp by downloading the asp file.
when ever you hit the webserver's asp page, it runs the code and only gives you the output. its like this for security reasons people can't look at raw code and figure out backdoors and such.
FTP returns "connect: 10061"
HTTP (GET) returns server internal error (procedure expected parameters) - the script runs on the server side, so I have no chance to get the source code by this way.
(and HTTP OPTIONS returns "forbidden")
In fact, I only need the filename of database where the ASP page connect to.
I dont know what that FTP error is, so i cant help you there.
if its the database DSN name you need, you could email the sysadmin or webmaster and ask him. unless of course your not supposed to have this information (ie, your not supposed to be fiddling with the site's internals), then i doubt he would give it to you.
Is this ASP server your server (or one your having hosted?) or are you looking to see how someone did something?
I think that's the case. He wants to get the code of the ASP page. Even if you use FTP, the administrator has to share that folder (creating virtual directory in the ftproot folder) where the asp files are, so I don't think that's going to be the case. The whole idea behind the ASP technology is so people cannot get the secured information like database user and password, including the code.
The server isn't my server, and the page is returning a city map. I don't need to get the whole image of city - I can download it sequentially through this ASP. But in the ASP shoud be a link to the database of street...map position. The position is in standardized format and you can read it - it isn't secure information, is it?
ASP and IIS are designed to prevent what you are trying to do.
:(
What is IIS?
Internet Information Server - it's a product by Microsoft.
Extending Serge's response, IIS is Microsoft's Web server product. It's the type of software that makes Web pages appear on the Internet, as well as countless other things. Read more about it on Microsoft's Web site at
http://www.microsoft.com/iis/
If you have any more questions, e-mail me at [email protected].