Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hiding a cgi inside a javascript: HOTSHOTS TAKE A STAB! 1

Status
Not open for further replies.

platypus55

Programmer
Aug 15, 1999
32
US
this guy is providing dynamic content that can be accessed from any server. He does it like this...<br>
<br>
&lt;script language='javascript'<br>
src='<A HREF=" TARGET="_new"><br>
As you see, it looks like parameters are being passed to a js. I never heard of parameters being passed to a js THAT way but what do I know. Oneliners is the name of a database of his that he randomly pulls a one-liner out of. This has to be PERL, not JS. If you hack a little, you see that the &quot;javascript&quot; is just pure vainilla HTML. If you leave off a parameter, the HTML has '' where that parameter is supposet to go. This SMELLS like PERL. I know WHAT he is doing, just the details are a little fuzzy because I can't see the actual perl code. <br>
<br>
Given that the js is located in his bin directory, I am guessing it is actually a perl script that GENERATES the HTML<br>
Can ALL servers that support cgi do this? Because if they can, this is quite powerful. <br>
<br>
I tried to disguise one of my perl scripts as a javascript in a straightforward way and it didn't work. Would it perhaps be a serverside include? You normally can only do serverside includes on your own server, but if this can be made to work, you can effectively export dynamic content anywhere, which is exacctly what he is doing and what I also want to do. <br>
<br>
I asked him how he did this and he just said &quot;hee hee.&quot; So<br>
no help from him.<br>
<br>
I will keep hacking on it and answer my own question if no one else figures it out first. <br>
<br>
Please if someone can figure out this would they let me know.<br>
I am cross posting this in the PERL forum also. Thanks. <br>
<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top