[THIN] Re: Example Script

  • From: "Matthew Shrewsbury" <MShrewsbury@xxxxxxxxxxxxxxx>
  • To: <thin@xxxxxxxxxxxxx>
  • Date: Tue, 26 Jul 2005 08:52:03 -0400

Thank you for the offer! I'd like to use a script if at all possible so
that I can see the code and also modify if necessary. If I don't have
any success getting this to work I'll be in touch. 

Matthew Shrewsbury, MCSE+Internet MCSE 2000 CCA Server+
Senior Network Administrator
-----Original Message-----
From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On
Behalf Of Alexander Danilychev
Sent: Monday, July 25, 2005 3:56 PM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Re: Example Script

Matthew,

Interesting script. My primary concern with MSHTA.EXE (HTA engine) is 
security and it's inconsistent behavior across dif. platforms (check
win2k 
versus win2k3/Xp). Let me know what your primary objective is, i.e. what

specific explorer features you would like to lock down. I can make a 
compiled exe that will resemble Explorer shell with required lockdown.

ALEX

PS.
here is some info that you probably already have:
Writing HTML Applications for Internet Explorer 5.0
Scott Roberts
http://www.microsoft.com/mind/0799/htmlapps/htmlapps.asp
Introduction to HTML Applications (HTAs)
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/hta/r
eference/hta_ref_entry.asp

>From: "Matthew Shrewsbury" <MShrewsbury@xxxxxxxxxxxxxxx>
>Reply-To: thin@xxxxxxxxxxxxx
>To: <thin@xxxxxxxxxxxxx>
>Subject: [THIN] Example Script
>Date: Mon, 25 Jul 2005 11:50:22 -0400
>
>I want to publish an application that opens up the users home drive. I
>know some people have talked about using a copy of explorer but there
>always seems to be more then what the user needs available. I want to
>really keep this locked down tight so I found this example of a HTA
file
>that could be published. It only allows browsing but the problem is the
>forward and backward buttons don't work. From digging around my best
>guess is that it was written for IE 5 and the calls used for forward
>backward are no longer called the same thing. If anyone could help me
>get this working I'd be very grateful as it would give a very secure
>access to published drives.
>
>
>
><HTML>
>
><HEAD>
>
>    <TITLE>MyBrowser</TITLE>
>
>    <HTA:APPLICATION
>
>       ID="oHTA"
>
>       ICON="MyBrowser.ico"
>
>    >
>
>
>
>    <SCRIPT LANGUAGE="VBScript">
>
>       Option Explicit
>
>
>
>       Sub btnGo_onclick
>
>          Dim strAddr
>
>
>
>          strAddr = txtAddress.value
>
>
>
>          If InStr(1, strAddr, "://") = 0 Then
>
>             strAddr = "http://"; & strAddr
>
>          End If
>
>
>
>          frmClient.document.location.href = strAddr
>
>       End Sub
>
>
>
>       Sub btnBack_onclick
>
>          frmClient.history.back
>
>       End Sub
>
>
>
>       Sub btnFwd_onclick
>
>          frmClient.history.forward
>
>       End Sub
>
>    </SCRIPT>
>
></HEAD>
>
>
>
><BODY scroll="no">
>
>    <B>Address:</B>
>
>    <INPUT TYPE="Text" ID="txtAddress">&nbsp;
>
>    <INPUT TYPE="Submit" ID="btnGo" VALUE="Go">
>
>    <BUTTON ID="btnBack" STYLE="position:relative;left:50px">
>
>        &lt; Back</BUTTON>&nbsp;
>
>    <BUTTON ID="btnFwd" STYLE="position:relative;left:50px">
>
>       Forward &gt;</BUTTON>
>
>    <P>
>
>    <IFRAME ID="frmClient"
>
>       TRUSTED="yes"
>
>       SRC="c:\"
>
>       WIDTH="100%"
>
>       HEIGHT="90%"
>
>    >
>
>    </IFRAME>
>
></BODY>
>
></HTML>
>
>
>
>Copy into text file with *.HTA extension.
>
>
>
>Matthew Shrewsbury, MCSE+Internet MCSE 2000 CCA Server+
>
>Senior Network Administrator
>
>
>


********************************************************
This weeks sponsor: SuperSpeed
Try Us To improve performance along with other agents! 
FREE 30-day Trial!
http://www.superspeed.com/servers/computing.php?ID=100
********************************************************** 
Useful Thin Client Computing Links are available at:
http://thin.net/links.cfm
ThinWiki community - Excellent SBC Search Capabilities!
http://www.thinwiki.com
***********************************************************
For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thin.net/citrixlist.cfm
********************************************************
This weeks sponsor: SuperSpeed
Try Us To improve performance along with other agents!
FREE 30-day Trial!
http://www.superspeed.com/servers/computing.php?ID0
**********************************************************
Useful Thin Client Computing Links are available at:
http://thin.net/links.cfm
ThinWiki community - Excellent SBC Search Capabilities!
http://www.thinwiki.com
***********************************************************
For Archives, to Unsubscribe, Subscribe or
set Digest or Vacation mode use the below link:
http://thin.net/citrixlist.cfm

Other related posts: