LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-31-2005, 06:19 PM   #1
longblock454
Member
 
Registered: May 2004
Location: Terre Haute IN
Distribution: FC6/7 Suse 10.2
Posts: 41

Rep: Reputation: 15
How do I sneak into a Gnome console session?


While I was at work a support guy (super hard core Linux guy) sneaked into my Gnome console session and left me a text message, he already had root access. How does one do this? This was on a Red Hat 7.2 machine running Gnome.

Thanks,
 
Old 01-31-2005, 06:29 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Did it come up in box and your only option was to click okay to close it?
If so then check out xmessage. Read up on it in your man pages. Use it alot in scripts to display info that the scripts return.
Otherwise more details on it looks.

Brian1
" Google the Linux way @ http://www.google.com/linux "
 
Old 01-31-2005, 06:39 PM   #3
longblock454
Member
 
Registered: May 2004
Location: Terre Haute IN
Distribution: FC6/7 Suse 10.2
Posts: 41

Original Poster
Rep: Reputation: 15
Fellow Hoosier!

No sir, this was a standard console window! Although I will still read up on xmessage, sounds like the Windoze "Net send" equivelent?
 
Old 01-31-2005, 06:47 PM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Did a quick play and it might be xconsole instead. xmessage sends to gui. Not messed with it before. I have seen it before but thats been 5 or 6 years ago. Look around for something called text messaging on console or something of that type.

Brian1
" Google the Linux way @ http://www.google.com/linux "

ps Right back at you there Hoosier.
 
Old 01-31-2005, 06:55 PM   #5
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Did some googleing and found this it might help. http://www.tldp.org/HOWTO/Text-Termi...6.html#ss16.16 from http://www.tldp.org/HOWTO/Text-Terminal-HOWTO.html

Brian1
" Google the Linux way @ http://www.google.com/linux "
 
Old 01-31-2005, 06:55 PM   #6
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
He may have been using talk. (man talk) or,
he may have been using write. (man write) or,

since he's root he may have simply echo'ed a message to your console. After all, the consoles exist as plain files in dev right? You can find the console by running "pstree -p". Look for the instance of /bin/bash connected to the gnome console. Note the pid. Now run:
Code:
# ps aux | grep <pid> | grep -v grep
In the seventh column of output is the TTY, you should see something like "pts/0" or "pts/1". Now all you need to do is:
Code:
# echo "I've hacked your console" > /dev/pts/1
or,
# cat message.txt > /dev/pts/1
And your message is printed to the console...

Last edited by bulliver; 01-31-2005 at 07:03 PM.
 
Old 01-31-2005, 06:59 PM   #7
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Talk was the one I was trying to remember. Thanks there bulliver. Even still there on the lastest distros. Sometimes the simpliest is the best.

Brian1
" Google the Linux way @ http://www.google.com/linux "

Last edited by Brian1; 01-31-2005 at 07:00 PM.
 
Old 01-31-2005, 07:06 PM   #8
longblock454
Member
 
Registered: May 2004
Location: Terre Haute IN
Distribution: FC6/7 Suse 10.2
Posts: 41

Original Poster
Rep: Reputation: 15
That is it, thanks for the quick help!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gnome panel keeps crashing when starting gnome-session elluva Linux - Software 3 01-24-2006 04:26 PM
Changing environment variable for gnome session from gnome-terminal pymehta Linux - Software 1 10-11-2005 05:19 PM
Shared console session? ToBe Linux - General 5 04-11-2005 04:35 PM
Sneak Peak Parley VectorLinux 2 04-01-2005 03:32 PM
Console corrupt after X-session senorsnor Slackware 9 02-27-2005 05:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration