Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* VT220 string-sendback feature?
@ 1992-10-18 20:57 Framstag
  1992-10-18 21:35 ` Marcus J. "Buddy can you spare a clue?" Ranum
  0 siblings, 1 reply; 4+ messages in thread
From: Framstag @ 1992-10-18 20:57 UTC (permalink / raw)


Is there a (non-documented) feature in the VT220, which sends back a string
specified in a control-sequence?

What I'm looking for is:

$ write sys$output "<some_magic_sequence>directory"

and the VT220 (not a VMS-process or the terminal-driver!) sends the string
"directory" back which is then evaluated by DCL.

Is this possible? How?



\  Ulli 'Framstag' Horlacher    \    psi%0262450502601::rzmain::orakel  \
 \  Student consultant VAX/VMS and networks   \  orakel@dulruu51.bitnet  \
  \  Rechenzentrum  Universitaet Ulm  Germany  \    orakel@rz.uni-ulm.de  \
   \  "With mainframes you just can do nonsense, with PCs not even that."  \


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: VT220 string-sendback feature?
  1992-10-18 20:57 VT220 string-sendback feature? Framstag
@ 1992-10-18 21:35 ` Marcus J. "Buddy can you spare a clue?" Ranum
  1992-10-20  0:12   ` Michael A. Thomas
  0 siblings, 1 reply; 4+ messages in thread
From: Marcus J. "Buddy can you spare a clue?" Ranum @ 1992-10-18 21:35 UTC (permalink / raw)


>Is there a (non-documented) feature in the VT220, which sends back a string
>specified in a control-sequence?
>$ write sys$output "<some_magic_sequence>directory"
>and the VT220 (not a VMS-process or the terminal-driver!) sends the string
>"directory" back which is then evaluated by DCL.

	This used to be one of my favorite security holes under UNIX.
You grab the person's terminal type by doing a ps and checking the
environment, then see if the terminal type has a sendback string.
Most modern UNIXes default to keeping terminals unwriteable for just
this reason.
	How does VMS address this? I assume it's hard to send escape
sequences to someone else's terminal without privs of some type?

mjr.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: VT220 string-sendback feature?
  1992-10-18 21:35 ` Marcus J. "Buddy can you spare a clue?" Ranum
@ 1992-10-20  0:12   ` Michael A. Thomas
  1992-10-20 11:09     ` Steve McKinty - Sun ICNC
  0 siblings, 1 reply; 4+ messages in thread
From: Michael A. Thomas @ 1992-10-20  0:12 UTC (permalink / raw)


In article <1992Oct18.213520.29557@decuac.dec.com>, mjr@hussar.dco.dec.com (Marcus J. "Buddy can you spare a clue?" Ranum) writes:
> >Is there a (non-documented) feature in the VT220, which sends back a string
> >specified in a control-sequence?
> >$ write sys$output "<some_magic_sequence>directory"
> >and the VT220 (not a VMS-process or the terminal-driver!) sends the string
> >"directory" back which is then evaluated by DCL.
> 
> 	This used to be one of my favorite security holes under UNIX.
> You grab the person's terminal type by doing a ps and checking the
> environment, then see if the terminal type has a sendback string.
> Most modern UNIXes default to keeping terminals unwriteable for just
> this reason.

  Well, I just looked up in my sources for a vt330 emulator and there
is no way to set the answerback string from the host side. You can
however request the answerback message from the host (^E). You can
also program UDK's from the host, but you can't request them to be 
"typed" like the answerback string. I suspect they may have had you 
in mind when they didn't implement that feature :-)

> 	How does VMS address this? I assume it's hard to send escape
> sequences to someone else's terminal without privs of some type?

  Actually the broadcast system service even goes to the trouble of
filtering escape sequences out of the supplied text, I think (Yuck).
One of the favorite things we used to do is send people messages which
put their terminal in smooth-scroll-one-line-a-minute mode -- quite
obnoxious. Writing directly to another lusers terminal normally 
requires privs though...
-- 

		Michael Thomas	(mike@gordian.com)
	"I don't think Bambi Eyes will get you that flame thrower..."  
		-- Hobbes to Calvin
		USnail: 20361 Irvine Ave Santa Ana Heights, Ca,	92707-5637
		PaBell: (714) 850-0205 (714) 850-0533 (fax)


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: VT220 string-sendback feature?
  1992-10-20  0:12   ` Michael A. Thomas
@ 1992-10-20 11:09     ` Steve McKinty - Sun ICNC
  0 siblings, 0 replies; 4+ messages in thread
From: Steve McKinty - Sun ICNC @ 1992-10-20 11:09 UTC (permalink / raw)


In article <1992Oct20.001221.5007@gordian.com>, mike@gordian.com (Michael A. Thomas) writes:
> In article <1992Oct18.213520.29557@decuac.dec.com>, mjr@hussar.dco.dec.com (Marcus J. "Buddy can you spare a clue?" Ranum) writes:
> > >Is there a (non-documented) feature in the VT220, which sends back a string
> > >specified in a control-sequence?
> > >$ write sys$output "<some_magic_sequence>directory"
> > >and the VT220 (not a VMS-process or the terminal-driver!) sends the string
> > >"directory" back which is then evaluated by DCL.

> 
>   Actually the broadcast system service even goes to the trouble of
> filtering escape sequences out of the supplied text, I think (Yuck).
> One of the favorite things we used to do is send people messages which
> put their terminal in smooth-scroll-one-line-a-minute mode -- quite
> obnoxious. Writing directly to another lusers terminal normally 
> requires privs though...


You don`t have to do it with the answerback. Send a sequence like:

clear screen
home
<commands you want executed>
printscreen_to_host

That will send up to 24 lines of commands back to the host system :-)

When DEC fixed that by preventing mail from passing <ESC> characters, they
forgot to prevent it from passing <DCS> so you could do something similar
with ReGIS macros. Eventually they 'fixed' that too :-(

Steve

-- 
Steve McKinty
SUN Microsystems ICNC
38240 Meylan, France
email: smckinty@france.sun.com	   BIX: smckinty


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1992-10-20 11:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1992-10-18 20:57 VT220 string-sendback feature? Framstag
1992-10-18 21:35 ` Marcus J. "Buddy can you spare a clue?" Ranum
1992-10-20  0:12   ` Michael A. Thomas
1992-10-20 11:09     ` Steve McKinty - Sun ICNC

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox