The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > Security
.
google unix.com



Security Discuss UNIX and Linux computer and network security, cybersecurity, cyberattacks, IT security, CISSP, OWASP and more.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Pseudo-terminal will not be allocated because stdin is not a terminal. Shivdatta UNIX for Advanced & Expert Users 1 08-04-2008 10:29 AM
capture in telnet wisher115 Shell Programming and Scripting 3 09-26-2006 05:49 PM
Red Hat - ouput capture juxtaman UNIX for Dummies Questions & Answers 3 04-10-2003 10:31 AM
connecting to unix through hyper terminal - as a dumb terminal michelle UNIX for Advanced & Expert Users 2 11-05-2001 03:32 PM
terminal capture krishonv_2 UNIX for Dummies Questions & Answers 2 07-28-2001 04:13 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 4.00 average. Display Modes
  #1 (permalink)  
Old 07-23-2001
krishonv_2 krishonv_2 is offline
Registered User
  
 

Join Date: Jul 2001
Location: USA
Posts: 4
Unhappy terminal capture

Hi Unix Experts,

Since I am in childhood stage of Unix, I need to know a solution for the following:

When I logon from a Remote terminal ( say /dev/pts/0) ,
I should be able to view the work done by the Remote user on the Unix machine when I log on as a root.

eg : if the remote user types
echo $TERM

in my Unix Server,
I should be able to view the same and the result.

I tried cat /dev/pts/0 > /dev/tty1 (Unix Terminal)

but the remote user is getting blocked. I also tried with dd and other commands but still I could not get the solution....

I would appreciate if anyone can help me in this regard.
  #2 (permalink)  
Old 08-19-2001
Neo's Avatar
Neo Neo is offline Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,668
You could write a C program to open the device file and read this file, as root.
  #3 (permalink)  
Old 08-20-2001
LivinFree's Avatar
LivinFree LivinFree is offline Forum Advisor  
Goober Extraordinaire
  
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584

Look into telnetsnoopd... It comes by default with several Linux distributions...

You can set it up several different ways, but the end result is that you watch what a user does on their terminal.
  #4 (permalink)  
Old 08-22-2001
ober5861's Avatar
ober5861 ober5861 is offline
Registered User
  
 

Join Date: Jul 2001
Location: Gettysburg, PA
Posts: 116
If you've ever heard of a small program called VNC, you may want to check that out. It shows an exact copy of the screen on a remote terminal and can even allow you keyboard and mouse control. I personally never got it to work on my Linux box, but I've used it extensively on the Windows side. But it came with my Mandrake distro, so I know it has to work. Good luck.

Here's their website if you want to see more:

www.uk.research.att.com/vnc

They have downloads for Linux/SPARC/Windows/Macintosh and others including the source code for all.
  #5 (permalink)  
Old 09-15-2001
kandanmv kandanmv is offline
Registered User
  
 

Join Date: Sep 2001
Location: CHENNAI, INDIA
Posts: 15
hi try this

You might need to enter these in ur shell startup scripts like .login or .profile or .bash_profile depending upon ur login shell.


% csh -i |& tee /tmp/demo
or
$ csh -i 2>&1 | tee /tmp/demo

In the other shells that are
going type:


% tail -f /tmp/demo

courtesy: ugu.com
  #6 (permalink)  
Old 07-11-2008
xiaohu417 xiaohu417 is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 1
ttyutils

there has a program named ttyutils. see ttyutils - Google Code
  #7 (permalink)  
Old 09-27-2001
loadc loadc is offline
Registered User
  
 

Join Date: Sep 2001
Posts: 40
More and more....

I got yer sreen capture right here.....


It's late, I'm tired, anyway, you need to check out ttywatcher, this is a nice little screen watcher util for unix, I forget exactly how it works, but it is cool. You'll have to compile it,a nd it may need some libs, I've put it on Solaris and IRIX, it worked great, it was just a littel unstable at first, had to tweak it some...

The next thing is, a favorite of many sneaky people, "xwd", this nice little thing comes with most all unix systems and also works with "xwud". What it is: X-windows Dump, it basically takes an Xwindows session and dumps it (or a particular window) to a file, you can then read that file with "xwud", or X-windows UnDump.

2600 did an article on this sometime back as an eavesdropping method, it's been around for quite a while, and it does work, but you need to be on the same host to dump the user's session. And it is a kind of snapshot, not real-time.

I suppose, if one wanted to go to the trouble of seeing what a user is seeing without having a loging to the box they are on, you could hook up a sniffer to the network, I'm implying here that YOU are an admin and have this sort of authority at your site, other wise, DON'T EVEN THINK OF DOING THIS, and inline it to a reconstruction prog of some sort, take a look at the bpf stuff, I think I read of something similar to this already being out.


In all seriousness, these are ideas really for eavesdropping on your users, many a more seasoned SA/NA than I have stated that you should be paranoid about your security, but not to the point of being a hinderance to the usage of the system as it was intended. I can't come up with a good reason to implement these things where I work, I do this at home for kicks and to see how it works, but I really don't need to look over my users shoulders, they're already convinced I'm omniscient anyway....


Hope this helps, I apolagize for the soapboxin',


loadc
Closed Thread

Bookmarks

Tags
linux, linux mandrake, solaris

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:11 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0